On Dec 12, 2:38 pm, stevematt <[email protected]> wrote:
> You need to add a click listener with code like this:
> This code is simplified to show the essentials.
>
> map.addControl(new GLargeMapControl());
> map.addControl(new GMapTypeControl());
> map.addControl(new GScaleControl());
>
> GEvent.addListener(map, 'click', function(marker, point) {
>
> if (marker instanceof GMarker)
>     {
>       //alert("You clicked on a GMarker");
>
>         //Save the marker object for later deletion.
>         clickedMarker = marker;
>
>         //defined this way because it might help the replace function.
>         var contents = new String;
>
>        var displayString = "Some text";
>
>       marker.openInfoWindowHtml(displayString );
>
>       }
>   }


I think Leonard wants different contents for each markers infowindow.
That is why I repeat the link given by Ralph
http://econym.org.uk/gmap/



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