Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在图层上画了几个特征(OpenLayers.Feature.Vector),渲染如下:
问题是如何在单击时将特征标记“H”置于前面。
我使用 'drawFeature()' 方法重新绘制它,但它仍然是原来的样子。
有谁知道为什么?非常感谢!
如果你用“悬停”把它带到前面怎么样?像这样:
http://openlayers.org/dev/examples/highlight-feature.html
如果您绘制两个重叠的多边形:
http://openlayers.org/dev/examples/select-feature.html
你会看到悬停对你有用。