Skip to content

Conversation

@jmfee-usgs
Copy link

Palette can currently be specified for parameters using preferredPalette. This change let's the palette define its extent in case that differs from the coverage extent.

{
  colors: [
    'rgb(255, 255, 255)', // 0
    'rgb(255, 255, 255)', // 1
    'rgb(191, 204, 255)', // 2
    'rgb(160, 230, 255)', // 3
    'rgb(128, 255, 255)', // 4
    'rgb(122, 255, 147)', // 5
    'rgb(255, 255, 0)', // 6
    'rgb(255, 200, 0)', // 7
    'rgb(255, 145, 0)', // 8
    'rgb(255, 0, 0)', // 9
    'rgb(200, 0, 0)' // 10
  ],
  extent: [0, 10],
  interpolation: 'linear'
}

@jmfee-usgs
Copy link
Author

Related to #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant