Hello Xavier,
A while ago I used this functionality in dbox. It is visible on this site:
http://207.44.178.94/watlas/
You have to use the button called 'schuiven' (sorry this site is in dutch)
and then
you can drag the map to a new position.
It has been a while since I made this site and i do not have much
documentation but maybe you are helped looking at the source and the
javascript libraries i used to implement this. Feel free to do so.
Regards,
Wim Blanken
The Netherlands
----- Original Message -----
From: "Steve Lime" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, January 26, 2006 3:58 PM
Subject: Re: [UMN_MAPSERVER-USERS] Dhtml mapserver (mapserv.js) panningtool
I've not implemented that functionality for dbox.js. Sorry.
Steve
Xavier mauclaire <[EMAIL PROTECTED]> 01/26/06 1:49 AM >>>
Hi
Thanks for your response.
I know about the pan method.
What i would like to do is allowing the user to drag & drop the image to
simulate the pan deplacement.
I think that you can do that with the java applet but a can't use it
regards
Xavier
-----Message d'origine-----
De : Steve Lime [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 25 janvier 2006 17:47
À : [email protected]; [EMAIL PROTECTED]
Objet : Re: [UMN_MAPSERVER-USERS] Dhtml mapserver (mapserv.js) panningtool
There is a pan method available in mapserv.js. You'd just attach code like
(assuming the mapserv object is called ms):
ms.pan('nw')
to an image or a link. In my landview example it's something like:
<a href="javascript:ms.pan('nw')"><img src="nw.gif"></a>
You could also use an image event handler as well I imagine to trigger the
pan. The application below does this:
http://www.dnr.state.mn.us/maps/landview.html
Steve
Xavier mauclaire <[EMAIL PROTECTED]> 01/25/06 10:27 AM
>>>
Hi
I'm using mapserver with the mapserv.js javascript library. I would like
to
implement the panning tool but i don't konw how to do that. Currently,
only
the recenter tool can be used.
Any help would be appreciated
regards
Xavier