javascriptimageviewleaflettranslate3d

Leaflet: Move map on initial view


Is it poosible to move the image on the x axe? If I midify the translate3d(-20px,...,...) it works for me.

But if I zoom or drag the map it will be reseted.

For exmaple I have an absolute container and want to show parallel this 2 elements.

My example: http://jsfiddle.net/user9090900/fs8h21ap/

Solution

  • Use the panBy() method of L.Map, e.g. map.panBy([20, 0]).