Wasn't it puff who wrote:
>
>Is it possible to have a single marker/line/shape instance on multiple
>maps, eg.
>
> marker = new GMarker( ... );
> map1.addOverlay( marker );
> map2.addOverlay( marker );
No. Performing map2.addOverlay(marker) overwrites some if the
inaccessible marker parameters that the API needs to keep track of the
relationship between the marker and map1.
What you can do is place a copy() of the marker on the second map.
That's how Google do it with the minimap in a .showMapBlowup() window.
marker = new GMarker( ... );
map1.addOverlay( marker );
map2.addOverlay( marker.copy() );
.copy() is a documented GOverlay method, but it doesn't work will all
types of overlay.
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---