public interface Layer
Layer is an abstraction that describes a data that will be displayed on a map. Layers are structural units of maps. Map is built by superposing multiple layers.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId() |
int |
getMaxZoom()
Returns maximum layer zoom level.
|
int |
getMinZoom()
Returns minimum layer zoom level.
|
boolean |
isEditable()
Whether the layer is to be editable on a map.
|
boolean |
isVisible()
Whether the layer is to be visible on a map.
|
void |
refresh()
Notify clients that the layer has changed and need to be redrawn.
|
void |
setEditable(boolean editable)
Sets whether the layer is to be editable on a map.
|
void |
setMaxZoom(int maxZoom)
Sets maximum zoom level up to which the layer is visible (inclusive).
|
void |
setMinZoom(int minZoom)
Sets minimum zoom level down to which the layer is visible (inclusive).
|
void |
setVisible(boolean visible)
Sets whether the layer should be visible on a map.
|
@StudioProperty(type=COMPONENT_ID, required=true) java.lang.String getId()
@StudioProperty(defaultValue="true") void setVisible(boolean visible)
Default value: true
.
visible
- true/falseboolean isVisible()
true
if the layer is set to be visible;
otherwise false
@StudioProperty void setMaxZoom(int maxZoom)
maxZoom
- maximum layer zoom levelint getMaxZoom()
@StudioProperty void setMinZoom(int minZoom)
Default value: 0.
minZoom
- minimum layer zoom levelint getMinZoom()
@StudioProperty void setEditable(boolean editable)
Default value: false
.
editable
- true/falseboolean isEditable()
true
if the layer is set to be editable;
otherwise false
void refresh()