iOS高德地图SDK(3D)  V7.5.0
MAPolygon.h
Go to the documentation of this file.
1 //
2 // MAPolygon.h
3 // MAMapKit
4 //
5 // Copyright (c) 2011年 Amap. All rights reserved.
6 //
7 
8 #import "MAConfig.h"
9 #import <Foundation/Foundation.h>
10 #import "MAMultiPoint.h"
11 #import "MAOverlay.h"
12 
14 @interface MAPolygon : MAMultiPoint <MAOverlay>
15 
17 @property (nonatomic, strong) NSArray<id<MAOverlay>> *hollowShapes;
18 
25 + (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
26 
33 + (instancetype)polygonWithPoints:(MAMapPoint *)points count:(NSUInteger)count;
34 
41 - (BOOL)setPolygonWithPoints:(MAMapPoint *)points count:(NSInteger)count;
42 
49 - (BOOL)setPolygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger)count;
50 
51 @end
平面投影坐标结构定义
Definition: MAGeometry.h:38
该类是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类MAPolyline,MAPolygon来实例化 ...
Definition: MAMultiPoint.h:15
NSArray< id< MAOverlay > > * hollowShapes
设置中空区域,用来创建中间带空洞的复杂图形。注意:传入的overlay只支持MAPolgon类型和MACircle类型,不支持与polygon边相交或在polygon外部,不支持hollowShapes彼此间相交,和空洞顺序有关,不支持嵌套. since 5.5.0
Definition: MAPolygon.h:17
此类用于定义一个由多个点组成的闭合多边形, 点与点之间按顺序尾部相连, 第一个点与最后一个点相连, 通常MAPolygon是MAPolygonView的model
Definition: MAPolygon.h:14
MAMapPoint * points
坐标点数组
Definition: MAMultiPoint.h:23
© 2017 高德信息技术有限公司 版权所有,保留所有权利。