新增景区权限模块,集成 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,69 @@
//
// MAPolygon.h
// MAMapKit
//
// Copyright (c) 2011年 Amap. All rights reserved.
//
#import "MAConfig.h"
#import <Foundation/Foundation.h>
#import "MAMultiPoint.h"
#import "MAOverlay.h"
///此类用于定义一个由多个点组成的闭合多边形, 点与点之间按顺序尾部相连, 第一个点与最后一个点相连, 通常MAPolygon是MAPolygonView的model
///This class is used to define a closed polygon composed of multiple points, where the points are connected sequentially from tail to head, and the first point is connected to the last point. Typically, MAPolygon is the model of MAPolygonView.
@interface MAPolygon : MAMultiPoint <MAOverlay>
///设置中空区域用来创建中间带空洞的复杂图形。注意传入的overlay只支持MAPolgon类型和MACircle类型,不支持与polygon边相交或在polygon外部,不支持hollowShapes彼此间相交,和空洞顺序有关,不支持嵌套. since 5.5.0
///Set the hollow area to create complex shapes with holes in the middle. Note: The incoming overlay only supports MAPolgon type and MACircle type. Intersection with polygon edges or being outside the polygon is not supported, intersection between hollowShapes is not supported, it is related to the order of holes, nesting is not supported. since 5.5.0
@property (nonatomic, strong) NSArray<id<MAOverlay>> *hollowShapes;
/**
* @brief 根据经纬度坐标数据生成闭合多边形
* Generate a closed polygon based on latitude and longitude coordinate data
* @param coords 经纬度坐标点数据,coords对应的内存会拷贝,调用者负责该内存的释放
* The memory corresponding to the latitude and longitude coordinate points, coords, will be copied, and the caller is responsible for releasing this memory
* @param count 经纬度坐标点数组个数
* The number of latitude and longitude coordinate point arrays
* @return 新生成的多边形
* Newly generated polygon
*/
+ (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
/**
* @brief 根据map point数据生成多边形
* Generate polygon based on map point data
* @param points map point数据,points对应的内存会拷贝,调用者负责该内存的释放
* map point data, the memory corresponding to points will be copied, the caller is responsible for releasing this memory
* @param count 点的个数
* number of points
* @return 新生成的多边形
* Newly generated polygon
*/
+ (instancetype)polygonWithPoints:(MAMapPoint *)points count:(NSUInteger)count;
/**
* @brief 重新设置多边形顶点. since 5.0.0
* Reset polygon vertices. since 5.0.0
* @param points 指定的直角坐标点数组, C数组内部会做copy调用者负责内存管理
* specified rectangular coordinate point array, C array, internal copy will be made, caller is responsible for memory management
* @param count 坐标点的个数
* number of coordinate points
* @return 是否设置成功
* whether the setup was successful
*/
- (BOOL)setPolygonWithPoints:(MAMapPoint *)points count:(NSInteger)count;
/**
* @brief 重新设置多边形顶点. since 5.0.0
* Reset polygon vertices. since 5.0.0
* @param coords 指定的经纬度坐标点数组, C数组内部会做copy调用者负责内存管理
* specified latitude and longitude coordinate point array, C array, internal copy will be made, caller is responsible for memory management
* @param count 坐标点的个数
* number of coordinate points
* @return 是否设置成功
* whether the setup was successful
*/
- (BOOL)setPolygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger)count;
@end