Try to pass the instantiated object into the array: this.selectCtrl = new OpenLayers.Control.SelectFeature([this.vectorLayer, this.rseqVectorLayer],{});
Here this.vectorLayer and this.rseqVectorLayer are the instantiated objects of OpenLayers.Layer.Vector. Met vriendelijke groet, Meine 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 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 vector layer anymore. Not to speak of two layer array. I've already compared my script with the example 'select-feature-multilyer.html'. And I found no fault. Therefore my question to you. Does someone know if there's a known problem in combination with OL 2.12? _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users