1

我在使用 GeoJSON 时遇到问题,是否有将标记不透明度设置为零的标记属性?我目前正在使用 mapbox 来加载标记,我的标记代码如下:

 "properties":{
        "description":"<img src=\"http://xxx.xxx.xxx/wp-content/uploads/2014/01/map.png\">",
        "id":"marker-hqib0xcd10",
        "marker-color":"#1087bf",
        "marker-size":"medium",
        "marker-symbol":"",
        "title":"Available 2015",
        "category" : "Marker" }

有人知道mapbox是否识别geojson中的不透明度属性吗?

4

1 回答 1

1

does anyone have any idea if mapbox recognizes an opacity property in geojson?

No, at the moment we don't. If you want to hide markers, you can either not include them in the GeoJSON document, or if you're using L.mapbox.featureLayer/L.mapbox.markerLayer, you can use .setFilter() to show markers selectively.

于 2014-02-19T18:29:33.130 回答