I am using the jquery-ui-map plugin (http://code.google.com/p/jquery-ui-map/). I have successfully created a map using the following code:
var home = new google.maps.LatLng(39.909736, -97.382813);
$('#myMap').gmap({ 'center': home, 'zoom': 3 });
However, after a user clicks a button, I want to update the “center” and “zoom” properties. For the life of me, I can’t seem to figure it out. I think its because I don’t fully understand JavaScript coding syntax. It just seems like this should be an easy thing, but its alluding me.
How do I update the center and zoom properies of a gmap?
Thank you!
With basic google.map plugin
To set the center
To set the zoom
With jQuery.UI
The same, but
Or something like that :
Don’t hesitate to provide me all your javascript code, then I could integrate this.