USGS-WiM / fim-js

Flood inundation map libraries with real-time USGS river-level data.
Other
1 stars 2 forks source link

hydrograph background image remains even after closing flood tools window #424

Closed mhkim01 closed 5 years ago

mhkim01 commented 5 years ago

as far as I can tell, this only happens at the following site only... https://test.wim.usgs.gov/fim/?site_no=01463500

image

HansVraga commented 5 years ago

This happens to me too.

mitchas commented 5 years ago

@njestes I thought this would be a highcharts or CSS issue, but it's giving the error Cannot read property 'setVisibility' of undefined for line ~528 (map.getLayer("fimGrid"+siteAttr.GRID_SERV).setVisibility(false);)

njestes commented 5 years ago

@mitchas what happens if you add a check for the layer? something like

if (map.getLayer("fimGrid"+siteAttr.GRID_SERV) !== undefined) {

mitchas commented 5 years ago

Fixed 👍

njestes commented 5 years ago

sweet