MapCanvas Class |
Namespace: Ptv.XServer.Controls.Map.Canvases
The MapCanvas type exposes the following members.
Name | Description | |
---|---|---|
![]() | MapCanvas | Initializes a new instance of the MapCanvas class. Stores the parent map and adds
listeners to the map viewport changed events. |
Name | Description | |
---|---|---|
![]() | CanvasCategory | Gets or sets the CanvasCategory of the canvas. The canvas category defines the z
order of the canvas in the map. |
![]() | MapView | Gets the parent map instance. |
Name | Description | |
---|---|---|
![]() | BeforeUpdate | Callback to precede the updating of the map content. |
![]() | CanvasToGeo | Converts a canvas point to a geographic point. |
![]() | CanvasToPtvMercator | This method implements a transformation from canvas coordinates to logical coordinates. |
![]() | Dispose | Disposes the map canvas. During disposal the children of the canvas are removed and the viewport
changed events are disconnected. |
![]() | GeoToCanvas(Point) | Converts a geographic point to a canvas point. |
![]() | GeoToCanvas(Point, String) |
Converts a geographic point to a canvas coordinate.
|
![]() | PtvMercatorToCanvas | This method implements a transformation from logical coordinates to canvas coordinates. |
![]() | ReceiveWeakEvent | Receives events from the centralized event manager. |
![]() | Update | Updates the map content. The map content consists of all elements of the canvas. This method is
for example triggered when the viewport changes. |
Name | Description | |
---|---|---|
![]() | FindRelativeT | Finds an object of type T for a framework element which is somewhere in the visual tree. (Defined by MapElementExtensions.) |
![]() | ToJson | Converts an object to a JSON string representation. (Defined by JSONWriter.) |