MapServer allows you to define styles for features. These can be stacked on top of each other. Common simple style settings are:
POINT (SYMBOL)
STYLE SYMBOL "circle" SIZE 8 COLOR 0 128 0 END
POLYGON
STYLE # solid fill COLOR 115 192 0 END STYLE # thick outline (could use a circle symbol with size too) OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END
POLYLINE
NAME "Streets" STYLE COLOR 192 192 192 SYMBOL 'continue' SIZE 4 ANTIALIAS TRUE END STYLE COLOR 255 255 255 SYMBOL 'continue' SIZE 2 ANTIALIAS TRUE END
ANNOTATION
CLASS LABEL FONT "arialbd" TYPE TRUETYPE COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 10 POSITION cc ANTIALIAS TRUE END END
If the symbol that you wish to use is quite large it is advisable to offset it in order for the “PointInfo” search to return the correct results. Normally the symbol will be placed with the top left hand corner at the coordinates of the point. If a user then clicks on the centre of the actual symbol this may not fall within the “PointInfo” tolerance (defined in the webconfig - <add key="MapPixelTolerance" value="10"/>) and incorrect or no results may be returned.
SYMBOL OFFSET
CLASS STYLE SYMBOL "speedcamera" OFFSET -5 -5 END END