There is no MarkerLight.openInfoWindowHtml() method, so you have to use
map.openInfoWindowHtml().
Remember to use a createMarker function to hold Function Closure on any
variables that you need. In particular the latlng.
function createMarkerLight(latlng,html) {
var marker = new MarkerLight(latlng, { image: "redCircle.png" });
map.addOverlay(marker);
GEvent.addListener(marker,"click", function() {
map.openInfoWindowHtml(latlng,html, {pixelOffset:new GSize(3,2)});
});
}
MarkerLight has no GIcon.infoWindowAnchor, but you can use an
appropriate {pixelOffset} setting to make it look right. I don't know of
a way to calculate appropriate values, I just used trial and error to
come up with (3,2) for this particular MarkerLight image.
There also appears to be some variation in the precise positioning of
MarkerLight in different browsers. Because
map.openInfoWindowHtml({pixelOffset}) opens exactly where you tell it
to, there's a slight variation in the relative position of the
MarkerLight image and the infowindow between browsers.
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---