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 );
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---