我有一个向量层,它包含从GEOJSON源加载的多边形和点。在我看来,无论它们在源GEOJSON文件中的顺序如何,点总是位于多边形之上。参见下面的示例定义。有没有办法,如何在同一层的多边形下面定位点?
例子:
点被设计成白色和红色的圆圈。多边形是灰色的。

我的GEOJSON看起来像这样(我甚至试图反转文件中的特性顺序):
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"radius": "1000"
},
"geometry": {
"type": "Point",
"coordinates": [
12.4,
50.08333
]
}
},
{
"type": "Feature",
"properties": {
"radius": "800"
},
"geometry": {
"type": "Point",
"coordinates": [
12.4,
50.08333
]
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [[
[
12.4,
50.08333
],
...........发布于 2016-10-06 06:55:19
在样式对象中使用zIndex。
https://stackoverflow.com/questions/39875364
复制相似问题