MouseOver & Coordinates

andy aborruso at TIN.IT
Thu Mar 10 06:40:04 EST 2005


Stefan,
look to my code:
  LAYER
    NAME "credits"
    status on
    TYPE ANNOTATION
    TRANSFORM FALSE
    CLASS
      LABEL
        TYPE truetype
        FONT "trebu"
        SIZE 8
        POSITION ul
        COLOR 255 255 255
        OUTLINECOLOR 93 99 159
        ANTIALIAS true
      END
    END
    FEATURE
      TEXT "© sample text"
      POINTS
         490 496
      END
    END
  END

It's important to set TRANSFORM parameter to FALSE.

andrea


Stefan Schwarzer ha scritto:

> Hi,
>
> I would like to display the coordinates in a corner of the map, when a
> user moves the mouse over it. Is there any Javascript (or Java) code
> out there that would do this?
>
> Thanks for any suggestions.
>
> Stef
>
>
>
>         _______________________________________
>
>         *Stefan Schwarzer
> *        GIS & Data Management
>
>         UNEP/DEWA/GRID-Geneva
>         Chemin des Anemones 11
>         CH - 1219 Chatelaine
>         Switzerland
>
>         Tel: (+41) 22.917.83.49
>         Fax: (+41) 22.917.80.29
>
>         Internet: http://geodata.grid.unep.ch/
>         _______________________________________



More information about the mapserver-users mailing list