Constructor
new Location(options)
- Description:
构造方法。
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Properties
|
Members
(readonly) type :LM.Type
- Description:
元素类型。
元素类型。
Type:
(readonly) visible
- Description:
可见性。
可见性。
Methods
addTo(map)
- Description:
添加。
Parameters:
| Name | Type | Description |
|---|---|---|
map |
LM.Map | 地图。 |
moveTo(options)
- Description:
移动。
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Properties
|
remove()
- Description:
移除。
rotateTo(options)
- Description:
旋转。
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Properties
|
setStyle(style)
- Description:
设置样式。
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
style |
object | 样式。 Properties
|
setVisible(visible)
- Description:
设置可见性。
Parameters:
| Name | Type | Description |
|---|---|---|
visible |
boolean | true-显示 false-隐藏。 |