OSOverlayView Class Reference
| Inherits from | UIView |
| Declared in | OSOverlayView.h |
Overview
OSOverlayView provides the visual representation associated with an OSOverlay.
Subclasses are expected to implement drawGridRect:zoomScale:inContext, but concrete implementations are provided for each of the provided concrete OSOverlay objects.
Tasks
Other Methods
-
overlayproperty -
– initWithOverlay: -
– gridPointForPoint:Convert a point in the view's coordinate space into a map point -
– gridRectForRect:Convert a rect in the view’s coordinate space into a map rect
-
– pointForGridPoint:Convert a point on the map to a point in the view’s coordinate space
-
– rectForGridRect:Convert a rectangle on the map to a point in the view’s coordinate space
-
– drawGridRect:zoomScale:inContext:area to render
-
– setNeedsDisplayInGridRect:
Other Methods
Instance Methods
drawGridRect:zoomScale:inContext:
area to render
- (void)drawGridRect:(OSGridRect)gridRect zoomScale:(float)zoomScale inContext:(CGContextRef)contextParameters
- gridRect
area to render
- zoomScale
measured in metres per pixel
- content
to render in
The default implementation of this method does nothing. Subclasses should provide their own implementation, which should be thread-safe. Failure to only draw the area requested by gridRect and thereby render outside that rectangle may lead to performance problems.
Declared In
OSOverlayView.hgridPointForPoint:
Convert a point in the view's coordinate space into a map point
- (OSGridPoint)gridPointForPoint:(CGPoint)pointParameters
- point
The point in the view’s coordinate space to convert
Declared In
OSOverlayView.hgridRectForRect:
Convert a rect in the view’s coordinate space into a map rect
- (OSGridRect)gridRectForRect:(CGRect)rectParameters
- rect
The rectangle in the view’s coordinate space to convert
Declared In
OSOverlayView.hpointForGridPoint:
Convert a point on the map to a point in the view’s coordinate space
- (CGPoint)pointForGridPoint:(OSGridPoint)gridPointParameters
- point
The point on the map to convert
Declared In
OSOverlayView.h