Maplayer, Userdrawlayer, Objectthemelayer – Pitney Bowes MapXtreme User Manual

Page 244: Grouplayer, Labellayer, Graticulelayer, Layer filters

Advertising
background image

Chapter 12: Adding Mapping Capability to Your Applications

Layers

MapXtreme v7.1

251

Developer Guide

MapLayer

The MapLayer class is the base class of any layer. This class implements the IMapLayer interface.
Properties include Enabled, VisibleZoomRange, Name, and Alias. Use this class to access generic
layer properties.

UserDrawLayer

The UserDrawLayer is an abstract class that allows you to override the draw method to draw your
own layer. It provides an efficient way to add custom objects on top of a MapControl using Windows
drawing methods, instead of creating new features using map coordinates and actually adding them
to a map.

ObjectThemeLayer

The ObjectThemeLayer class contains one of three different types of themes (pie chart, bar chart,
and graduated symbol). This layer behaves just like other layers and can be grouped, have visibility
set, etc.

GroupLayer

This is class represents a group of layers that are moved and turned on/off in unison. A GroupLayer
is a LayersBase collection combined with an IMapLayer. This object also supports the ability to do
AnimationLayers.

If the layer is in a group with a VolatilityHint equal to Animate then only those layers within that group
need to be redrawn. If the Layer has a VolatilityHint equal to CacheIfPossible or Normal then all
layers need to be redrawn.

LabelLayer

The LabelLayer class is responsible for generating labels and drawing them at a particular layer
position in a map. See

LabelLayer

and

Label Layer Settings

.

GraticuleLayer

This class is used to display a grid of longitude and latitude lines in the map window. See

Graticule

Layers

.

Layer Filters

The IMapLayersFilter and IMapLayersFilterFactory interfaces provide support for layer enumeration.

Advertising