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 a more highres image upon zooming #41

Open mrAceT opened 11 months ago

mrAceT commented 11 months ago

Hi @waynegm,

It's a bit of an old script, but it still works nicely, I love it!

Just curious.. could it be possible to load a higher resolution upon reaching a certain zoom-level?

waynegm commented 11 months ago

Hi, I'm traveling at the moment so can't look at this myself but an option might be to overlay a separate imgviewer widget with the hires image. Would need to do some maths to ensure the image view aligns but nothing too difficult. An issue will be a delay while the image is loaded if it is very big. An advanced solution would use image tiles. Regards

On Thu, 5 Oct 2023, 15:21 mrAceT, @.***> wrote:

Hi @waynegm https://github.com/waynegm,

It's a bit of an old script, but it still works nicely, I love it!

Just curious.. could it be possible to load a higher resolution upon reaching a certain zoom-level?

— Reply to this email directly, view it on GitHub https://github.com/waynegm/imgViewer2/issues/41, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXQCNX7NO4REFHUI4EIPJTX52X4DAVCNFSM6AAAAAA5UIF6H6VHI2DSMVQWIX3LMV43ASLTON2WKOZRHEZDQMRYGIZTQNI . You are receiving this because you were mentioned.Message ID: @.***>

mrAceT commented 11 months ago

Thank for responding.

I've been "naughty" and made a few "sneaky hacks" of the system that work remarkably well!

I'll make a fork and do "my first merge request" (so please forgive me if that goes a bit awkward..