Skip to content

IMapArguments

Namespace: ThinkGeo.Core

Defines the IMapArguments interface.

public interface IMapArguments

Properties

MapUnit

Gets or sets the MapUnit.

public abstract GeographyUnit MapUnit { get; }

Property Value

GeographyUnit

MapWidth

Gets or sets the MapWidth.

public abstract double MapWidth { get; }

Property Value

double

MapHeight

Gets or sets the MapHeight.

public abstract double MapHeight { get; }

Property Value

double

RotationAngle

Gets or sets the RotationAngle.

public abstract double RotationAngle { get; }

Property Value

double

PivotScreenPoint

Gets or sets the PivotScreenPoint.

public abstract ScreenPointF PivotScreenPoint { get; }

Property Value

ScreenPointF

PivotWorldPoint

Gets or sets the PivotWorldPoint.

public abstract PointShape PivotWorldPoint { get; }

Property Value

PointShape

ZoomScales

Gets or sets the ZoomScales.

public abstract Collection<double> ZoomScales { get; }

Property Value

Collection<double>

CurrentResolution

Gets or sets the CurrentResolution.

public abstract double CurrentResolution { get; }

Property Value

double

CurrentScale

Gets or sets the CurrentScale.

public abstract double CurrentScale { get; }

Property Value

double

MaximumScale

Gets or sets the MaximumScale.

public abstract double MaximumScale { get; }

Property Value

double

MinimumScale

Gets or sets the MinimumScale.

public abstract double MinimumScale { get; }

Property Value

double

CurrentExtent

Gets or sets the CurrentExtent.

public abstract RectangleShape CurrentExtent { get; }

Property Value

RectangleShape

CenterPoint

Gets or sets the CenterPoint.

public abstract PointShape CenterPoint { get; }

Property Value

PointShape

ScaleFactor

Gets or sets the ScaleFactor.

public abstract float ScaleFactor { get; }

Property Value

float

CancellationTokenSource

Gets or sets the CancellationTokenSource.

public abstract CancellationTokenSource CancellationTokenSource { get; }

Property Value

CancellationTokenSource

Methods

ToWorldCoordinate(ScreenPointF)

Converts this instance to a PointShape.

PointShape ToWorldCoordinate(ScreenPointF screenCoordinate)

Parameters

screenCoordinate ScreenPointF
The screen coordinate.

Returns

PointShape
The result of the operation.

GetSnappedZoomLevelIndex(RectangleShape)

Returns snapped zoom level index for .

int GetSnappedZoomLevelIndex(RectangleShape extent)

Parameters

extent RectangleShape
The world extent represented by the canvas during the drawing session.

Returns

int
The result of the operation.

GetSnappedZoomLevelIndex(double)

Returns snapped zoom level index for .

int GetSnappedZoomLevelIndex(double scale)

Parameters

scale double
The scale factor to apply.

Returns

int
The result of the operation.

GetSnappedExtent(RectangleShape, ZoomSnapDirection)

Returns snapped extent for the specified parameters.

RectangleShape GetSnappedExtent(RectangleShape extent, ZoomSnapDirection zoomSnapDirection)

Parameters

extent RectangleShape
The world extent represented by the canvas during the drawing session.

zoomSnapDirection ZoomSnapDirection
The rectangle that defines the area of interest.

Returns

RectangleShape
The result of the operation.