nasa-gibs / worldview

Interactive interface for browsing global, full-resolution satellite imagery
https://worldview.earthdata.nasa.gov/
Other
702 stars 187 forks source link

Layer color legend can disappear when zooming out #2664

Closed jasontk19 closed 4 years ago

jasontk19 commented 4 years ago

Describe the bug If a layer is loaded while in an "overzoomed" state (which would cause the zot to show) zooming out to the point that the layer is no longer overzoomed causes the color legend to disappear when the zot is removed.

To Reproduce Steps to reproduce the behavior:

  1. Go to ?v=5.01815972899115,18.179856676715676,6.67160211180365,19.649827379840676&t=2015-09-29-T00%3A00%3A00Z&l=MODIS_Terra_Aerosol,MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,Reference_Labels(hidden),Reference_Features(hidden),Coastlines
  2. Zoom out until "Aerosol Optical Depth" layer is no longer overzoomed and zot disappears
  3. Observe that color palette for this layer is no longer visible.

Expected behavior The color legend should not disappear.

Screenshots Screen Shot 2020-02-18 at 9 12 38 AM

Desktop (please complete the following information):

jasontk19 commented 4 years ago

Looks like in some cases it doesn't show on load either: ?v=152.6930035039686,-32.06695675652207,159.3067730352186,-26.187073944022067&t=2020-01-05-T17%3A22%3A29Z&l=MODIS_Terra_Aerosol,OMPS_Aerosol_Index_PyroCumuloNimbus(opacity=0.6,min=1.5,max=18.25,squash=true),Reference_Labels(hidden),Reference_Features(hidden),Coastlines,VIIRS_SNPP_CorrectedReflectance_TrueColor,MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor(hidden)