shpxy generates flawed area-tag for imagemaps with polygon areas
in the howto document "http://mapserver.gis.umn.edu/docs/howto/imagemaps" is
stated that for generating an imagemap with polygon areas such a query template
should be used:
<area shape="polygon" coords="[shpxy precision=0 proj=image]" ...>
The correct syntax for polygon areas is: shape="poly" .
Inspection of the shpxy-example (6. More Information):
http://maps.dnr.state.mn.us/cgi-bin/mapserv48?
map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mod
e=nquery&searchmap=true
shows the following source code:
...
<area shape="polygon" coords="96,42 104,43 105,15 ...>
...
i.e. missing commas between the coordinates. The correct syntax is
x1,y1,x2,y2,...,xn,yn
IE works with the spaces between the coordinates, Firefox does not.
Don't know whether shape="rect" is also usable? Similar syntax there:
<area shape="rect" coords="x1,y1,x2,y2" ...>
Regards,
Andreas
Change History
(4)
Resolution: |
→ invalid
|
Status: |
assigned → closed
|