[OpenLayers-Users] Help dealing with popup clicks verse click handlers

Christopher Schmidt crschmidt at metacarta.com
Mon May 26 19:17:56 EDT 2008

On Mon, May 26, 2008 at 07:11:24PM -0500, Stephen Woodbridge wrote:
> Hi all,
> I have a marker layer that which is working great. I just added a click 
> handler that reverse geocodes on a click and adds a marker at the click 
> point and populates the popup with the XML  response. This is all 
> working great EXCEPT that when I click on the icons to open or close a 
> popup, that click is propagating to the click handler causing another 
> marker to be added.
> How to I control or stop this?

Return false or OpenLayers.Event.stop(evt); inside your marker click
handler. (I can't remember which it is; one of them should do it, I
don't know which.)

Christopher Schmidt

More information about the Users mailing list