@Keep |
| Package: | dji.open.pilot.base.manager.map |
Map widget layer.
A layer is a logical grouping container for map widgets, used to organize MapWidgets by business semantics (such as “fire point layer”, “personnel layer”). It supports showing/hiding and clearing an entire layer. A layer can contain MapWidgets of any DrawerType. Supported since MSDK 5.20.1
MapWidgetLayer(String name) |
| Package: | dji.open.pilot.base.manager.map |
Constructs a layer, automatically generating an id and filling in the source package name. Supported since MSDK 5.20.1
| String name | Layer name, such as "fire point layer", "personnel layer". |
String getId() |
| Package: | dji.open.pilot.base.manager.map |
Gets the layer ID, which is a unique identifier. Supported since MSDK 5.20.1
| String | Layer ID. |
String getSource() |
| Package: | dji.open.pilot.base.manager.map |
Gets the source of the layer (the package name of the creator). Supported since MSDK 5.20.1
| String | Source package name of the layer. |
String getName() |
| Package: | dji.open.pilot.base.manager.map |
Gets the layer name. Supported since MSDK 5.20.1
| String | Layer name. |
void setName(String name) |
| Package: | dji.open.pilot.base.manager.map |
Sets the layer name. Supported since MSDK 5.20.1
| String name | Layer name. |
boolean isVisible() |
| Package: | dji.open.pilot.base.manager.map |
Gets the layer visibility. Supported since MSDK 5.20.1
| boolean | true visible, false hidden. |
void setVisible(boolean visible) |
| Package: | dji.open.pilot.base.manager.map |
Sets the layer visibility. Supported since MSDK 5.20.1
| boolean visible | true visible, false hidden. |
int getZIndex() |
| Package: | dji.open.pilot.base.manager.map |
Gets the layer stacking priority. Supported since MSDK 5.20.1
| int | Stacking priority, ranging from 0 to 100. |
void setZIndex(int zIndex) |
| Package: | dji.open.pilot.base.manager.map |
Sets the layer stacking priority.
The value ranges from 0 to 100. The larger the value, the higher the priority and the more on top the layer is. Among layers with the same priority, the later added one covers the earlier added one. An IllegalArgumentException is thrown when the value is out of range. Supported since MSDK 5.20.1
| int zIndex | Stacking priority, ranging from 0 to 100. |
{{searchCount}} Results