Dhtml mapserver (mapserv.js) panningtool

Xavier mauclaire xavier.mauclaire at STRATEGIS.FR
Thu Jan 26 02:49:05 EST 2006


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:steve.lime at dnr.state.mn.us] 
Envoyé : mercredi 25 janvier 2006 17:47
À : MAPSERVER-USERS at LISTS.UMN.EDU; xavier.mauclaire at STRATEGIS.FR
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 <xavier.mauclaire at STRATEGIS.FR> 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



More information about the mapserver-users mailing list