Labellayer, Labelsource, Labelmodifier – Pitney Bowes MapXtreme User Manual

Page 247: Labellayer labelsource labelmodifier, On in a map. see

Advertising
background image

Chapter 12: Adding Mapping Capability to Your Applications

Labels

MapXtreme v7.1

254

Developer Guide

LabelLayer

The LabelLayer class allows the separate ordering of labels and layers. A LabelLayer is a kind of
MapLayer and behaves as such. This similarity to MapLayer supports the placement of a
LabelLayer anywhere you can put a MapLayer allowing for relative positioning of the Labels
compared to the other layers in the map. Each LabelLayer is made up of LayerSources and acts as
a collection of those objects.

LabelSource

The LabelSource class graphically displays geographies as labels based on a data source and rules
that define how the source is labeled. The LabelSource is added to a LabelLayer on the Map so that
it is drawn. The LabelLayer provides positioning within the Map as well as the rules that govern the
interaction with other LabelSources. To use LabelSource class, specify a table from where to get the
data (MITable), an expression which defines the label text, and other default label properties
accordingly.

LabelModifier

The LabelModifier class is used to modify the default properties used to make a label. When the
LabelLayer generates labels for each LabelSource in its Sources collection, it first uses the
DefaultLabelProperties to generate each label. It then uses each visible LabelModifier in the
Modifiers collection.

Advertising