nicshah
nicshah

Reputation: 345

Circle styles in Mapbox GL JS

I'm working with some Mapbox GL JS code that creates a blue dot, and I'm working if I can tweak it to paint a black ring with a transparent centre instead (Kind of like an "O")?

My code below is:

 paint: {
        'circle-radius': 14,
        'circle-color': '#004cf0',
        }

If someone could point me in the right direction it'd be greatly appreciated.

Upvotes: 1

Views: 867

Answers (1)

Steve Bennett
Steve Bennett

Reputation: 126045

Like this:

paint: {
        'circle-radius': 14,
        'circle-color': 'transparent',
        'circle-stroke-color': 'black',
        'circle-stroke-width': 2,
        }

Upvotes: 1

Related Questions