You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.5 KiB

//
// MAMapStatus.h
// MapKit_static
//
// Created by yi chen on 1/27/15.
// Copyright © 2016 Amap. All rights reserved.
//
#import "MAConfig.h"
#import <UIKit/UIKit.h>
#import <CoreLocation/CLLocation.h>
///地图状态对象
@interface MAMapStatus : NSObject
///地图的中心点,改变该值时,地图的比例尺级别不会发生变化
@property (nonatomic) CLLocationCoordinate2D centerCoordinate;
///缩放级别
@property (nonatomic) CGFloat zoomLevel;
///设置地图旋转角度(逆时针为正向), 单位度, [0,360)
@property (nonatomic) CGFloat rotationDegree;
///设置地图相机角度(范围为[0.f, 45.f])
@property (nonatomic) CGFloat cameraDegree;
///地图的视图锚点。坐标系归一化,(0, 0)为MAMapView左上角,(1, 1)为右下角。默认为(0.5, 0.5),即当前地图的视图中心
@property (nonatomic) CGPoint screenAnchor;
/**
* @brief status
* @param coordinate
* @param zoomLevel
* @param rotationDegree ()
* @param cameraDegree ([0.f, 45.f])
* @param screenAnchor (0, 0)MAMapView左上角(1, 1)(0.5, 0.5)
* @return Status
*/
+ (instancetype)statusWithCenterCoordinate:(CLLocationCoordinate2D)coordinate
zoomLevel:(CGFloat)zoomLevel
rotationDegree:(CGFloat)rotationDegree
cameraDegree:(CGFloat)cameraDegree
screenAnchor:(CGPoint)screenAnchor;
/**
* @brief status
* @param coordinate
* @param zoomLevel
* @param rotationDegree ()
* @param cameraDegree ([0.f, 45.f])
* @param screenAnchor (0, 0)MAMapView左上角(1, 1)(0.5, 0.5)
* @return Status
*/
- (id)initWithCenterCoordinate:(CLLocationCoordinate2D)coordinate
zoomLevel:(CGFloat)zoomLevel
rotationDegree:(CGFloat)rotationDegree
cameraDegree:(CGFloat)cameraDegree
screenAnchor:(CGPoint)screenAnchor;
@end