Skip to content

Layer Definition JSON

chazgorman edited this page Jun 16, 2017 · 2 revisions

Below outlines the section of the layer definition JSON that is read by the script.

The layer definition JSON has three main sections:

  1. layers
  2. fields
  3. domains

Layers

The layers section contains the array of layers to be generated. Each layer is made up of the following properties:

  1. name
  2. alias
  3. enableLabel
  4. labelProperties
  5. fields
  6. symbology

Fields

The next main section is the fields section, which contains the definition for fields that should be added to all of the layers. These fields are combined with the fields that are defined on each layer to define the fields for each layer. This allows each layer to have specific fields relevant to only that layer, while defining fields relevant to all layers in a single place. The properties that make up a layer-specific field and an all-layer field are the same:

  1. name
  2. alias
  3. type
  4. nullable
  5. field_domain
  6. length (for TEXT fields)

Domains

The next main section is the domains section, which contains the definitions for the field domains that can be applied to the fields that make up the layers. The properties that make up a domain include:

  1. name
  2. description
  3. field_type
  4. domain_type
  5. values

Clone this wiki locally