On 18 September 2010 13:41, Arnd Wippermann <[email protected]> wrote:

>  Hi,
>
> if you take a SelectFeatureControl for each layer, then you are only able
> to select features from the upmost layer. If you uncheck the last layer in
> the layerswitcher you are able to select features from your first kmllayer.
>
>     /**
>      * Constructor: OpenLayers.Control.SelectFeature
>      * Create a new control for selecting features.
>      *
>      * Parameters:
>      * layers - {<OpenLayers.Layer.Vector>}, or an array of vector layers.
> The
>      *     layer(s) this control will select features from.
>      * options - {Object}
>      */
> But you can initialize the SelectFeatureControl with an array of layers
> instead of an single layer.
>

That did the trick, thank you very much for the pointer.

Tom


-- 
http://tom.acrewoods.net   http://twitter.com/tom_chance
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to