hyperlink in a map
Bob Bruce
covariance at SHAW.CA
Wed Jul 20 10:22:04 PDT 2005
Nuri:
I use the imagemap feature of MapServer to do this. Right now there
is only support for vector symbols and the 'out of the box' support only
allows for a single URL to be referenced for all symbols. I have made my
own MapServer modifications (which I still need to upload to the website)
that allow for individual symbols to be mapped uniquely, if you are into
building MapServer then I can provide those changes to you.
In the meantime you should check out the MapServer imagemap page at:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap
and if you have a look at my reply to post #68 (imagemap output format) in
the July 2005 MAPSERVER-USERS postings you will see an example of this
useage.
Bob Bruce, Winnipeg, Manitoba
http://www.hwps.ca
On Mon, 18 Jul 2005 03:53:43 -0500, SUBSCRIBE MAPSERVER-USERS Nuri
<mapserver at HOTMAIL.COM> wrote:
>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