Hi Simone, I have managed this in the following way:
First I must be able to declare an actual layer. Therefor I have a radiobutton for each layer. If I choose a vector layer, I create my controls for this layer. If I choose an other vector layer, I destroy the controls for the previous vector layer and create the controls now for the choosen layer. To do this, I have a one function swapPanel(layerindex). The controls I use are Navigation, DragFeature, ModifyFeature, SelectFeature, DrawFeature for point, line and polygon and they work for each vector layer, not only for the top most. Arnd Wippermann -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] Gesendet: Sonntag, 24. August 2008 14:19 An: [email protected] Betreff: [OpenLayers-Users] Drill down selectFeature control Hello! So far the selectFeature control makes possible to select one vector object placed on the top layer. Wouldn't be possible to modify it to select the feature of the specified layer also when it is not on top of the layer stacck? In case where to start for looking to modify it? Thanks Simone _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
