[OpenLayers-Users] Events triggering order. BUG?

Alex zeitalex at googlemail.com
Fri Mar 18 08:30:30 EDT 2011


Dear All,

We have 'featureselected' events registered for different layers. 
Sometimes the order in which events are triggered are changing. Is it 
normal behaviour?

var lines = new OpenLayers.Layer.WMS(...);
var points = new OpenLayers.Layer.WMS(...);

lineControl = new OpenLayers.Control.GetFeature({
     protocol: OpenLayers.Protocol.WFS.fromWMSLayer(lines),
});

pointControl = new OpenLayers.Control.GetFeature({
     protocol: OpenLayers.Protocol.WFS.fromWMSLayer(points),
});

lineControl.events.register('featureselected', this, function(e) {...});

pointControl.events.register('featureselected', this, function(e) {...});

new Ext.Viewport({..., layers: [lines, points,], ...});

map.addControl(lineControl);
map.addControl(pointControl);
lineControl.activate();
pointControl.activate();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110318/70aef942/attachment.html


More information about the Users mailing list