knapcio / react-leaflet-pixi-overlay

A react wrapper for the awesome Pixi Overlay: https://github.com/manubb/Leaflet.PixiOverlay
27 stars 16 forks source link

Custom Icon position issue #4

Closed jfaraklit closed 3 years ago

jfaraklit commented 4 years ago

When using customIcon, the potion is not correct and when you zoom in/out the map the position changes.

When I use a default icon with pixi image

When I use a custom icon with pixi image

But the same lat/long shows here when drawn directly ask leaflet marker not Pixi stuff. image

The same points are drawn using normal marker and circle. You can see the pixi webgl filled circles are off. image

Any thoughts? is it the offset?

jfaraklit commented 4 years ago

@knapcio any thoughts?

hugobarragon commented 3 years ago

I will investigate this and try to solve this problem so markers icon can be calibrated, maybe with marker.anchor.set