Hi Marcelo, Thanks for the time taken to analyse this problem.
A pitty, because PdMarker is quite fine. I wanted to use it for the ease of making tooltips. Maybe i should look for another way to make this and keep the original GMarker... Any suggestion for a hover tooltip ? Maybe some else has a workaround for the PdMarker extension ? Thanks a lot ! Patrick On 26 août, 20:48, Marcelo <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
