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

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top