BaiduMap_IOSSDK_v6.5.0_Docs  v6.5.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 
12 NS_ASSUME_NONNULL_BEGIN
15 
17 @property (nonatomic, copy, nullable) NSArray<id <BMKOverlay>> *hollowShapes;
18 
23 + (nullable instancetype)polygonWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
24 
29 + (nullable instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
30 
35 - (BOOL)setPolygonWithPoints:(BMKMapPoint *)points count:(NSUInteger) count;
36 
41 - (BOOL)setPolygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger) count;
42 
43 @end
44 NS_ASSUME_NONNULL_END
BMKMapPoint
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:192
BMKMultiPoint::points
BMKMapPoint * points
坐标点数组
Definition: BMKMultiPoint.h:27
BMKPolygon::hollowShapes
NSArray< id< BMKOverlay > > * hollowShapes
设置中空区域,用来创建中间带空洞的复杂图形。注意:传入的overlay只支持BMKPolgon类型和BMKCircle类型. since 5.0.0
Definition: BMKPolygon.h:17
BMKOverlay.h
BMKPolygon
此类用于定义一个多边形区域
Definition: BMKPolygon.h:14
BMKOverlay-p
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
BMKMultiPoint.h
BMKMultiPoint
该类定义多个点,是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化
Definition: BMKMultiPoint.h:18