Image viewport with zoom in Javascript [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this questionI want to display a huge image inside a viewport in a ht开发者_JAVA百科ml page. I would like to be able to drag and drop the image to move it inside the viewport, like in Google Maps.
Any library where I can find such component?
Thanks in advance
Check this bad boy out --> http://www.ajax-zoom.com/
EDIT
If that doesn't float your boat, look at this --> http://wayfarerweb.com/jquery/plugins/mapbox/
You might be able to use SeaDragon. The technology and interface work really well. Follow the developer link for lots of options.
You can try out using simple javascript window objects such as the mouse pointer locator and then use it to change the background position of your image that would inturn act as a magnified image. Here is the complete tutorial : http://www.hklabs.org/articles/image_zooming_with_javascript
精彩评论