/plugins/userLayer

The developer plugin provides and interface to test the jsoneditor control and allows to test adding layer from json.

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:
NameTypeDescription
pluginObject

The object holds the plugin configuration.

mapviewmapview

The mapview to which a user layer should be added.