You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.2 KiB
Objective-C

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

//
// BMFTileModel.h
// flutter_bmfmap
//
// Created by zhangbaojin on 2020/3/20.
//
#import "BMFModel.h"
@class BMFTileModelOptions;
@class BMFTileProvider;
@class BMFCoordinateBounds;
typedef NS_ENUM(NSUInteger, BMFTileLoadType){
kBMFTileLoadUrl = 0, ///< 网络加载
kBMFTileLoadLocalAsync, ///< 本地异步加载
kBMFTileLoadLocalSync, ///<本地同步加载
};
NS_ASSUME_NONNULL_BEGIN
@interface BMFTileModel : BMFModel
/// 唯一id
@property (nonatomic, copy) NSString *Id;
/// tileLayer的可见最小Zoom值默认3
@property (nonatomic, assign) NSInteger minZoom;
/// tileLayer的可见最大Zoom值默认21且不能小于minZoom
@property (nonatomic, assign) NSInteger maxZoom;
/// tileOverlay的可渲染区域默认世界范围
@property (nonatomic, strong) BMFCoordinateBounds *visibleMapBounds;
/// 瓦片图缓存大小,android端需要ios端暂时不需要
@property (nonatomic, assign) int maxTileTmp;
/// 参数集合
@property (nonatomic, strong) BMFTileModelOptions *tileOptions;
@end
@interface BMFTileModelOptions : BMFModel
/// 瓦片图加载方式
@property (nonatomic, assign) BMFTileLoadType tileLoadType;
/// url
@property (nonatomic, copy) NSString *url;
@end
NS_ASSUME_NONNULL_END