Image Map - no picture
Kai Behncke
kbehncke at IGF.UNI-OSNABRUECK.DE
Sun Nov 12 13:29:42 PST 2006
Hello List,
I´m trying to get an imagemap with MapServer.
I checked out the hwoto on:
http://mapserver.gis.umn.edu/docs/howto/imagemaps
but somehow I cannot get it running.
In my mapfile I wrote
.....
LAYER
NAME testdaten
TYPE POINT
TOLERANCE 5
STATUS DEFAULT
TEMPLATE "bodytemplate.html"
HEADER "imapheader.html"
FOOTER "imapfooter.html"
CONNECTIONTYPE postgis
CONNECTION "user=postgres password=******* dbname=geodaten host=localhost
(port=5432"
DATA "the_geom from beispieltabelle"
.....
imapheader.html looks like:
<html>
<body>
<map id="mymap" name="mymap">
---------------------
imapfooter.html looks like:
<area shape="circle" coords="[shpxy precision=0 proj=image yf=",7" xf=","]"
href="http://myurl" title="[name]" alt="[name]">
---------------------
bodytemplate.html looks like:
</map>
<img name="map" src="http://localhost[img]" width="380"
height="450"></body></html>
I run the application with:
http://localhost/cgi-bin/mapserv?map=C:/Programme/Apachegroup/Apache/htdocs/
mapdatei.map&qlayer=testdaten&mode=nquery&searchmap=true
but I don`t get a map (in other applications witout imagemap the map-pictures
are generated without any problems).
If I watch the code in the browser, I see quite a lot area-sections
(<area shape="circle" coords="224,107,7"..........)
and in the end:
<img name="the_map" src="http://localhost/tmp/testkarte11633668963748.png"
width="380" height="450">
But in the "tmp-Directory" there is no "testkarte11633668963748.png"?
I wonder why?
Where is my mistake?
Thank you very much, Kai
--
Dipl.-Geogr. Kai Behncke
Institut für Geoinformatik und Fernerkundung (IGF)
Universität Osnabrück
Kolpingstr. 7
49074 Osnabrück
Raum: 01/308
Tel.: +49 541 969-4450
E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de
Web: http://www.igf.uni-osnabrueck.de
More information about the MapServer-users
mailing list