新增景区权限模块,集成 AMap CocoaPods 并支持模拟器

将景区选择与权限申请流程接入首页路由,集成高德 SDK 用于真机构建,并通过 Podfile post_install 钩子保证 arm64 模拟器可编译。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-23 10:15:26 +08:00
parent 5d4613f317
commit b61bf0d070
416 changed files with 18641 additions and 38 deletions

View File

@ -0,0 +1,64 @@
//
// MAMapSnapshot.h
// MAMapKit
//
// Created by ZhaoRui on 2022/3/30.
// Copyright © 2022 Amap. All rights reserved.
//
#import "MAMapKit/MAMapKit.h"
@interface MAMapSnapshotModel : NSObject
@property (nonatomic, assign) CGSize size;
@property (nonatomic, assign) CGPoint position;
@property (nonatomic, assign) MAMapPoint tlPoint;
@property (nonatomic, assign) MAMapPoint trPoint;
@property (nonatomic, strong) UIImage* image;
@end
@interface MAMapSnapshot : NSObject
@property (nonatomic, readonly) CGSize minSize;
@property (nonatomic, readonly) CGSize maxSize;
- (instancetype)init:(MAMapView*)mapview;
/**
* @brief 异步在指定区域内截图(默认会包含该区域内的annotationView), 地图载入完整时回调
* Asynchronously capture a screenshot within the specified area (by default, it will include the annotationView within that area), callback when the map is fully loaded
* @param size 指定的区域
* The specified area
* @param tl 左上
* Top left
* @param tr 右上
* Top right
* @param block 回调block(resultImages:返回的图片集合,state0载入不完整1完整
* Callback block(resultImages: returned image collection, state: 0 incomplete loading, 1 complete)
*/
typedef void(^CaptureResultBlock)(NSArray<MAMapSnapshotModel*> *resultImages, NSInteger state);
- (BOOL)captureBigPicture:(CGSize)pixelSize
topLeft:(CLLocationCoordinate2D)tl
topRight:(CLLocationCoordinate2D)tr
complete:(CaptureResultBlock)block;
/**
* @brief 异步在指定区域内截图(默认会包含该区域内的annotationView), 地图载入完整时回调
* Asynchronously capture a screenshot within the specified area (by default, it will include the annotationView within that area), callback when the map is fully loaded
* @param size 指定的区域
* The specified area
* @param tl 左上
* Top left
* @param tr 右上
* Top right
* @param block 回调block(resultImage:返回的图片,state0载入不完整1完整
* Callback block(resultImage: returned image, state: 0 incomplete loading, 1 complete)
*/
typedef void(^Observer)(UIImage *resultImage, NSInteger state);
- (BOOL)capture:(CGSize)size
topLeft:(CLLocationCoordinate2D)tl
topRight:(CLLocationCoordinate2D)tr
complete:(Observer)block;
@end