Hi, I started implementing mapbox-gl-circle into a program that has several other layers on the map and noticed that the circle always appeared behind one of my other layers, regardless of what order they were added in.
I tracked it down to these lines in the code where waterway-label is hardcoded as the second argument to addLayer causing the circle to always be added just before this layer.
You can see the issue in action here:

It's pretty straightforward to expose the before argument to the user so that users can control where a circle is added in the layer stack. I implemented a fix as you can see in this image.

Here's my pull request for the proposed fix https://github.com/mblomdahl/mapbox-gl-circle/pull/51
Thanks!
Hi, I started implementing mapbox-gl-circle into a program that has several other layers on the map and noticed that the circle always appeared behind one of my other layers, regardless of what order they were added in.
I tracked it down to these lines in the code where
waterway-labelis hardcoded as the second argument toaddLayercausing the circle to always be added just before this layer.You can see the issue in action here:

It's pretty straightforward to expose the
beforeargument to the user so that users can control where a circle is added in the layer stack. I implemented a fix as you can see in this image.Here's my pull request for the proposed fix https://github.com/mblomdahl/mapbox-gl-circle/pull/51
Thanks!