Re: [OpenLayers-Users] SelectFeature with multi-vector-layers (solved)

2013-02-19 Thread Horst Garstka
After several days of testing and researching I achieved that the select of features on multilayer vectors works. I started with the already mentioned example and changed that step by step till I reached my desired design. At the end I compared it with the first one. But I can find no differences a

Re: [OpenLayers-Users] SelectFeature with multi-vector-layers

2013-02-14 Thread Horst Garstka
THX for your proposal. But that's just what I already tried to do: Here the code snippet, which does not work: selectControl = new OpenLayers.Control.SelectFeature([layer1, layer2], { clickout: false, hover: true } ); map.addControl(selectControl); selectControl.activ

Re: [OpenLayers-Users] SelectFeature with multi-vector-layers

2013-02-13 Thread Meine Toonen
Toonen B3Partners BV Tel: 030 214 2083 _ From: Horst Garstka [mailto:ho...@hike.de] To: openlayers-users@lists.osgeo.org Sent: Wed, 13 Feb 2013 10:51:43 +0100 Subject: [OpenLayers-Users] SelectFeature with multi-vector-layers Hi OL-users, I'm a little bit frustrated. Reason is that

[OpenLayers-Users] SelectFeature with multi-vector-layers

2013-02-13 Thread Horst Garstka
Hi OL-users, I'm a little bit frustrated. Reason is that I try now for some days to persuade the OpenLayers.Control.SelectFeature to work with an array of two vector layers. With one everything is fine. But when I put this layer name into []-brackets I'm not able to select the features of this vect