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

Meine Toonen meinetoonen at b3partners.nl
Wed Feb 13 02:20:43 PST 2013


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:horst at hike.de]
To: openlayers-users at 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
  Users at lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/openlayers-users
    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130213/84b7d11a/attachment.html>


More information about the Users mailing list