Hi,
I am having a weird problem with marker infoWindow's being destroyed
in bother Chrome and Firefox after interacting with my map.
For example, I can mouseover a marker, the infoWindow appears as
expected. I then close the infoWindow and perform say a pan or zoom on
the map. Then I go back to the marker and mouseover it and the
infoWindow no longer appears.
I also tried leaving the infoWindow open and then doing a pan\zoom and
then closing the infoWindow, Mousing over the marker again still
doesn't make it appear. Its almost like the interaction with the map
is nuking the listeners on the marker?
I am using a function as shown below which is called whenever I need a
marker created:
================
function createMarker
(point,html,markerOptions,untID,hitID,category,importance) {
var marker = new GMarker(point,markerOptions);
marker.untID=untID;
marker.hitID=hitID;
marker.category=category;
marker.importance=importance;
var infoWindowOpts = {
maxWidth:250
};
GEvent.addListener(marker,"mouseover", function() {
marker.openInfoWindowHtml(html, infoWindowOpts);
});
return marker;
}
==================
This problem is not present in IE (only tried in version 8 so far) and
I am not getting any errors thrown in FF or Chrome.
Has anyone come across similar problems or have any clues as to why
this may be happening?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---