Thanks for the answers,

That is what I write in Mapplet

<script>
var map = new GMap2();

GEvent.addListener(map, "click", function(marker, point) {

  if (marker) {
   var location = marker.getLatLng().toUrlValue(5);
  marker.openInfoWindowHtml("This marker is located at: " +
location);
  } else {
    map.addOverlay(new GMarker(point));
  }
});
</script>

That does not work. I can create marker, but cannot create InfoWindow.
There is no function getLatLng() in mapplets documentation for class
GMarker.
The function with word get is getPointAsync there, but how to use
that?..

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