Skip to content

legendControls

andy.rothwell edited this page Aug 25, 2018 · 7 revisions

legendControls Configuration

Used to set up legends for topics which include layers.

legendControls: {
  water: {
    options: {
      topics: ['water'],
      showWithBaseMapOnly: false
    },
    // TODO give these an id instead of using the label as a key
    data: {
      'Roof': {
        'background-color': '#FEFF7F',
      },
      'Other Impervious Surface': {
        'background-color': '#F2DCFF',
      }
    }
  },
},
Clone this wiki locally