Sadly, the answer is NOT POSSIBLE. Testing shows that when the feature (marker/line/shape) is placed on the second map it vanished from the first. Examination of the feature structure reveals several data items that appear tied to the screen coordinates and the div containing the feature.
puff On May 15, 12:50 pm, puff <[email protected]> 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 ); > > The situation is as follows: > > - There are two maps on a single HTML page. > - The maps are in separate divs. Each div is hidden/displayed > separately so there is only one map displayed at a time. > - Map features (marker/line/shape) may be edited on either map. > - It is desired that when a feature is edited it's edited version is > displayed on both maps. > > My current intent is to simply create a feature instance and place it > on each map. The API documents do not speak to this use case. Does > anyone know if it is permissible? > > Regards, > puff --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
