高德地图SDK(导航)  V7.7.0
MACustomBuildingOverlayOption Class Reference

该类用于定义一个楼块显示选项. since 6.3.0 More...

#import <MACustomBuildingOverlay.h>

Inheritance diagram for MACustomBuildingOverlayOption:
MAMultiPoint MAShape <MAAnnotation>

Instance Methods

(BOOL) - setOptionWithCoordinates:count:
 重新设置option范围. More...
 
- Instance Methods inherited from MAMultiPoint
(void) - getCoordinates:range:
 将内部的坐标点数据转化为经纬度坐标并拷贝到coords内存中 More...
 
- Instance Methods inherited from <MAAnnotation>
(void) - setCoordinate:
 设置标注的坐标,在拖拽时会被调用. More...
 

Class Methods

(instancetype) + optionWithCoordinates:count:
 根据经纬度坐标数据生成楼块显示选项option More...
 

Properties

CGFloat height
 楼块的高度. 修改该属性会使option范围内的所有楼块为同一个高度. (范围 (-1 U [1, 1000]). 默认-1,显示为默认高度.) More...
 
CGFloat heightScale
 楼块的高度缩放比例. 修改该属性会使option范围内的所有楼块高度放大或者缩小heightScale倍. (默认1. 如果指定了height则此值将被忽略.) More...
 
UIColor * topColor
 楼块的顶面颜色. (默认[UIColor lightGrayColor], 不支持透明度) More...
 
UIColor * sideColor
 楼块的侧面颜色. (默认[UIColor darkGrayColor], 不支持透明度) More...
 
BOOL visibile
 option选项是否可见. (默认YES) More...
 
- Properties inherited from MAMultiPoint
MAMapPointpoints
 坐标点数组 More...
 
NSUInteger pointCount
 坐标点的个数 More...
 
BOOL cross180Longitude
 是否跨越180度经度线,默认NO since 6.4.0 More...
 
- Properties inherited from MAShape
NSString * title
 标题 More...
 
NSString * subtitle
 副标题 More...
 
- Properties inherited from <MAAnnotation>
CLLocationCoordinate2D coordinate
 标注view中心坐标 More...
 
NSString * title
 annotation标题 More...
 
NSString * subtitle
 annotation副标题 More...
 

Additional Inherited Members

- Protected Attributes inherited from MAMultiPoint
package MAMapPoint_points
 
NSUInteger _pointCount
 
MAMapRect _boundingRect
 
- Protected Attributes inherited from MAShape
NSString * _title
 标题 More...
 
NSString * _subtitle
 副标题 More...
 

Detailed Description

该类用于定义一个楼块显示选项. since 6.3.0

Method Documentation

◆ optionWithCoordinates:count:

+ (instancetype) optionWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSUInteger)  count 

根据经纬度坐标数据生成楼块显示选项option

Parameters
coords经纬度坐标点数据,coords对应的内存会拷贝,调用者负责该内存的释放
count经纬度坐标点数组个数
Returns
新生成的楼块显示选项option

◆ setOptionWithCoordinates:count:

- (BOOL) setOptionWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSUInteger)  count 

重新设置option范围.

Parameters
coords指定的经纬度坐标点数组, C数组,内部会做copy,调用者负责内存管理
count坐标点的个数
Returns
是否设置成功

Property Documentation

◆ height

- (CGFloat) height
readwritenonatomicassign

楼块的高度. 修改该属性会使option范围内的所有楼块为同一个高度. (范围 (-1 U [1, 1000]). 默认-1,显示为默认高度.)

◆ heightScale

- (CGFloat) heightScale
readwritenonatomicassign

楼块的高度缩放比例. 修改该属性会使option范围内的所有楼块高度放大或者缩小heightScale倍. (默认1. 如果指定了height则此值将被忽略.)

◆ sideColor

- (UIColor*) sideColor
readwritenonatomicstrong

楼块的侧面颜色. (默认[UIColor darkGrayColor], 不支持透明度)

◆ topColor

- (UIColor*) topColor
readwritenonatomicstrong

楼块的顶面颜色. (默认[UIColor lightGrayColor], 不支持透明度)

◆ visibile

- (BOOL) visibile
readwritenonatomicassign

option选项是否可见. (默认YES)


The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。