WgsExtensionsCanvasToPtvMercator Method (MapView, UIElement, Double) |
Conversion of a pixel distance into a Mercator distance.
Namespace:
Ptv.XServer.Controls.Map.Tools
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public static double CanvasToPtvMercator(
this MapView mapView,
UIElement canvas,
double distance
)
<ExtensionAttribute>
Public Shared Function CanvasToPtvMercator (
mapView As MapView,
canvas As UIElement,
distance As Double
) As Double
public:
[ExtensionAttribute]
static double CanvasToPtvMercator(
MapView^ mapView,
UIElement^ canvas,
double distance
)
[<ExtensionAttribute>]
static member CanvasToPtvMercator :
mapView : MapView *
canvas : UIElement *
distance : float -> float
Parameters
- mapView
- Type: Ptv.XServer.Controls.MapMapView
Map object needed for pixel (resolution) information. - canvas
- Type: System.WindowsUIElement
Canvas object needed for the current scale information. - distance
- Type: SystemDouble
Distance given in pixel format.
Return Value
Type:
DoubleDistance given in PTV-internal Mercator format.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
MapView. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also