Map Doc
1.0
iOS-引擎SDK-开放平台
|
#import <MBPolylineOverlay.h>
构造函数 | |
(instancetype) | - initWithPoints:count:isClosed: |
(instancetype) | - initWithPointsNds:count:isClosed: |
(instancetype) | - initWithCoordinates:count:closed: |
(void) | - setStrokeStyle: |
(MBStrokeStyle) | - getStrokeStyle |
(void) | - setOutlineColor: |
(void) | - setOutlineUIColor: |
(void) | - setWidth: |
(CGFloat) | - getWidth |
(UIColor *) | - getOutlineUIColor |
![]() | |
(void) | - setNeedsDisplay |
(void) | - setColor: |
(uint) | - getColor |
(void) | - setUIColor: |
(UIColor *) | - getUIColor |
(const MBRect) | - boundingBox |
(void) | - setSelected:pos: |
额外继承的成员函数 | |
![]() | |
package void * | _native |
package BOOL | _attatched |
![]() | |
MBOverlayLayer | overlayerLayer |
int | zLevel |
BOOL | hidden |
BOOL | clickEnable |
int | tag |
MBPoint | postion |
MBNdsPoint | ndsPosition |
绘制多边形polygon和线条line的Overlay
- (UIColor *) getOutlineUIColor |
得到边缘线的颜色值,用UIColor实例表示,[废弃]
- (MBStrokeStyle) getStrokeStyle |
得到线条类型
- (CGFloat) getWidth |
得到多边形或者线段的宽度值
- (instancetype) initWithCoordinates: | (CLLocationCoordinate2D *) | coords | |
count: | (NSInteger) | count | |
closed: | (BOOL) | closed | |
- (instancetype) initWithPoints: | (const MBPoint *) | points | |
count: | (NSInteger) | count | |
isClosed: | (BOOL) | isClosed | |
根据点数组创建一个多边形图层
points | 点的数组,用来表示线段 |
count | 点的数组数量 |
isClosed | 是否是闭合区域,如果是,那么最后一个点将自动和第一个点连接 |
- (instancetype) initWithPointsNds: | (const MBNdsPoint *) | points | |
count: | (NSInteger) | count | |
isClosed: | (BOOL) | isClosed | |
- (void) setOutlineColor: | (uint) | color |
设置线条外边缘颜色
color | 颜色格式(A,B,G,R),例如0xff 00 00 ff表示完全不透明的红色 |
- (void) setOutlineUIColor: | (UIColor *) | color |
设置线条外边缘颜色[废弃]
color | 颜色格式(A,B,G,R),例如0xff 00 00 ff表示完全不透明的红色 |
- (void) setStrokeStyle: | (MBStrokeStyle) | style |
设置线条类型
style | 线条类型 |
- (void) setWidth: | (CGFloat) | width |
设置多边形或线段的宽度值
width | 多边形或线段的宽度值 |