MapQuest Map SDK for iOS  1.1
Deploy maps and map functions natively in iOS applications for the iPhone and iPad
 All Classes Files Functions Variables Typedefs Properties
Instance Methods | Properties | List of all members
MQOverlayView Class Reference
Inheritance diagram for MQOverlayView:
MQOverlayPathView MQCircleView MQPolygonView MQPolylineView

Instance Methods

(BOOL) - canDrawMapRect:zoomScale:
 
(void) - drawMapRect:zoomScale:inContext:
 
(id) - initWithOverlay:
 
(MQMapPoint- mapPointForPoint:
 
(MQMapRect- mapRectForRect:
 
(CGPoint) - pointForMapPoint:
 
(CGRect) - rectForMapRect:
 
(void) - setNeedsDisplayInMapRect:
 
(void) - setNeedsDisplayInMapRect:zoomScale:
 
(MQMapView *) - mapViewForView:
 
(double) - scale
 

Properties

id< MQOverlayoverlay
 The overlay attached to this overlay view.
 

Detailed Description

The MQOverlayView is the base class for all overlay view implementations.

Method Documentation

- (BOOL) canDrawMapRect: (MQMapRect mapRect
zoomScale: (MQZoomScale zoomScale 

Ask this overlay view if it can draw the given mapRect

Parameters
mapRectThe map rect that serves as the projected boundary around some annotations
zoomScaleThe zoomScale to be drawn at
Returns
a BOOL whether the mapRect can be drawn
- (void) drawMapRect: (MQMapRect mapRect
zoomScale: (MQZoomScale zoomScale
inContext: (CGContextRef)  context 

Draw into the given mapRect at zoomScale using the passed context

Parameters
mapRectThe map rect that serves as the projected boundary around some annotations
zoomScaleThe zoomScale to be drawn at
contextThe context to draw into
Returns
a BOOL whether the mapRect can be drawn
- (id) initWithOverlay: (id< MQOverlay >)  overlay

Initialization method for MQOverlayView

Parameters
overlayAn MQOverlay that this view will be representing on screen
Returns
a new MQOverlay object
- (MQMapPoint) mapPointForPoint: (CGPoint)  point

Translate a screen point into a map point

Parameters
pointA screen point to be translated
Returns
a point in map points
- (MQMapRect) mapRectForRect: (CGRect)  rect

Translate a screen region into a map region

Parameters
rectA screen region to be translated
Returns
a region in map points
- (MQMapView*) mapViewForView: (UIView *)  aView

The mapView that contains the given view

Parameters
aViewA view that is contained by the mapview
- (CGPoint) pointForMapPoint: (MQMapPoint mapPoint

Translate a map point into a screen point

Parameters
mapPointA map point to be translated
Returns
a screen point
- (CGRect) rectForMapRect: (MQMapRect mapRect

Translate a map region into a screen region

Parameters
mapRectA map region to be translated
Returns
a screen region
- (double) scale

Get the current zoom scale

Returns
the current scale
- (void) setNeedsDisplayInMapRect: (MQMapRect mapRect

Mark the overlay as needing to be redrawn

Parameters
mapRectregion that needs to be redrawn
- (void) setNeedsDisplayInMapRect: (MQMapRect mapRect
zoomScale: (MQZoomScale zoomScale 

Mark the overlay as needing to be redrawn

Parameters
mapRectregion that needs to be redrawn
zoomScalezoom scale at which the region needs to be redrawn

The documentation for this class was generated from the following file: