Click or drag to resize

MapCanvas Class

The main canvas which holds viewable elements for a map.
Inheritance Hierarchy

Namespace:  Ptv.XServer.Controls.Map.Canvases
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public abstract class MapCanvas : Canvas, 
	IWeakEventListener

The MapCanvas type exposes the following members.

Constructors
  NameDescription
Protected methodMapCanvas
Initializes a new instance of the MapCanvas class. Stores the parent map and adds listeners to the map viewport changed events.
Top
Properties
  NameDescription
Public propertyCanvasCategory
Gets or sets the CanvasCategory of the canvas. The canvas category defines the z order of the canvas in the map.
Public propertyMapView
Gets the parent map instance.
Top
Methods
  NameDescription
Protected methodBeforeUpdate
Callback to precede the updating of the map content.
Public methodCanvasToGeo
Converts a canvas point to a geographic point.
Public methodCanvasToPtvMercator
This method implements a transformation from canvas coordinates to logical coordinates.
Public methodDispose
Disposes the map canvas. During disposal the children of the canvas are removed and the viewport changed events are disconnected.
Public methodGeoToCanvas(Point)
Converts a geographic point to a canvas point.
Public methodGeoToCanvas(Point, String)
Converts a geographic point to a canvas coordinate.
Public methodPtvMercatorToCanvas
This method implements a transformation from logical coordinates to canvas coordinates.
Public methodReceiveWeakEvent
Receives events from the centralized event manager.
Public methodUpdate
Updates the map content. The map content consists of all elements of the canvas. This method is for example triggered when the viewport changes.
Top
Extension Methods
  NameDescription
Public Extension MethodFindRelativeT
Finds an object of type T for a framework element which is somewhere in the visual tree.
(Defined by MapElementExtensions.)
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
See Also