manubb / Leaflet.PixiOverlay

Bring Pixi.js power to Leaflet maps
MIT License
463 stars 85 forks source link

Polygons little random offsets #3

Closed avin closed 7 years ago

avin commented 7 years ago

Found strange behavior on move map. When you have high zoom, you can see that polygons have random offset when you drag map. Markers do not have this problem. Seems some rounding happens in pixi.js lib, not sure where dig in

you can check this on demo https://manubb.github.io/Leaflet.PixiOverlay/leaflet-quickstart.html

manubb commented 7 years ago

This is indeed a precision issue. Commit 18d5c5cb05ed fixes the demo. More info can be found here.

avin commented 7 years ago

that solution works fine! thank you very much