waynegm / imgViewer2

Extensible and responsive jQuery plugin to zoom and pan images based on the Leaflet mapping library
MIT License
60 stars 34 forks source link

Load low rez version first #40

Open markcoogan opened 2 years ago

markcoogan commented 2 years ago

Hi There,

Is there a way to load a low resolution version of an image then swap in a high resolution version when the user interacts with it?

waynegm commented 2 years ago

The widget itself doesn't support that directly. You could display the lowres image and on a users click on the image trigger loading of the full image and widget in a popup. It would be more work but you could also overlay the full image and widget directly on top of the lowres image.