File layer store
: shell
: file-layer-store
: 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
Functions
- 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.
Kind: instance method of FileLayerStore
| 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.
Kind: global function
| 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. |