RMMercatorToScreenProjection

@interface RMMercatorToScreenProjection : NSObject

This is a stateful projection.  As the screen moves around, so too do projections change.

Summary
RMMercatorToScreenProjectionThis is a stateful projection.
Functions
movePointDeltas in screen coordinates.
moveRectDeltas in screen coordinates.
zoomPointpivot given in screen coordinates.
zoomRectpivot given in screen coordinates.
moveScreenByMove the screen.
projectXYPointProject -> screen coordinates.
projectXYRectProject -> screen coordinates.
projectedBounds视图内地理范围

Functions

movePoint

- (RMProjectedPoint)movePoint: (RMProjectedPoint)aPoint by:(CGSize) delta

Deltas in screen coordinates.

Parameters

aPoint{RMProjectedPoint}

Returns

{RMProjectedPoint}

moveRect

- (RMProjectedRect)moveRect: (RMProjectedRect)aRect by:(CGSize) delta

Deltas in screen coordinates.

Parameters

aRect{RMProjectedRect}

Returns

{RMProjectedRect}

zoomPoint

- (
   RMProjectedPoint
)zoomPoint: (RMProjectedPoint)aPoint byFactor: (float)factor near:(CGPoint) pivot

pivot given in screen coordinates.

Parameters

aPoint{RMProjectedPoint}

Returns

{RMProjectedPoint}

zoomRect

- (
   RMProjectedRect
)zoomRect: (RMProjectedRect)aRect byFactor: (float)factor near:(CGPoint) pivot

pivot given in screen coordinates.

Parameters

aRect{RMProjectedRect}

Returns

{RMProjectedRect}

moveScreenBy

- (void) moveScreenBy: (CGSize) delta

Move the screen.

Parameters

delta{<CGSize>}

projectXYPoint

- (
   CGPoint
)projectXYPoint:(RMProjectedPoint)aPoint withMetersPerPixel:(float)aScale

Project -> screen coordinates.

Parameters

aPoint{RMProjectedPoint}

Returns

{<CGPoint>}

projectXYRect

- (CGRect) projectXYRect: (RMProjectedRect) aRect

Project -> screen coordinates.

Parameters

aRect{RMProjectedRect}

Returns

{<CGRect>}

projectedBounds

- (RMProjectedRect) projectedBounds

视图内地理范围

Returns

{RMProjectedRect}

@interface RMMercatorToScreenProjection : NSObject
This is a stateful projection.
- (RMProjectedPoint)movePoint: (RMProjectedPoint)aPoint by:(CGSize) delta
Deltas in screen coordinates.
- (RMProjectedRect)moveRect: (RMProjectedRect)aRect by:(CGSize) delta
Deltas in screen coordinates.
- (
   RMProjectedPoint
)zoomPoint: (RMProjectedPoint)aPoint byFactor: (float)factor near:(CGPoint) pivot
pivot given in screen coordinates.
- (
   RMProjectedRect
)zoomRect: (RMProjectedRect)aRect byFactor: (float)factor near:(CGPoint) pivot
pivot given in screen coordinates.
- (void) moveScreenBy: (CGSize) delta
Move the screen.
- (
   CGPoint
)projectXYPoint:(RMProjectedPoint)aPoint withMetersPerPixel:(float)aScale
Project -> screen coordinates.
- (CGRect) projectXYRect: (RMProjectedRect) aRect
Project -> screen coordinates.
- (RMProjectedRect) projectedBounds
视图内地理范围
{struct} coordinates, in projected meters, paralleling CGPoint
{struct} location and size, in projected meters, paralleling CGRect
Close