开发者

Image viewport with zoom in Javascript [closed]

开发者 https://www.devze.com 2022-12-28 23:48 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

I 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

0

精彩评论

暂无评论...
验证码 换一张
取 消