Jquery mobile maps, set marker based on address? or a way to get the long, lang somehow?

51 views
Skip to first unread message

Jordan Lance

unread,
Dec 13, 2012, 6:55:45 AM12/13/12
to jquery-ui-...@googlegroups.com

Dear Community,

Im trying to set a marker on a google jquery mobile maps.

Using this code:

  $(document).live("pageshow", "#map_page", function() {
    $('#map_canvas').gmap().bind('init', function(ev, map) {
    $('#map_canvas').gmap('addMarker', {'position': '57.7973333,12.0502107', 'bounds': true}).click(function() {
    });
    });

  });


Is there a way to set the marker based on an address? 
Or is there a way to get the coordinates based off this addres? I could not find any simple example on how to make this work and have searched for about 2 hours to find a way to do it.

Also how would one set the zoom ?

Hope someone can share a quick example for me newbie,
Kind regards!
 

Jordan Lance

unread,
Dec 13, 2012, 3:46:34 PM12/13/12
to jquery-ui-...@googlegroups.com
Nobody knows how to do this?

Reply all
Reply to author
Forward
0 new messages