MindFusion.Mapping Programmer's Guide

Layer(TColor, TPalette) Members

Constructors Properties Methods Events
 


Represents a map layer.

The following tables list the members exposed by the Layer(TColor, TPalette) type.

 Public Constructors

  Name Description

Layer

Initializes a new instance of the Layer class.

 Public Properties

  Name Description

BoundingBox

Returns the bounding box of elements in this layer.

EnableHighlight

Gets or sets whether map elements should be automatically highlighted when the mouse hovers over them.

EnableSelection

Gets or sets whether map elements should be selected when the user clicks them.

FillColors

Gets or sets the colors used to fill map elements on this layer.

HighlightColor

Gets or sets the color used to highlight elements on this layer.

LineColor

Gets or sets the line color used to draw elements on this layer.

Palette

Gets or sets the color palette associated with this layer.

Visible

Gets or sets whether this layer should be visible in the map view.

 Public Methods

  Name Description

ClearCache

Clears any cached values associated with the layer for the current zoom level.

Draw

Overloaded. Draws the elements of this layer on a canvas.

DrawHighlights

Draws the layer's highlighted elements on the specified canvas.

DrawLabels

Draws the labels of elements of this layer on the specified canvas.

Highlight

Highlights the specified map element.

HitTest

Returns the map element located at the specified point.

Select

Selects the specified map element.

Toggle

Toggles the selection state the specified map element.

 Protected Methods

  Name Description

OnAsyncDatabaseLoadComplete

Raises the AsyncDatabaseLoadComplete event.

OnAsyncLoadComplete

Raises the AsyncLoadComplete event.

OnPropertyChanged

Raises the PropertyChanged event.

 Public Events

  Name Description

AsyncDatabaseLoadComplete

Raised when an asynchronous database-read operation is completed.

AsyncLoadComplete

Raised when an asynchronous shapefile-read operation is completed.

PropertyChanged

Raised when the value of a property of the Layer class is changed.

 See Also