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

Set layer order #51

Closed ryanhamley closed 6 years ago

ryanhamley commented 6 years ago

This change implements a fix for https://github.com/mblomdahl/mapbox-gl-circle/issues/50 by allowing the user to pass a layer id <String> as the second argument to the addTo method. Leaving out this argument will append the layer to the end of the layers array; otherwise, the circle will appear directly before the layer specified in the argument.

mblomdahl commented 6 years ago

@ryanhamley Thank you for contributing. I'll look at this in the weekend!

mblomdahl commented 6 years ago

@ryanhamley Making build succeed with #52 (develop build 44). Feel super welcome filing more pull requests if you find anything else missing. Going to be working on performance improvements in Firefox tomorrow, also scheduled for 1.6.0 release.