2016-04-21 84 views
0

我想在交互式地圖上顯示一個圓的輪廓(不填充),但是,mapbox-gl-js中的繪製選項似乎僅限於填充。 https://www.mapbox.com/mapbox-gl-style-spec/#layers-circle顏色只有一個圓圈的地圖邊框gl js

var styles = [{ 
    "id": 'points', 
    "interactive": true, 
    "type": "circle", 
    "source": "geojson", 
    "paint": { 
     "circle-radius": 5, 
     "circle-color": "#000 
    }, 
    "filter": ["in", "$type", "Point"] 
}, { 
    "type": "line", 
    "source": "geojson", 
    "layout": { 
     "line-cap": "round", 
     "line-join": "round" 
    }, 
    "paint": { 
     "line-color": "#000", 
     "line-width": 2.5 
    }, 
    "filter": ["in", "$type", "LineString"] 
}]; 

我缺少的東西或者是這是不可能的?

回答

0

這是現在可能的,circle-opacity

例如爲:

"paint": { 
    "circle-opacity": 0, 
    "circle-stroke-width": 1, 
    "circle-stroke-color": #000 
}