Class: LayerTree

netgis.LayerTree(config)

new LayerTree(config)

Layer Tree Module.
Parameters:
Name Type Description
config JSON LayerTree.Config
LayerTree.Folders
Map.Layers

Members

(static) Config

Config Section "layertree"
Properties:
Name Type Description
open Boolean Open panel at startup
title String Panel title
buttons Array Additional buttons below the tree. See Commands for special ID values.
  • Button Items:
    { "id": {String}, "title": {String} }

(static) Folders :Array

Config Section "folders"
  • Layer Tree Folder Items:
    { "id": {String}, "title": {String}, "parent": {String}, "radio": {Boolean} }
Type:
  • Array