carbonplan / maps

interactive multi-dimensional data-driven web maps
https://maps.demo.carbonplan.org
Other
214 stars 18 forks source link

Dynamic layer render order #87

Closed atkingtornado closed 1 year ago

atkingtornado commented 1 year ago

I am working on a project that requires dynamic adding/removing/reordering of map layers. It seems that layers are always rendered in the order they are added. Dynamically changing the order on-the-fly does not cause the map to re-render to reflect the new order.

Is there a way to manually force a re-render of the map? Or to set the z-index of the layer?