简体   繁体   中英

How to programmatically select feature with OpenLayers

I have a problem. I have a map with OpenLayers layer. Next i have a list with features of layer.
I want to select feature in this list and edit this.
So i need how to add feature to OpenLayers.Control.SelectFeature .
How to do this?

what about calling the select (1) method of your SelectFeature control?

1 - http://dev.openlayers.org/docs/files/OpenLayers/Control/SelectFeature-js.html#OpenLayers.Control.SelectFeature.select

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