Using the MapServer Label and Style Property Binding

Parent Previous Next

Using the MapServer Label and Style Property Binding

MapServer supports binding some of the label and style properties to layer attributes. In this case the actual values of the attributes are retrieved from the features when the layer is rendered.

The label property binding can be set in the Label Property Editor, the style property binding can be set in the Style Property Editor. Only the labels with blue hyperlinks are allowed to specify the bindings.

You can toggle the binding option by clicking on any of the blue hyperlinks. When the bound mode is enabled a list of the available attributes are enumerated in a combobox and a small icon is displayed near to the corresponding control.


For the OGR data sources further "meta-attributes" are available related to the properties of the attached features native style.


These are:



By setting the Auto Style option in the Layer Property Editor all of the label properties are bound to the data source. However by using the label property binding you can bind only a subset of the attributes and specify the others manually.