Constructor
new Map(options, success, failed)
- Description:
构造方法。
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success |
function | 初始化成功回调方法。 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
failed |
function | 初始化失败回调方法,返回错误信息。 |
Members
(readonly) center :object
- Description:
地图焦点。
Properties:
| Name | Type | Description |
|---|---|---|
level |
number | |
x |
number | X坐标。 |
y |
number | Y坐标。 |
z |
number | Z坐标。 |
地图焦点。
Type:
- object
(readonly) centroid :object
- Description:
地图数据中心点。
Properties:
| Name | Type | Description |
|---|---|---|
x |
number | X坐标。 |
y |
number | Y坐标。 |
z |
number | Z坐标。 |
地图数据中心点。
Type:
- object
(readonly) code :string
- Description:
唯一编码。
唯一编码。
Type:
- string
Methods
getFloor(楼层级别或者楼层唯一编码。) → {LM.Floor}
- Description:
查询楼层.
Parameters:
| Name | Type | Description |
|---|---|---|
楼层级别或者楼层唯一编码。 |
number | string |
Returns:
楼层。
- Type
- LM.Floor
getFloors() → {array.<LM.Floor>}
- Description:
获取地图的全部楼层.
Returns:
楼层数组.
- Type
- array.<LM.Floor>
getLayers(type) → {array.<LM.Layer>}
- Description:
获取图层。
Parameters:
| Name | Type | Description |
|---|---|---|
type |
LM.Type | 元素类型。 |
Returns:
图层数组。
- Type
- array.<LM.Layer>
matchFeatures(results)
- Description:
按照查询结果匹配元素,填充查询结果中的features内容。LM.Search.SearchResult
Parameters:
| Name | Type | Description |
|---|---|---|
results |
array.<LM.Search.SearchResult> | 查询结果数组。 |
setSpace(space)
- Description:
设置可见楼层。
Parameters:
| Name | Type | Description |
|---|---|---|
space |
number | 楼层间距。 |