On Oct 7, 10:04 am, Jon Drukman <[EMAIL PROTECTED]> wrote: > I've got a map that is drawn when the page loads. There is a single > marker on it. If a user clicks a button somewhere else on the page, I > want to move the map to show the new place. (It's not the typical > list control, it's a single button that rotates through a list of map > coordinates/types/zoom settings.) > > This is my code to reposition the existing map (which is stored in the > global variable map_view):
Not enough context, please follow the posting guidelines and post a link to your map. > it is crashing when I get to the "map_view.setCenter()" call with: Probably because the map_view variable is not global (it is local to your onload function) -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
