新增景区权限模块,集成 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,78 @@
//
// MAAnimatedAnnotation.h
// MAMapKit
//
// Created by shaobin on 16/12/8.
// Copyright © 2016 Amap. All rights reserved.
//
#import "MAConfig.h"
#import "MAPointAnnotation.h"
#import "MAAnnotationMoveAnimation.h"
///支持动画效果的点标注
///Point annotation with animation support
@interface MAAnimatedAnnotation : MAPointAnnotation<MAAnimatableAnnotation>
///移动方向. 正北为0度顺时针方向。即正东90正南180正西270。since 4.5.0
///Movement direction. 0 degrees is true north, clockwise. That is, 90 degrees is east, 180 degrees is south, and 270 degrees is west. since 4.5.0
@property (nonatomic, assign) CLLocationDirection movingDirection;
/**
@brief 添加移动动画, 第一个添加的动画以当前coordinate为起始点沿传入的coordinates点移动否则以上一个动画终点为起始点. since 4.5.0
Add a movement animation, the first added animation starts from the current coordinate and moves along the passed coordinates, otherwise it starts from the endpoint of the previous animation. since 4.5.0
@param coordinates c数组由调用者负责coordinates指向内存的管理
C array, the caller is responsible for the management of the memory pointed to by coordinates
@param count coordinates数组大小
coordinates array size
@param duration 动画时长0或<0为无动画
animation duration, 0 or <0 means no animation
@param name 名字如不指定可传nil
name, can pass nil if not specified
@param completeCallback 动画完成回调isFinished: 动画是否执行完成
animation completion callback, isFinished: whether the animation is completed
*/
- (MAAnnotationMoveAnimation *)addMoveAnimationWithKeyCoordinates:(CLLocationCoordinate2D *)coordinates
count:(NSUInteger)count
withDuration:(CGFloat)duration
withName:(NSString *)name
completeCallback:(void(^)(BOOL isFinished))completeCallback;
/**
@brief 添加移动动画, 第一个添加的动画以当前coordinate为起始点沿传入的coordinates点移动否则以上一个动画终点为起始点. since 5.4.0
Add a movement animation, the first added animation starts from the current coordinate and moves along the passed coordinates, otherwise it starts from the endpoint of the previous animation. since 5.4.0
@param coordinates c数组由调用者负责coordinates指向内存的管理
C array, the caller is responsible for the management of the memory pointed to by coordinates
@param count coordinates数组大小
coordinates array size
@param duration 动画时长0或<0为无动画
animation duration, 0 or <0 means no animation
@param name 名字如不指定可传nil
name, can pass nil if not specified
@param completeCallback 动画完成回调isFinished: 动画是否执行完成
animation completion callback, isFinished: whether the animation is completed
@param stepCallback 动画每一帧回调
Animation frame callback
*/
- (MAAnnotationMoveAnimation *)addMoveAnimationWithKeyCoordinates:(CLLocationCoordinate2D *)coordinates
count:(NSUInteger)count
withDuration:(CGFloat)duration
withName:(NSString *)name
completeCallback:(void(^)(BOOL isFinished))completeCallback
stepCallback:(void(^)(MAAnnotationMoveAnimation* currentAni))stepCallback;
/**
* @brief 获取所有未完成的移动动画, 返回数组内为MAAnnotationMoveAnimation对象. since 4.5.0
* Retrieve all unfinished move animations, returning an array of MAAnnotationMoveAnimation objects. since 4.5.0
* @return 返回所有移动动画,数组内元素类型为 MAAnnotationMoveAnimation
* Return all move animations, the elements in the array are of type MAAnnotationMoveAnimation
*/
- (NSArray<MAAnnotationMoveAnimation*> *)allMoveAnimations;
/**
* @brief 设置需要开始动画,自定义其他类型动画时需要调用. since 6.0.0
* Settings require starting animation, which needs to be called when customizing other types of animations. since 6.0.0
*/
- (void)setNeedsStart;
@end