[OpenLayers-Users] event model and event propagation

Eric Lemoine eric.lemoine at camptocamp.com
Wed Dec 9 02:35:45 EST 2009


On Tue, Dec 8, 2009 at 9:29 AM, David Potts <dave.potts at pinan.co.uk> wrote:
>
>
> I have a map image with a WMSGetFeatureInfo control and
>
> OpenLayers. Marker.Box object with a click handle registered on it.
>
> The WMSGetFeature control is added first, the box object does not inserect
> any feature on the WMS layer.
>
> when ever I click on the map, the wms control is in invoked, the click
> handler on the box feature never gets invoked.
>
> Q.  Is this the expected behaivour?
>
> I had expected that events would be routed through to the click handler on
> the box object instead the wms control seems to "eat all" the events.

Hi. Have you made sure that clicks on the box do work when the
WMSGetFeatureInfo control isn't activated?

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list