On Feb 16, 9:47 am, Nelsaidi <[email protected]> wrote: > Hey guys > I've been trying to change where the map is centered on when a user > clicks on a link (therefore executing a function in the onclick, and > moving the map) - I need the map to move to the appropiate > coordinates, and zoom in on them, similar to the set center function, > however i do not want to reload the entire map and stuff.
You shouldn't need to do that. > > Ive spent some time trying to figure it out, however ive had no luck, > can anyone help me? http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines If your map variable is global, the following should work for appropriate values of lat, lng, and zoom: <a href="javascript:map.setCenter(new GLatLng(lat, lng), zoom);">Zoom and Center</a> -- Larry > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
