Edit this topic

File layer store

: shell

: layer-store

: file-layer-store

: /modules/core/widgets/services/file-layer-store.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/widgets/services/file-layer-store.js

Globals

FileLayerStore()

Gets the widget layers from the site's widget/index.json file.

setLayers(layers, next)

Adds layers to the current context's layers property.

FileLayerStore()

Gets the widget layers from the site's widget/index.json file.

fileLayerStore.loadLayers(next)

Loads layers from the site's widget/index.json.

Param Type Description
[context.layers] object Existing layers, to which the method will add.
next function The next function in the call chain, called when the layers have been read.

setLayers(layers, next)

Adds layers to the current context's layers property.

Param Type Description
[context.layers] object The existing set of layers.
layers object The new layers to add.
next function The next function in the call chain.