Class MapProjectionHandle
Any-thread projection snapshot handle with serialized native calls.
public sealed class MapProjectionHandle : IDisposable
- Inheritance
-
MapProjectionHandle
- Implements
- Inherited Members
Properties
IsClosed
Whether this wrapper has successfully closed its native handle.
public bool IsClosed { get; }
Property Value
Methods
Close()
Destroys the projection after active calls complete.
public void Close()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetCamera()
Gets the projection camera descriptor.
public CameraOptions GetCamera()
Returns
LatLngForPixel(ScreenPoint)
Converts a screen pixel to a geographic coordinate using this projection snapshot.
public LatLng LatLngForPixel(ScreenPoint point)
Parameters
pointScreenPoint
Returns
Remarks
The longitude is wrapped to the range from -180 to 180 degrees.
LatLngForPixelUnwrapped(ScreenPoint)
Converts a screen pixel to an unwrapped geographic coordinate.
public LatLng LatLngForPixelUnwrapped(ScreenPoint point)
Parameters
pointScreenPoint
Returns
Remarks
The longitude preserves the visible world copy and may fall outside -180 to 180.
PixelForLatLng(LatLng)
Converts a geographic coordinate to a screen pixel using this projection snapshot.
public ScreenPoint PixelForLatLng(LatLng coordinate)
Parameters
coordinateLatLng
Returns
SetCamera(CameraOptions)
Sets the projection camera descriptor, applying only non-null fields.
public void SetCamera(CameraOptions camera)
Parameters
cameraCameraOptions
SetVisibleCoordinates(IReadOnlyList<LatLng>, EdgeInsets)
Sets a camera that makes the supplied coordinates visible with padding.
public void SetVisibleCoordinates(IReadOnlyList<LatLng> coordinates, EdgeInsets padding)
Parameters
coordinatesIReadOnlyList<LatLng>paddingEdgeInsets
SetVisibleGeometry(byte[], EdgeInsets)
Sets a camera that makes the supplied geometry visible with padding.
public void SetVisibleGeometry(byte[] geometry, EdgeInsets padding)
Parameters
geometrybyte[]paddingEdgeInsets