I need to create a sector around a point where a user clicks. How would I do this?
I can create a layer of type "circle" for displaying the data as circles but how to get sector
I need to create a sector around a point where a user clicks. How would I do this?
I can create a layer of type "circle" for displaying the data as circles but how to get sector
You will need to create a
map.on('click')
event: https://www.mapbox.com/mapbox-gl-js/api/#map.event:clickE.g.