On Mar 25, 3:48 pm, miguev <[email protected]> wrote: > I think your problem is that your adding the same control > (OverviewMap) more than once, which goes against the API reference: > > A control instance must not be added more than once to the > map.http://code.google.com/apis/maps/documentation/reference.html#GMap2.a...
I was coming to this conclusion too. To get it to work, take this line out of addMapControl(): OverviewMapControl= new GOverviewMapControl(); and add that assignment to the variable declaration: var mapControl, zoomControl; var OverviewMapControl= new GOverviewMapControl(); That way you only create one GOverviewMapControl and you can add and remove it at will. Currently you attempt to create a new one every time addMapControl() is executed. In this case, the documentation is ambiguous. You're not adding the control more than once to the map; but you are creating the control more than once. 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 -~----------~----~----~----~------~----~------~--~---
