Imagemaps always empty
Stéphane RIFF
stephane.riff at CERENE.FR
Thu Apr 14 02:41:12 PDT 2005
Hi
I tried to make imagemap support to work with no success.
I have a mapfile create with phpmapscript. there is one point layer,
this mapfile draws fine so i can see my symbols in a png image.
Now i take the same mapfile with :
IMAGETYPE imagemap
OUTPUTFORMAT
NAME imagemap
DRIVER imagemap
FORMATOPTION "POLYHREF=#"
FORMATOPTION "SYMBOLHREF=#"
FORMATOPTION "SUPPRESS=YES"
FORMATOPTION "MAPNAME=map_test"
FORMATOPTION "POLYMOUSEOUT=alert('poly out');"
FORMATOPTION "POLYMOUSEOVER=alert('poly %s');"
FORMATOPTION "SYMBOLMOUSEOUT=alert('symbol out');"
FORMATOPTION "SYMBOLMOUSEOVER=alert('symbol %s');"
MIMETYPE "text/html"
END
With phpmapscript i do that :
$imagemap =
ms_newMapObj("/var/www/html/map/imagemap.map","/var/www/html/map/");
$htmlmap = $imagemap->draw();
$htmlmap->saveImage("/var/tmp/test.html", $imagemap);
Here comes the problem : there is no error and tha imagemap file is
write well but i always get this in "/var/tmp/test.html":
<map name="map_test" width="600" height="600">
</map>
I use mapserver 4.4.2 , postgis , phpmapscript on redhat box.
Every advice are welcome
Thanks
More information about the MapServer-users
mailing list