That worked nicely. Thank you. I tried to extend MarkerLight to display ToolTips, following your tutorial. The MouseOver event listener does not fire. see my notes in the code.
www.gmapsapi.net/test Thanks, On Feb 28, 12:42 am, Mike Williams <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
