On Jun 28, 12:53 pm, badnews <[email protected]> wrote:
>  Two maps   in one html page.
>
> 'When click the first map,   all of the latlng of GMarker in first map
> were displsyed on the second map?
>
> How to do it?

There's a slight problem with translation in your message, but I think
you actually want all the markers duplicated on your second map.

Keep an array of your markers...

var markers = []; // global array
var marker = createMarker(...);
markers[]=marker;
map.addOverlay(marker);

... and then loop through the array to add them to the other map.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to