MindFusion.Mapping Programmer's Guide

MapView Members

Constructors Fields Properties Methods Events
 


A WPF control used to draw maps.

The following tables list the members exposed by the MapView type.

 Public Constructors

  Name Description

MapView

Initializes a new instance of the MapView class.

 Public Fields

  Name Description

BaseBoundsProperty

Identifies the BaseBounds dependency property.

LayersProperty

Identifies the Layers dependency property.

MapHeightProperty

Identifies the MapHeight dependency property.

MapWidthProperty

Identifies the MapWidth dependency property.

ZoomFactorProperty

Identifies the ZoomFactor dependency property.

 Public Properties

  Name Description

BaseBounds

Gets or sets the bounding rectangle of the base map.

BaseMap

Gets or sets the Map displayed in the first layer of this view.

Layers

Gets the list of layers displayed in this view.

MapHeight

Returns the height of the base map. Used for binding in the control's Xaml template.

MapWidth

Returns the width of the base map. Used for binding in the control's Xaml template.

ZoomFactor

Gets or sets the current zoom level.

 Public Methods

  Name Description

ClientToMap

Converts a point from the control's client coordinates to map coordinates.

MapToClient

Converts a point from the map coordinates to control's client coordinates.

OnApplyTemplate

Control.OnApplyTemplate override.

RaiseMapElementClick

Raises the MapElementClick event.

RaiseMapElementHover

Raises the MapElementHover event.

ScrollTo

Overloaded. Scrolls to a specified map location.

SetZoomFactor

Sets the map zoom level.

Transform

Gets the world-to-screen coordinate system transformation.

 Protected Methods

  Name Description

MeasureOverride

FrameworkElement.MeasureOverride override.

OnMapElementClick

Raises the MapElementClick event.

OnMapElementHover

Raises the MapElementHover event.

OnMouseLeftButtonDown

Control.OnMouseLeftButtonDown override.

OnMouseLeftButtonUp

Control.OnMouseLeftButtonUp override.

OnMouseMove

Control.OnMouseMove override.

OnMouseWheel

Control.OnMouseWheel override.

 Public Events

  Name Description

LayerDatabaseLoaded

Raised when the control completes loading layer's database asynchronously.

LayerLoaded

Raised when the control completes loading layer's data asynchronously.

MapElementClick

Raised when the user clicks a map element.

MapElementHover

Raised when the mouse rests over a map element.

 See Also