[OpenLayers-Dev] Re: multiple select controls on multiple layers in same map not working

crb jcbeaude at yahoo.com
Fri Oct 1 15:54:05 EDT 2010


Thanks for the reply Andy.  While it's great that the SelectFeature control
will support multiple layers, what I need to do is have multiple
SelectFeature controls (that call different onSelect and onUnselect
functions).  From the docs, I don't think that is supported:  
"As of OpenLayers 2.7, there is no support for selecting features from more
than a single vector layer at a time..."  (technically not accurate as you
showed.  But then:
"... The layer which is currently being used for selection is the last one
on which the .activate() method of the attached select feature control was
called."  Which is what I think is preventing me from doing what I hoped to
do.
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-select-controls-on-multiple-layers-in-same-map-not-working-tp5591394p5592688.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list