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
-
nameproperty -
tilePointSizeproperty -
tilePixelSizeproperty -
tileLevelBiasproperty -
tileBiasSmoothingEnabledproperty -
panVelocityScaleproperty -
meMapViewControllerproperty -
isPanDecelerationEnabledproperty -
panAccelerationproperty -
clearColorproperty -
minimumZoomproperty -
maximumZoomproperty -
panEnabledproperty -
zoomEnabledproperty -
deviceScaleproperty -
– 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 *clearColorDeclared In
MEMapView.hdeviceScale
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 deviceScaleDeclared In
MEMapView.hisPanDecelerationEnabled
If set to YES, enables pan deceleration, othersie pan deceleration is disabled. Defaults to YES.
@property (nonatomic, assign, getter=isPanDecelerationEnabled) BOOL isPanDecelerationEnabledDeclared In
MEMapView.hmaximumZoom
Sets the maximum distance in meters from the camera/viewer to the map
@property (nonatomic, assign) double maximumZoomDeclared In
MEMapView.hmeMapViewController
The MEMapViewController that is driving this view.
@property (nonatomic, assign) MEMapViewController *meMapViewControllerDeclared In
MEMapView.hminimumZoom
Sets the minimum distance in meters from the camera/viewer to the map
@property (nonatomic, assign) double minimumZoomDeclared In
MEMapView.hname
A simple convenience property for keeping track of multiple views.
@property (atomic, retain) NSString *nameDeclared In
MEMapView.hpanAcceleration
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 panAccelerationDeclared In
MEMapView.hpanEnabled
If set to YES, the view can be panned, otherwise it panning is disabled. Defaults to YES.
@property (nonatomic, getter=isPanEnabled) BOOL panEnabledDeclared In
MEMapView.hpanVelocityScale
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 panVelocityScaleDeclared In
MEMapView.htileBiasSmoothingEnabled
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 tileBiasSmoothingEnabledDeclared In
MEMapView.htileLevelBias
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 tileLevelBiasDeclared In
MEMapView.htilePixelSize
The device dependent pixel width and height for a map tile.
@property (nonatomic, readonly) unsigned int tilePixelSizeDeclared In
MEMapView.hInstance Methods
convertCoordinate:
Converts a geographic coordinate to a screen positiion.
- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinateDeclared In
MEMapView.hconvertMECoordinate:
Helpfer funciton to convert an MELocationCoordinate2D into a CGPoint.
- (CGPoint)convertMECoordinate:(MELocationCoordinate2D)coordinateDeclared In
MEMapView.hconvertPoint:
Converts a screen position to a geographic coordinate.
- (CLLocationCoordinate2D)convertPoint:(CGPoint)pointDeclared In
MEMapView.h