/plugins/userLayer
The developer plugin provides and interface to test the jsoneditor control and allows to test adding layer from json.
- Source
Requires
Methods
(async, inner) userLayer(plugin, mapview)
The userLayer plugin method adds a button to the layer control to open a jsoneditor dialog.
The jsoneditor dialog allows to validate a layer json configuration to add as user layer to the mapview.
Parameters:
Name | Type | Description |
---|---|---|
plugin | Object | The object holds the plugin configuration. |
mapview | mapview | The mapview to which a user layer should be added. |
- Source