smithmicro / mapbox-gl-circle

A *google.maps.Circle* replacement for Mapbox GL JS
https://smithmicro.github.io/mapbox-gl-circle/
ISC License
55 stars 26 forks source link

Rotate circle and create half/quarter of the circle #90

Open sharkee89 opened 3 years ago

sharkee89 commented 3 years ago

Hi I am using mapbox-gl-circle library to create circle on mapbox-gl map in my Angular application providing center of the circle and radius in metres.

Two simple questions:

  1. Can I create half or quarter the circle (something looking like pizza slice) with center coordinates of the circle. So I need exactly the same functionality like creating circle with center coordinates just I don't want full circle, rather than this it would be awesome if I can create half or quarter of the circle?
  2. Can I somehow rotate circle after it is created?

Best regards.

gleite commented 3 years ago

Hi there @sharkee89.

Right now this library only supports creating the full circle. You're more than welcome to fork the repo and create that feature based on the circle one that we have and open a PR for it. We'll review it as quick as possible.

Best regards.