facebook

Can I change the scale prop in the map widget with code?

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #344776 Reply

    PaulLeBlanc
    Participant

    I need to change the scale of the map widget programatically, ie I need to change it from 2 to 5 or 5-6, etc. I have tried setting the attributes:

    $(“#m1-08A-map1 > value”).attr(‘Scale’,5);
    phoneui.preprocessDOM(“#m1-08A”);

    Any ideas from anybody?

    Thanks

    #344916 Reply

    PaulLeBlanc
    Participant

    Wayne,
    Any ideas yet?

    #344918 Reply

    Unknown Author
    Participant

    Yes, you can. In my app, Proximal (https://itunes.apple.com/us/app/proximal/id572222453?mt=8), I change scale based on radius entered by the user.

    You need to update the zoom property of the map itself.

    
    gmap.setZoom(number);
    

    -1tc

    #345355 Reply

    PaulLeBlanc
    Participant

    -1tc,

    Thanks so much. That is exactly what I needed. I too will zoom based on radius.
    Thanks again.
    Paul

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Can I change the scale prop in the map widget with code?

You must be logged in to post in the forum log in