facebook

Scale Map Widget using Javascript?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Unknown Author
    Participant

    How does one scale the map widget using Javascript?

    My application requires a landing screen with dynamic page title, marker placement and map scaling. Map scaling is the last piece of the puzzle I’m missing.

    Thanks again!
    -1TC

    #334431

    support-michael
    Keymaster

    hi,

    Following is a snippet of code that will increase the zoom level of a map with id “map1”. You can learn more about the google map api here: https://developers.google.com/maps/documentation/javascript/reference#Map

    function increaseZoom() {
       var gmap = $('[id$=map1]').gmap();
       gmap.setZoom(gmap.getZoom() + 1);
    }
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Scale Map Widget using Javascript?

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