hyperlink in a map

SUBSCRIBE MAPSERVER-USERS Nuri mapserver at HOTMAIL.COM
Mon Jul 18 01:53:43 PDT 2005


Hi,

I have my own map that places several symbols in it through a database. I
need to create a hyperlink for every symbol. Is it possible to do it?

This is my present map:

MAP
  IMAGETYPE      PNG
  EXTENT   20.000000 18.000000 50.000000 110.000000
  SIZE           500 350
  SHAPEPATH      "data"
  IMAGECOLOR     255 180 0
  SYMBOLSET      "symbols/symbols35.sym"
  FONTSET "fonts/fonts.list"

  # Start of LAYER DEFINITIONS --------------------------------------------
-
  LAYER
    NAME "prova"
    TYPE POINT
    CONNECTIONTYPE OGR
    CONNECTION "mapa21.ovf"
    DATA "mapa21"

    LABELITEM "id"
    #PROJECTION
    #  "init=epsg:4326"
    #END

    CLASS
      SYMBOL 'symbols/prova.gif'
      #SIZE 6
      COLOR 255 0 0
      LABEL
     SIZE MEDIUM
     TYPE BITMAP
     COLOR 0 0 0
      END
    END
END

  # End of LAYER DEFINITIONS -------------------------------
END # end of map file



It would be ok to insert the link in the symbol or in the ID (labelitem),
it's no matter, to call to another URL like http://www.mysite.com

Thank you.

Nuri



More information about the MapServer-users mailing list