[OpenLayers-Users] OT: Event propagation problem...

Steve Lime Steve.Lime at dnr.state.mn.us
Thu Nov 29 11:49:25 EST 2007


In case anyone cares the solution was easy, just register all the mouse events for the overlayed div with a
simple callback that stops propagation.

Steve

>>> On 11/28/2007 at 11:58 PM, in message
<474E00B20200008F000120E7 at co5.dnr.state.mn.us>, "Steve Lime"
<Steve.Lime at dnr.state.mn.us> wrote:
> That's what I figured. Would make a nice control - an html panel.
> 
> Steve 
> 
>>>> "Eric Lemoine" <eric.c2c at gmail.com> 11/28/07 11:39 PM >>>
> On Nov 28, 2007 11:56 PM, Steve Lime <Steve.Lime at dnr.state.mn.us> wrote:
>> Hi all: Slightly off-topic question. I'm working on an interface that plops 
> help and legend content over the top of an OpenLayers
>> map. Problem is that mouse events continue to propagate through the help or 
> legend content to OpenLayers. Anyone aware of
>> an easy way to stop that or do I need to go ahead and define event handlers 
> (that do nothing) for the div that holds this other
>> content?
> 
> To me, yes, you somehow need to explicitely stop event propagation.
> 
> --
> Eric
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org 
> http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list