Files
OrderScheduling/Pods/DDMAMapKit_Private/DDMAMapKit_Private/Classes/DDMAUtil/DDMAGeometry.h
T
2023-08-18 17:28:57 +08:00

24 lines
724 B
Objective-C

//
// 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