Truly smooth scaling in the sheet

Over the course of several days, I have been trying to figure out how to make Leaflet the current scaling, and by that I mean the one that can be found, for example, OpenSeadragon . I play with the zoomSnap , wheelDebounceTime and wheelPxPerZoomLevel on the Map object, but all of this to no avail.

Liquid scaling has a huge wow factor, and besides, I would like to use Sheet Draw to have users annotate an old mosaic map for interpretation purposes.

Is there anyone who has successfully achieved OpenSeadragon-style scaling? The .flyTo() method .flyTo() to be relatively capable of smoothly zooming in and out, just like the TouchZoom handler. In addition, when you press the zoom buttons, the image scales smoothly. But I can't understand for life how to use this in scroll events.

Can someone point me in the right direction?

A demonstration of the problem can be found here .

+5
source share

Source: https://habr.com/ru/post/1263089/


All Articles