iOS高德地图SDK(3D)  V7.5.0
MACustomBuildingOverlay.h
Go to the documentation of this file.
1 //
2 // MACustomBuildingOverlay.h
3 // MAMapKit
4 //
5 // Created by liubo on 2018/5/23.
6 // Copyright © 2018年 Amap. All rights reserved.
7 //
8 
9 #import "MAConfig.h"
10 #if MA_INCLUDE_OVERLAY_CUSTOMBUILDING
11 
12 #import "MAShape.h"
13 #import "MAOverlay.h"
14 #import "MAMultiPoint.h"
15 
16 #pragma mark - MACustomBuildingOverlayOption
17 
20 
22 @property (nonatomic, assign) CGFloat height;
23 
25 @property (nonatomic, assign) CGFloat heightScale;
26 
28 @property (nonatomic, strong) UIColor *topColor;
29 
31 @property (nonatomic, strong) UIColor *sideColor;
32 
34 @property (nonatomic, assign) BOOL visibile;
35 
42 + (instancetype)optionWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
43 
50 - (BOOL)setOptionWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
51 
52 @end
53 
54 
55 #pragma mark - MACustomBuildingOverlay
56 
58 @interface MACustomBuildingOverlay : MAShape<MAOverlay>
59 
61 @property (nonatomic, readonly) MACustomBuildingOverlayOption *defaultOption;
62 
64 @property (nonatomic, readonly) NSArray<MACustomBuildingOverlayOption *> *customOptions;
65 
70 - (void)addCustomOption:(MACustomBuildingOverlayOption *)option;
71 
76 - (void)removeCustomOption:(MACustomBuildingOverlayOption *)option;
77 
78 @end
79 
80 #endif
CGFloat heightScale
楼块的高度缩放比例. 修改该属性会使option范围内的所有楼块高度放大或者缩小heightScale倍. (默认1. 如果指定了height则此值将被忽略.)
Definition: MACustomBuildingOverlay.h:25
该类用于定义一个自定义楼块MACustomBuildingOverlay, 通常MACustomBuildingOverlay是MACustomBuildingOverl...
Definition: MACustomBuildingOverlay.h:58
该类是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类MAPolyline,MAPolygon来实例化 ...
Definition: MAMultiPoint.h:15
CGFloat height
楼块的高度. 修改该属性会使option范围内的所有楼块为同一个高度. (范围 (-1 U [1, 1000]). 默认-1,显示为默认高度.)
Definition: MACustomBuildingOverlay.h:22
该类用于定义一个楼块显示选项. since 6.3.0
Definition: MACustomBuildingOverlay.h:19
UIColor * sideColor
楼块的侧面颜色. (默认[UIColor darkGrayColor], 不支持透明度)
Definition: MACustomBuildingOverlay.h:31
BOOL visibile
option选项是否可见. (默认YES)
Definition: MACustomBuildingOverlay.h:34
UIColor * topColor
楼块的顶面颜色. (默认[UIColor lightGrayColor], 不支持透明度)
Definition: MACustomBuildingOverlay.h:28
该类为一个抽象类,定义了基于MAAnnotation的MAShape类的基本属性和行为,不能直接使用,必须子类化之后才能...
Definition: MAShape.h:14
© 2017 高德信息技术有限公司 版权所有,保留所有权利。