Methods
addLayerToDomElement(view, layer, layersContainer, layerContainerClassNameopt)
Within a list of already existing layers, add a UI entry for a newly appended layer (together with a button for its removal).
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
view | itowns. | The view to which the layer will be added | |
layer | itowns. | layer to be added to dom element | |
layersContainer | HTMLDivElement | HTML division holding the listed layers | |
layerContainerClassName | string | <optional> | Class name of the layer container |