高德地图SDK(导航) V10.0.900
Loading...
Searching...
No Matches
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
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
该类是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类MAPolyline,MAPolygon来实例化
Definition MAMultiPoint.h:16
MAMapPoint * points
坐标点数组
Definition MAMultiPoint.h:18
此类用于定义一个由多个点组成的闭合多边形, 点与点之间按顺序尾部相连, 第一个点与最后一个点相连, 通常MAPolygon是MAPolygonView的model
Definition MAPolygon.h:14
NSArray< id< MAOverlay > > * hollowShapes
设置中空区域,用来创建中间带空洞的复杂图形。注意:传入的overlay只支持MAPolgon类型和MACircle类型,不支持与polygon边相交或在polygon外部,...
Definition MAPolygon.h:17
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition MAOverlay.h:14
平面投影坐标结构定义
Definition MAGeometry.h:38
© 2017 高德信息技术有限公司 版权所有,保留所有权利。