Initializes a new instance of the
WorldCanvas class. If the parameter
addToMap is set to true, the canvas is added to the parent map.
Namespace:
Ptv.XServer.Controls.Map.Canvases
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax protected WorldCanvas(
MapView mapView,
bool addToMap = true,
Point localOffset = null
)
Protected Sub New (
mapView As MapView,
Optional addToMap As Boolean = true,
Optional localOffset As Point = Nothing
)
protected:
WorldCanvas(
MapView^ mapView,
bool addToMap = true,
Point localOffset = nullptr
)
new :
mapView : MapView *
?addToMap : bool *
?localOffset : Point
(* Defaults:
let _addToMap = defaultArg addToMap true
let _localOffset = defaultArg localOffset null
*)
-> WorldCanvas
Parameters
- mapView
- Type: Ptv.XServer.Controls.MapMapView
The instance of the parent map. - addToMap (Optional)
- Type: SystemBoolean
Indicates that the canvas should inserted to the parent map immediately. - localOffset (Optional)
- Type: System.WindowsPoint
An optional offset for the Mercator units.
See Also