Hmmm, I can see the problem, but given the way that PdMarker is
written it is not easy to modify.
The problem seems to be this line:
<a class='markerDetailClose' href='javascript:PdMarkerClose(" +
this.internalId + ")'><img src='http://www.google.com/mapfiles/
close.gif' width='14' height='13'><\/a>
the call to PdMarkerClose() doesn't attempt to stop event propagation
of the marker click.
The image ought to have a click handler like this:
// PSEUDO CODE
function(ev) {
// First stop propagation
try{ev.stopPropagation()}catch(e){event.cancelBubble=true};
// Then do your stuff
PdMarkerClose(this.internalId);
}
... but I cannot give you the exact syntax without experimenting for
some time.
I would suggest using normal markers and infoWindows, and save
yourself the trouble.
In any case, as stated at the beginning of the PdMarker code, PdMarker
"Relies on undocumented features of the Google Map API which may
change", and that's unreliable. :-)
--
Marcelo - http://maps.forum.nu
--
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---