@JsType(isNative=true) public class Layers extends Control
Constructor and Description |
---|
Layers() |
Modifier and Type | Method and Description |
---|---|
L |
addBaseLayer(Layer layer,
String name)
Adds a base layer (radio button entry) with the given name to the control.
|
L |
addOverlay(Layer layer,
String name)
Adds an overlay (checkbox entry) with the given name to the control.
|
L |
collapse()
Collapse the control container if expanded.
|
L |
expand()
Expand the control container if collapsed.
|
L |
removeLayer(Layer layer)
Remove the given layer from the control.
|
addTo, getContainer, getPosition, onAdd, onRemove, remove, setPosition
@JsMethod public L addBaseLayer(Layer layer, String name)
layer
- the layername
- the name@JsMethod public L addOverlay(Layer layer, String name)
layer
- the layername
- the name@JsMethod public L removeLayer(Layer layer)
layer
- the layer@JsMethod public L expand()
@JsMethod public L collapse()
layer
- the layerCopyright © 2018 G-Widgets. All rights reserved.