<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#ffffff" text="#000000">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:HyphenationZone>21</w:HyphenationZone>
<w:DoNotOptimizeForBrowser/>
</w:WordDocument>
</xml><![endif]-->
<p class="MsoNormal"><span style="" lang="EN-GB">Dear All,</span></p>
<p class="MsoNormal"><span style="" lang="EN-GB">We have
'featureselected'
events registered for different layers. Sometimes the order in
which events are
triggered are changing. Is it normal behaviour?</span></p>
<span style="font-size: 12pt; font-family: "Times New
Roman";" lang="EN-GB">var lines = new
OpenLayers.Layer.WMS(…);<br>
var points = new OpenLayers.Layer.WMS(…);<br>
<br>
lineControl = new OpenLayers.Control.GetFeature({<br>
protocol: OpenLayers.Protocol.WFS.fromWMSLayer(lines),<br>
});<br>
<br>
pointControl = new OpenLayers.Control.GetFeature({<br>
protocol: OpenLayers.Protocol.WFS.fromWMSLayer(points),<br>
});<br>
<br>
lineControl.events.register('featureselected', this, function(e)
{…});<br>
<br>
pointControl.events.register('featureselected', this, function(e)
{…});<br>
<br>
new Ext.Viewport({…, layers: [lines, points,], …});<br>
<br>
map.addControl(lineControl);<br>
map.addControl(pointControl);<br>
lineControl.activate();<br>
pointControl.activate();</span>
</body>
</html>