TerriaJS / neii-viewer

Data viewer for National Environmental Information Infrastructure
http://neii.gov.au/viewer/
Apache License 2.0
8 stars 4 forks source link

Change COLORSCALERANGE to colorScaleMinimum & colorScaleMaximum #138

Open na9da opened 4 years ago

na9da commented 4 years ago

In the oceans catalog color scale range is specified directly as a COLORSCALERANGE WMS param.

This works but the color scale range UI (on the workbench) doesn't pick up this setting and defaults to -50 to 50 as seen here.

image

To make it work correctly we need to set the colorScaleMaximum and colorScaleMinimum values instead. eg of correct usage: https://github.com/TerriaJS/aremi-natmap/blob/master/datasources/aremi/custodian/Bureau_of_Meteorology/Solar_Climatology.ejs#L11-L13