[英]How to programmatically select feature with OpenLayers
I have a problem. 我有个问题。 I have a map with OpenLayers layer.
我有一个带有OpenLayers图层的地图。 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
. 所以我需要如何向
OpenLayers.Control.SelectFeature
添加功能。
How to do this? 这个怎么做?
what about calling the select
(1) method of your SelectFeature
control? 调用
SelectFeature
控件的select
(1)方法怎么样?
1 - http://dev.openlayers.org/docs/files/OpenLayers/Control/SelectFeature-js.html#OpenLayers.Control.SelectFeature.select 1- http://dev.openlayers.org/docs/files/OpenLayers/Control/SelectFeature-js.html#OpenLayers.Control.SelectFeature.select
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.