The problem is that I need different behaviour on each layer. I need the
 lower layer to have exclusive selectivity, but the upper layer to be 
arbitrarily clickable. I think if I made both layers selectable via the 
same control, I would have to enable multiple selectivity, which would 
lose the exclusivity.  I would also have to intercept the select event 
to decide whether to invoke the click behaviour or the select behaviour,
 which would mean I would then have to invoke the select functionality 
programmatically. Additionally, selecting a feature on the lower layer 
triggers AJAX callbacks to populate the upper layers, but this doesn't 
happen when you click the upper layers. It seemed simpler to just have 
two controls with the behaviour I need hard-wired.<br>
<br>I can see why it might not be advisable (and perhaps therefore not 
possible) to have two mouse handlers active - when you click a feature 
on the top layer, the click might still propagate to the lower layer, 
potentially re-selecting the already-selected feature. However, it would
 still be easier to manage. What I would want is for the mouse event not
 to propagate if it clicks on a feature on the upper layer.<br><br><div class="gmail_quote">On Mon, Aug 22, 2011 at 9:47 AM, Jean-François Gigand <span dir="ltr">&lt;<a href="mailto:jf@geonef.fr">jf@geonef.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Rohan,<br>
<br>
If you want multiple vector layers to be selectable, you just have to<br>
pass them as an array to the select control, instead of creating one<br>
select control for each layer.<br>
<br>
Hope this helps,<br>
<br>
Jean-François Gigand - Geonef<br>
Paris, France - <a href="http://geonef.fr/" target="_blank">http://geonef.fr/</a><br>
<br>
<br>
<br>
<br>
2011/8/22 Rohan Parkes &lt;<a href="mailto:melanchthon76@gmail.com">melanchthon76@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; I have a vector layer displaying geometries, with a selectFeature control.<br>
&gt; When the user selects a feature, one or more vector layers become active on<br>
&gt; top of the lowest layer, displaying geometries that abut the selected<br>
&gt; geometry. Additionally, there is a top layer with icons that displays a<br>
&gt; popup containing infomation about the abutting geometry when clicked.<br>
&gt;<br>
&gt; The icon layer is implemented as a vector layer rather than as a marker<br>
&gt; layer. (The documentation seems to indicate that the marker layer type is<br>
&gt; deprecated. There were additional reasone why this wasn&#39;t the favoured<br>
&gt; solution.) To make the icons clickable, I have added a customised click<br>
&gt; control to that layer, inspired by an example in the OL demos.<br>
&gt;<br>
&gt; The problem is that when active, the click control seems to be preventing<br>
&gt; the clicks from permeating to the featureSelect control, so that when the<br>
&gt; top icon layer displays, the user can no longer select a geometry on the<br>
&gt; lowest layer. This is not a problem in IE, but is in every other browser.<br>
&gt;<br>
&gt; The Feature handler in the click control has parameters called stopClick and<br>
&gt; stopDown that seem to be designed to allow mouse events to permeate, but<br>
&gt; setting them to true has no effect (and in any case, as they default to<br>
&gt; false, they should be causing the same problem in IE).<br>
&gt;<br>
&gt; Is it possible to have multiple controls active that respond to mouse<br>
&gt; events? Otherwise, can anyone suggest a better implementation for what I am<br>
&gt; trying to build?<br>
&gt;<br>
&gt; Rohan Parkes<br>
&gt; Melbourne<br>
&gt; Australia<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>