JamesLMilner / terra-draw

A library for drawing on maps that supports Mapbox, MapLibre, Google Maps, OpenLayers and Leaflet out the box
https://terradraw.io
MIT License
447 stars 50 forks source link

[Bug] Leaflet z-ordering issues #271

Closed JamesLMilner closed 2 months ago

JamesLMilner commented 2 months ago

Describe the bug Leaflet doesn't seem to respect the z-ordering that other adapters have. Points appear below polygons.

Terra Draw npm version 0.0.1-alpha.68

To Reproduce Use Leaflet adapter Create a point Draw a polygon over the top Polygon appears on top of point

Expected behavior Point appears on top of polygon

Screenshots

Screenshot 2024-07-06 at 00 33 09

Desktop:

Additional context No other context