waynegm / imgViewer

jQuery plugin to zoom and pan images, even those with a size that is a percentage of their container
MIT License
55 stars 13 forks source link

Fullscreen with panning #12

Closed ScottTRichmond closed 8 years ago

ScottTRichmond commented 8 years ago

I'm trying to use imgViewer and imgNotes to create a map. I want to be able to pan around the entire map at any zoom level and at any image size. I've attempted to modify your code, but with only some success. At any zoom level other than 1, I get unexpected results, related, I believe, to the vCenter coordinates. Sometimes the panning gets stuck at the edges and the imgNotes points move out of position. Do you have any suggestions on how to make this work?

Here's a link to the final outcome of my attempts: https://scotttrichmond.github.io/ and here's the repo https://github.com/ScottTRichmond/ScottTRichmond.github.io.

Thanks for making these neat libraries available. Terribly sorry about the mess I made of your code.

waynegm commented 8 years ago

Hi Scott, It might be better if you have a look at the Leaflet javascript mapping library as an alternative to my plugins as it offers extra flexibility that may address your use case without change. This article describes how to display an image with Leaflet. Regards, Wayne Mogg

ScottTRichmond commented 8 years ago

Thanks, Wayne. I appreciate the recommendation. Leaflet is doing everything I want it to.