문제

I am having trouble with GeoJSON, is there an attribute for marker that sets the marker opacity to zero? I am using mapbox currently to load the markers and my code for a marker is below:

 "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" }

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top