leaflet-geotiff-2 icon indicating copy to clipboard operation
leaflet-geotiff-2 copied to clipboard

layer jumps position when moving map

Open crawld opened this issue 2 years ago • 3 comments

On firefox and safari, when the map is moved (pan), the layer jumps on the map. You can see this with the demo site:

https://danwild.github.io/leaflet-geotiff-2/

In _reset(), L.DomUtil.setPosition() moves the layer to the wrong place, then setting this._image.src in _drawImage() moves it back.

Seems ok on chrome desktop but not chrome ipad.

crawld avatar Sep 24 '21 19:09 crawld