Skip to content

legendControls

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

legendControls Configuration

Used to set up LegendControls for topics which include overlay layers.

Options

options definition
topics
showWithBaseMapOnly

Example:

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