Zoom and Pan An Image In A Webrowser

M

mike.hodgson

Hi,

I have an image in a webrowser which is 3000 pixels wide so does not
fit in the browsers window. It is a CAD drawing so needs this detail.
Using the scroll bars makes the image difficult to view so I am looking
for some code where I can set the view width to 1000 pixels and the
code will allow me to zoom in and out of the image and pan it around
the page, a bit like how google maps works.

Can anyone help me with this please. It needs to work in firefox and
IE.

Regards,
Mike Hodgson.
 
J

Jim Ley

I have an image in a webrowser which is 3000 pixels wide so does not
fit in the browsers window. It is a CAD drawing so needs this detail.
Using the scroll bars makes the image difficult to view so I am looking
for some code where I can set the view width to 1000 pixels and the
code will allow me to zoom in and out of the image and pan it around
the page, a bit like how google maps works.

http://jibbering.com/routeplanner/ has a basic implementation of
this, feel free to rip it off.

Jim.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top