Javascript Image Viewer

I want to display a huge image inside the viewport on an html page. I would like to be able to drag the image to move it to the viewport, for example, in Google Maps.

Any library where I can find such a component?

Thanks in advance

+4
source share
3 answers

Give up this bad boy β†’ http://www.ajax-zoom.com/

EDIT

If it does not float on your boat, look at it β†’ http://wayfarerweb.com/jquery/plugins/mapbox/

+5
source

You might be able to use SeaDragon . Technology and interface work very well. Follow the developer's link for many options.

+1
source

You can try using simple javascript window objects, such as a mouse pointer, and then use it to reposition the background of your image, which will depend on the enlarged image. Here is the complete tutorial: http://www.hklabs.org/articles/image_zooming_with_javascript

-1
source

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


All Articles