2016-04-21 5 views
0

Ich möchte den Umriss eines Kreises auf einer interaktiven Karte zeigen (keine Füllung), jedoch scheint die Farbe Optionen in mapbox-gl-js nur zu füllen. https://www.mapbox.com/mapbox-gl-style-spec/#layers-circleFarbe nur die Kante eines Kreises mapbox 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"] 
}]; 

bin ich etwas fehlt oder ist dies einfach nicht möglich?

Antwort

0

Dies ist nun möglich, mit circle-opacity.

Z. B .:

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