BaiduMap_IOSSDK_v7.2.0_Docs 7.2.0

BMKPolygon.h
浏览该文件的文档.
1 /*
2 * BMKPolygon.h
3 * BMapKit
4 *
5 * Copyright 2011 Baidu Inc. All rights reserved.
6 *
7 */
8
9 #import "BMKMultiPoint.h"
10 #import "BMKOverlay.h"
11 #import "BMKLineDrawType.h"
12
13 NS_ASSUME_NONNULL_BEGIN
15 @interface BMKPolygon : BMKMultiPoint <BMKOverlay>
18 @property (nonatomic, copy, nullable) NSArray<id <BMKOverlay>> *hollowShapes;
19
22 @property (nonatomic, assign) BMKCoordAlgorithm thin;
24 @property (nonatomic, assign) float thinFactor;
25
30 + (nullable instancetype)polygonWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
31
36 + (nullable instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
37
42 - (BOOL)setPolygonWithPoints:(BMKMapPoint *)points count:(NSUInteger) count;
43
48 - (BOOL)setPolygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger) count;
49
50 @end
51
52 #pragma mark - 加密点
53
55 @interface BMKPolygon (EncodedAPI)
56
58 @property (nonatomic, copy) NSString *encodedGeoPoints;
59
62 @property (nonatomic, assign) BMKEncodePointType encodePointType;
63
64 @end
65
66 NS_ASSUME_NONNULL_END
BMKPolygon(EncodedAPI)::encodedGeoPoints
NSString * encodedGeoPoints
加密后的点信息
Definition: BMKPolygon.h:58
BMKMapPoint
地理坐标点，用直角地理坐标表示
Definition: BMKTypes.h:249
BMKPolygon::hollowShapes
NSArray< id< BMKOverlay > > * hollowShapes
Definition: BMKPolygon.h:18
BMKPolygon(EncodedAPI)
since 6.5.2
Definition: BMKPolygon.h:55
BMKLineDrawType.h
BMKOverlay.h
BMKPolygon::thin
BMKCoordAlgorithm thin
Definition: BMKPolygon.h:22
BMKPolygon
此类用于定义一个多边形区域
Definition: BMKPolygon.h:15
BMKPolygon(EncodedAPI)::encodePointType
BMKEncodePointType encodePointType
Definition: BMKPolygon.h:62
BMKOverlay-p
该类是地图覆盖物的基类，所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
BMKPolygon::thinFactor
float thinFactor
抽稀算法系数，默认4，since 6.6.4
Definition: BMKPolygon.h:24
BMKCoordAlgorithm
BMKCoordAlgorithm
Definition: BMKLineDrawType.h:69
BMKMultiPoint.h
BMKMultiPoint
该类定义多个点，是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition: BMKMultiPoint.h:18