iOS高德地图SDK(3D) V11.2.0001

MAMapSnapshot.h
Go to the documentation of this file.
1 //
2 // MAMapSnapshot.h
3 // MAMapKit
4 //
5 // Created by ZhaoRui on 2022/3/30.
6 // Copyright © 2022 Amap. All rights reserved.
7 //
8
9 #import "MAMapKit/MAMapKit.h"
10
11 @interface MAMapSnapshotModel : NSObject
12
13 @property (nonatomic, assign) CGSize size;
14 @property (nonatomic, assign) CGPoint position;
15 @property (nonatomic, assign) MAMapPoint tlPoint;
16 @property (nonatomic, assign) MAMapPoint trPoint;
17 @property (nonatomic, strong) UIImage* image;
18
19 @end
20
21 @interface MAMapSnapshot : NSObject
22
23 @property (nonatomic, readonly) CGSize minSize;
24 @property (nonatomic, readonly) CGSize maxSize;
25
26 - (instancetype)init:(MAMapView*)mapview;
27
40 typedef void(^CaptureResultBlock)(NSArray<MAMapSnapshotModel*> *resultImages, NSInteger state);
41 - (BOOL)captureBigPicture:(CGSize)pixelSize
42 topLeft:(CLLocationCoordinate2D)tl
43 topRight:(CLLocationCoordinate2D)tr
44 complete:(CaptureResultBlock)block;
57 typedef void(^Observer)(UIImage *resultImage, NSInteger state);
58 - (BOOL)capture:(CGSize)size
59 topLeft:(CLLocationCoordinate2D)tl
60 topRight:(CLLocationCoordinate2D)tr
61 complete:(Observer)block;
62
63 @end
64
MAMapSnapshot
Definition: MAMapSnapshot.h:22
MAMapSnapshotModel
Definition: MAMapSnapshot.h:12
MAMapSnapshotModel::position
CGPoint position
Definition: MAMapSnapshot.h:14
MAMapSnapshotModel::image
UIImage * image
Definition: MAMapSnapshot.h:17
MAMapSnapshotModel::trPoint
MAMapPoint trPoint
Definition: MAMapSnapshot.h:16
MAMapSnapshotModel::tlPoint
MAMapPoint tlPoint
Definition: MAMapSnapshot.h:15
MAMapSnapshotModel::size
CGSize size
Definition: MAMapSnapshot.h:13
MAMapView
Definition: MAMapView.h:98
MAMapPoint
Definition: MAGeometry.h:42
© 2017 高德信息技术有限公司 版权所有，保留所有权利。