简体   繁体   中英

OpenLayers. New features doesn't select (multilayer)

Here is an example: http://jsfiddle.net/runixer/6FDQ3/12/

To reproduce the problem: draw some features with the help of bottom toolbar, and try to highlight them. Only features on the last (third) layer will highlight. I feel that the bug is in my code, but I can't figure it out :(

Seems like only one SelectFeature Control can be active: http://lists.osgeo.org/pipermail/openlayers-users/2012-June/025307.html

Solution is to use one SelectFeature for all vector Layers: http://jsfiddle.net/6FDQ3/13/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM