iOS高德地图SDK(3D)  V7.5.0
MAMapStatus.h
Go to the documentation of this file.
1 //
2 // MAMapStatus.h
3 // MapKit_static
4 //
5 // Created by yi chen on 1/27/15.
6 // Copyright © 2016 Amap. All rights reserved.
7 //
8 
9 
10 
11 #import "MAConfig.h"
12 #import <UIKit/UIKit.h>
13 #import <CoreLocation/CLLocation.h>
14 
16 @interface MAMapStatus : NSObject
17 
19 @property (nonatomic) CLLocationCoordinate2D centerCoordinate;
20 
22 @property (nonatomic) CGFloat zoomLevel;
23 
25 @property (nonatomic) CGFloat rotationDegree;
26 
28 @property (nonatomic) CGFloat cameraDegree;
29 
31 @property (nonatomic) CGPoint screenAnchor;
32 
42 + (instancetype)statusWithCenterCoordinate:(CLLocationCoordinate2D)coordinate
43  zoomLevel:(CGFloat)zoomLevel
44  rotationDegree:(CGFloat)rotationDegree
45  cameraDegree:(CGFloat)cameraDegree
46  screenAnchor:(CGPoint)screenAnchor;
47 
57 - (id)initWithCenterCoordinate:(CLLocationCoordinate2D)coordinate
58  zoomLevel:(CGFloat)zoomLevel
59  rotationDegree:(CGFloat)rotationDegree
60  cameraDegree:(CGFloat)cameraDegree
61  screenAnchor:(CGPoint)screenAnchor;
62 
63 @end
CLLocationCoordinate2D centerCoordinate
地图的中心点,改变该值时,地图的比例尺级别不会发生变化
Definition: MAMapStatus.h:19
CGFloat zoomLevel
缩放级别
Definition: MAMapStatus.h:22
CGPoint screenAnchor
地图的视图锚点。坐标系归一化,(0, 0)为MAMapView左上角,(1, 1)为右下角。默认为(0.5, 0.5),即当前地图的视图中心
Definition: MAMapStatus.h:31
地图状态对象
Definition: MAMapStatus.h:16
CGFloat cameraDegree
设置地图相机角度(范围为[0.f, 45.f])
Definition: MAMapStatus.h:28
CGFloat rotationDegree
设置地图旋转角度(逆时针为正向), 单位度, [0,360)
Definition: MAMapStatus.h:25
© 2017 高德信息技术有限公司 版权所有,保留所有权利。