[mapserver-users] Imagemap problem: <map> tag is empty with php mapscript
Simos Dimitrios
simos at geo.aegean.gr
Mon Apr 7 04:17:42 PDT 2008
Hello list.
I'm trying to insert an imagemap into one map image I'm creating.
The header, body, and footer templates are written as described
in various mails.
Although the cgi call returns the html file with the <map><...></map>
stuff inside, the same does not work with php/mapscript, as the
<area...> tags are not there.
The php/mapscript code is as follows:
$imagemap = $GLOBALS["imagemap"];
$img = $imagemap->draw();
$img->saveImage("c:/ms4w/Apache/htdocs/naseismic/eq_imagemap.html", $imagemap);
...
echo "<IMG ID = \"MAINMAP\" SRC = '" .$GLOBALS['url']. "' BORDER = 0 WIDTH = $nWidth HEIGHT = $nHeight NAME = 'MAINMAP' usemap = '#eq_imagemap'>";
It seems that I'm doing sth wrong, or there is a bug in the Mapserver 5 version that I have.
Has someone any idea, please? I have read many mails sent to the mapserver list, and
have tried lots of things, but nothing happens.
Dimitrios
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/139e84b0/attachment.htm>
More information about the MapServer-users
mailing list