MEMapView Class Reference
Inherits from | GLKView |
Conforms to | UIGestureRecognizerDelegate |
Declared in | MEMapView.h MEMapView.mm |
Overview
MEMapView displays maps, annotations and other content, and handles gestures (panning, zooming, scrolling, tapping) perfomed by the user.
Tasks
-
name
property -
tilePointSize
property -
tilePixelSize
property -
tileLevelBias
property -
tileBiasSmoothingEnabled
property -
panVelocityScale
property -
meMapViewController
property -
isPanDecelerationEnabled
property -
panAcceleration
property -
clearColor
property -
minimumZoom
property -
maximumZoom
property -
panEnabled
property -
zoomEnabled
property -
deviceScale
property -
– convertCoordinate:
-
– convertPoint:
-
– distanceToHorizonFromPoint:
-
– convertMECoordinate:
-
– setCameraAltitude:animationDuration:
Properties
clearColor
The color displayed when the screen is cleared with prior to drawing the map.
@property (nonatomic, retain) UIColor *clearColor
Declared In
MEMapView.h
deviceScale
The scaling factor used to convert points to pixels. This value is computed when the render target size changes. Until there is a valid render target (i.e. the engine is initialized and there is an OpenGL surface available) this value may be 0.
@property (readonly) CGFloat deviceScale
Declared In
MEMapView.h
isPanDecelerationEnabled
If set to YES, enables pan deceleration, othersie pan deceleration is disabled. Defaults to YES.
@property (nonatomic, assign, getter=isPanDecelerationEnabled) BOOL isPanDecelerationEnabled
Declared In
MEMapView.h
maximumZoom
Sets the maximum distance in meters from the camera/viewer to the map
@property (nonatomic, assign) double maximumZoom
Declared In
MEMapView.h
meMapViewController
The MEMapViewController that is driving this view.
@property (nonatomic, assign) MEMapViewController *meMapViewController
Declared In
MEMapView.h
minimumZoom
Sets the minimum distance in meters from the camera/viewer to the map
@property (nonatomic, assign) double minimumZoom
Declared In
MEMapView.h
name
A simple convenience property for keeping track of multiple views.
@property (atomic, retain) NSString *name
Declared In
MEMapView.h
panAcceleration
Controls the rate at which a panning gesture’s velocity slows down once the user finishes the gesture. The default value is -10.0. If you increase this value, it has the affect of giving more momentum to panning gestures. If you set this value to 0, panning gestures will create a motion that will not stop and just continue.
@property (nonatomic, assign) double panAcceleration
Declared In
MEMapView.h
panEnabled
If set to YES, the view can be panned, otherwise it panning is disabled. Defaults to YES.
@property (nonatomic, getter=isPanEnabled) BOOL panEnabled
Declared In
MEMapView.h
panVelocityScale
Scales the velocity of panning gestures up or down. Default is 1.0. If you increase this value, the user’s gestures velocities will be multiplied by this value. Consider adjusting the panAcceleration before changing this value.
@property (nonatomic, assign) double panVelocityScale
Declared In
MEMapView.h
tileBiasSmoothingEnabled
When tileLevelBias is greater than zero, setting this to YES limits level bias flip-flopping with smooth camera motion. NOTE: Enabling this setting can result in potentially more tiles being loaded for virtual maps than are necessary for the current camera position.
@property (nonatomic, assign) BOOL tileBiasSmoothingEnabled
Declared In
MEMapView.h
tileLevelBias
When set to 1.0, the mapping engine will force all levels to be coherent. In other words, if you have a raster street map, you can force it to always display a consistent. This results in more work for the engine and increased tile counts being displayed. Sometimes this can have a drastic impact on performance at certain viewing angles and distances. This should always be set to 0.0 when possible.
@property (nonatomic, assign) double tileLevelBias
Declared In
MEMapView.h
tilePixelSize
The device dependent pixel width and height for a map tile.
@property (nonatomic, readonly) unsigned int tilePixelSize
Declared In
MEMapView.h
Instance Methods
convertCoordinate:
Converts a geographic coordinate to a screen positiion.
- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate
Declared In
MEMapView.h
convertMECoordinate:
Helpfer funciton to convert an MELocationCoordinate2D into a CGPoint.
- (CGPoint)convertMECoordinate:(MELocationCoordinate2D)coordinate
Declared In
MEMapView.h
convertPoint:
Converts a screen position to a geographic coordinate.
- (CLLocationCoordinate2D)convertPoint:(CGPoint)point
Declared In
MEMapView.h