Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
colourYellow
title5.4.0+

In order to see data on a map, it must be styled. Styling specifies colour, thickness, and other visible attributes used to render data on a map. Styling is accomplished using a markup language called Styled Layer Descriptor, or SLD for short. SLD is an XML-based markup language and is extremely powerful. 

Vector data in iShare consists of three classes of shapes: Points, Lines, and PolygonsLines, one dimensional, are the simplest, as they have only the edge to style (aka Stroke). Polygons, two dimensional, have an edge and an inside (aka Fill), both of which can be styled differently. Points can have a StrokeFill and Size that can be styled. 

The SLD Style Editor (introduced in V5.4.0) allows you to change the style of your OGC Layer without having to manually edit the SLD. This may be accessed by clicking the Modify Style button when selecting an OGC Layer in Studio. For advanced users there is still the Advanced tab where you may manually edit. 

...

The default style for the Geometry type you selected will be displayed for you to make your changes. Due to the flexibility of MapServer not all of the options will be available with all of the various types of symbol; we suggest that you try various different options so to see which gives you the affect your effect you require.

Info

The list of symbols is taken from the SYMBOLSET defined in your .map file. See Symbols & Styling.

...

Here you may pick the Minimum and Maximum scale for which this Style Rule applies. From v5.6.0 only.

Label

This is where you may define a label for any of the above geometry types.

Field

Pick a field to be displayed as the label for your point.

...

To alter the size of the label text either use the scroll buttons or manually enter the size in the box provided.

Rotation

The Rotation specifies that labels should be rotated clockwise by a given number of degrees. If you wish to rotate the label text you may enter a value here. 0 means no rotation.

...

To remove the colour entirely click on the red cross. If you remove the colour then you effectively also remove the halo. To select a colour click on the space to the left of the red cross and the Colour pallet will be displayed. Pick your colour and click OK.

Anchor Point

The anchor point determines where the label is placed relative to the label point. The anchor point values are specified relative to the bounding box of the label, with values from 0 to 1 inclusive.  Select one of the anchor points from the drop down list provided.

Displacement

Displacement allows fine control of the placement of the label. Here you may specify an x and y displacement value (in pixels) for the label from the selected anchor point.

...