This commit is contained in:
DDIsFriend
2023-08-18 17:28:57 +08:00
commit f0e8a1709d
4282 changed files with 192396 additions and 0 deletions
@@ -0,0 +1,23 @@
//
// DDMAGeometry.h
// DDMAMapKit_Private
// Created by DDIsFriend on 2023/2/2.
#import <Foundation/Foundation.h>
#import <AMapNaviKit/MAGeometry.h>
NS_ASSUME_NONNULL_BEGIN
@interface DDMAGeometry : NSObject
// 获取一个合适的地图展示范围
+ (MAMapRect)getVisibleMapRectWithCoordinates:(CLLocationCoordinate2D *_Nullable)coords coordinateCount:(NSUInteger)coordinateCount;
// 获取一个合适的地图展示范围
+ (MAMapRect)getVisibleMapRectWithMapPoints:(MAMapPoint *_Nullable)mapPoints mapPointCount:(NSUInteger)mapPointCount;
// 获取一个合适的地图展示范围
+ (MAMapRect)getVisibleMapRectWithCLLocations:(NSArray<CLLocation *> *_Nullable)locations;
@end
NS_ASSUME_NONNULL_END