Imagemaps always empty
Stéphane RIFF
stephane.riff at CERENE.FR
Thu Apr 14 06:47:25 PDT 2005
I found why it doesn't work.
When looking in mapimagemap.c i found
that only symbol "0" are process so in the mapfile
you have to set all your symbols to "0" or nothing process
Another question how can i get id of a pointObj so i can query
(shapefile or postgis) to get data from datasource instead of the layer
name ???
Stéphane RIFF wrote:
> 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