我在一个图层上有几个点,所有点都可能有不同的样式与它们相关联。所以我在做
VectorFeature pointFeature = new VectorFeature(point,pointStyle)
在我进行选择(即单击该点)之前,一切正常。当我进行选择时,这些点没有突出显示。如果我从 中删除pointStyle ,则该点会突出显示VectorFeature
,即
VectorFeature pointFeature = new VectorFeature(point)
我尝试StyleMap
在图层上使用,但最终得到了相同的结果。
这个问题的解决方案可能是什么?