leg_class_html block (using mapserv 4.6.2)
Brent Lund
Brent.Lund at STATE.MN.US
Wed Jan 11 13:17:30 PST 2006
I've set up a road layer with class definitions that vary the line type
based on the viewing scale.
http://mapserver.gis.umn.edu/docs/howto/html_legend/#class-block shows
the following
"e.g. opt_flag=14 (shown below) means do not show classes in the legend
that are out of scale."
This is not true. opt_flag=14 means do not show LAYERS in the legend
that are out of scale.
Something like the following won't work. (Both or neither class appear
in the leg_class_html block, depending on the layer's maxscale/minscale
definition)
...
CLASSITEM "csah_hwy"
CLASS
NAME "County Road"
MAXSCALE 1000000
MINSCALE 150000
SYMBOL 'circle'
COLOR 102 102 102
END
CLASS
NAME "County Road"
MAXSCALE 150000
STYLE
COLOR 102 102 102
SYMBOL 'circle'
SIZE 6
END
STYLE
COLOR 255 255 255
SYMBOL 'rectangle-train'
SIZE 2
END
END
...
To get around this, one needs to split the class definitions into 2
layers and set the maxscale/minscale for the layers.
Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060111/71ca1d64/attachment.htm>
More information about the MapServer-users
mailing list