On Jan 9, 12:48 pm, donjamessingleton <[email protected]> wrote: > Is it possible to invoke part of the Google Maps API outside of it? > > I tried, unsuccessfully, to do > > <a href="javascript:map.setCenter(new GLatLng(33.378375, -111.972776), > 16)">Move Map</a>; > > in the body of my page. > > Is it possible to do that, and did I just do it wrong?
It is possible. The variable "map" must be global, though. It won't work if you have "var map" inside a function. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
