toc

Creates table of contents

Classes

Toc

Methods

(static) addActiveLayers(layer, map, store)

Add active layers to map and to menu

Parameters:
Name Type Description
layer object

Layer properties

map object

OpenLayers map

store object

NSPIT store

(static) addAlphabetical()

Add alphabetical container to TOC

(static) addAlphabeticalOverlays(newLayer, store)

Add alphabetical overlays

Parameters:
Name Type Description
newLayer object

Layer to add

store object

NSPIT store

(static) addCategories(categories)

Add categories container to TOC

Parameters:
Name Type Description
categories array

Category properties

(static) addCategoriesOverlays(layer, store)

Add layers to categories container

Parameters:
Name Type Description
layer object

Layer properties

store object

NSPIT store

(static) addFilter(map, store)

Add filter container to TOC

Parameters:
Name Type Description
map object

OpenLayers map

store object

NSPIT store

(static) addFilterOverlays(layer)

Add filter overlays

Parameters:
Name Type Description
layer object

Layer properties

(static) removeLayerFromActiveLayersMenu(uuid)

Remove layer from active layers menu

Parameters:
Name Type Description
uuid number

Layer UUID

(static) removeLayerFromStore(map, layerConfiguration, uuid, store)

Remove layer from layer order store

Parameters:
Name Type Description
map object

OpenLayers map

layerConfiguration object

Layer configuration

uuid string

Layer UUID

store object

NSPIT store