Angular directive

layerlistDirective source template

Description

Directive for displaying list of layers in default HSLayers manager template. Every directive instance contain one folder of folder stucture. For every layer displays current information notes and on click opens layer options panel. Every directive instance is automatically refresh when layermanager.updated fires. Directive has access to contollers data object.

Methods

dragged

Callback for dragged event so event can be injected with correct layer titles list needed for correct recalculation.

filtered_layers

Generate list of layer titles out of hs.layermanager.layerlistDirective#filtered_layers filtered_layers. Complex layer objects cant be used because DragDropList functionality can handle only simple structures.

filterLayers

Filters layers, and return only belonging to folder hiearchy level of directive

sortLayersByPosition

Sort layers by computed position