[Mapserver-users] navigation arrows around the map

Michael Schulz mschulz@webgis.de
Mon, 24 Mar 2003 09:23:03 +0100


Hi,

you can use static urls as links for your navigation arrow images as the
most simple way of implementing a fixed panning mechanism. I would
prefer some javascript that is executed when the nav arrow is clicked,
since it is more flexible, but the idea beneath is always to set the cgi
parameter "imgxy" to some value that you want to become the new center
of the next map image.

Javascript example code, use it like <img ... onClick="pan('n');">
function pan(x) {
  pf = 6; // pan factor
  mw = [mapwidth];
  mh = [mapheight];
  switch (x) {
  case "n" :
    document.karte.imgxy.value = mw/2+" "+mh/pf;
    break;
  case "s" :
    document.karte.imgxy.value = mw/2+" "+(mh-mh/pf);
    break;
  [...]

HTH, Michael

Daniel Wagner schrieb:

> Hi all,
>
> how can I create navigation arrows around the map?
>
> Has somebody an idea or working examples?
>
> Thanks in advance!!
>
> Daniel Wagner
>
> -----------------------------------------------------
> This mail was sent through http://webmail.uni-jena.de
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

--
-----------------------------------------------------------
Michael Schulz                                in medias res
Dipl.-Geologe                              Gesellschaft für
                                Informationstechnologie mbH
                             Sautierstr. 38, 79104 Freiburg
                                     0761 55695-95 (Fax 96)
mschulz@webgis.de                             www.webgis.de


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users