new GraphicsOverlays()
- Source:
Methods
(async, static) add(graphicsOverlay) → {Promise.<void>}
添加图形覆盖物
Parameters:
| Name | Type | Description |
|---|---|---|
graphicsOverlay |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) createObj() → {Promise.<GraphicsOverlays>}
构造一个新的 GraphicsOverlays 对象。
- Source:
Returns:
- Type
- Promise.<GraphicsOverlays>
(async, static) getAllGraphicsOverlays() → {Promise.<*>}
返回所有图形
- Source:
Returns:
- Type
- Promise.<*>
(async, static) getCount() → {Promise.<*>}
获取图形覆盖物的数目
- Source:
Returns:
- Type
- Promise.<*>
(async, static) getGraphicsOverlay() → {Promise.<*>}
获取图形覆盖物
- Source:
Returns:
- Type
- Promise.<*>
(async, static) indexOf(graphicsOverlay) → {Promise.<(*|NavigationPreloadState)>}
获取图形覆盖物的索引
Parameters:
| Name | Type | Description |
|---|---|---|
graphicsOverlay |
- Source:
Returns:
- Type
- Promise.<(*|NavigationPreloadState)>
(async, static) indexOfByName(graphicLayerName) → {Promise.<(*|NavigationPreloadState)>}
获取图形覆盖物的索引
Parameters:
| Name | Type | Description |
|---|---|---|
graphicLayerName |
String |
- Source:
Returns:
- Type
- Promise.<(*|NavigationPreloadState)>
(async, static) insert(graphicsOverlay) → {Promise.<(*|NavigationPreloadState)>}
插入图形覆盖物
Parameters:
| Name | Type | Description |
|---|---|---|
graphicsOverlay |
图形覆盖物 |
- Source:
Returns:
- Type
- Promise.<(*|NavigationPreloadState)>
(async, static) move(fromIndex, toIndex) → {Promise.<*>}
移动图形覆盖物
Parameters:
| Name | Type | Description |
|---|---|---|
fromIndex |
||
toIndex |
- Source:
Returns:
- Type
- Promise.<*>
(async, static) remove(graphicsOverlay) → {Promise.<void>}
移除图形覆盖物
Parameters:
| Name | Type | Description |
|---|---|---|
graphicsOverlay |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) removeAll(index) → {Promise.<void>}
移除所有图形覆盖物
Parameters:
| Name | Type | Description |
|---|---|---|
index |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) removeByIndex(index) → {Promise.<void>}
移除图形覆盖物
Parameters:
| Name | Type | Description |
|---|---|---|
index |
- Source:
Returns:
- Type
- Promise.<void>