|
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
|
