Imagemaps with point layers

Nicol Hermann mapserver at GEOWORLD.DE
Fri Sep 23 03:55:14 EDT 2005


Hi List,

I have a problem with imagemaps and point layers.

As expected i got an area tag for each record of my underlying layer.
The strange thing is that each '%s' wildcard in my FORMATOPTIONS is
replaced with the layer name instead of the field value of item
specified in the classitem tag (layer section).

<map name="map1" width="300" height="300">
<area href="alert('city');" shape="circle" coords="181,69, 3" />
<area href="alert('city');" shape="circle" coords="89,72, 3" />
<area href="alert('city');" shape="circle" coords="188,119, 3" />
...
</map>

Attached you find the outformat and layer definition of my mapfile.
Do i miss something or is this a bug?
If i change the whole thing to a polygon layer '%s' is replaced with the
values of the classitem field.

BTW: I use the latest stable release 4.6.1 on an Debian Sarge release.

  OUTPUTFORMAT
     NAME imagemap
     MIMETYPE "text/html"
     DRIVER imagemap
     FORMATOPTION "SYMBOLHREF=alert('%s');"
  END

  LAYER
    NAME city
    STATUS DEFAULT
    TYPE POINT
    DATA staedte
    CLASSITEM "CITY_NAME"
    CLASS
      NAME Staedte
      STYLE
         COLOR 128 128 0
         OUTLINECOLOR 0 0 0
         SYMBOL 0
      END
    END
  END

Thanks for every hint!
Nicol



More information about the mapserver-users mailing list