usgs / landslides-post-wildfire-debris-flow

A web application that displays estimates for the probability and volume of debris flows that may be produced by a storm in a recently burned area
Other
7 stars 6 forks source link

The list and map are empty when no events are loaded #29

Closed ehunter-usgs closed 7 years ago

ehunter-usgs commented 7 years ago

When the web service returns no features (but does NOT fail), then the map and list are empty. I would display an error saying "no data available".

Update SummaryView.createSummaryList:

  if (keys.length === 0) {
    _this.el.querySelector('.summary-list').innerHTML =
    '<p class="alert error">No data to display at this time.</p>';
    return;
  }

screen shot 2016-11-03 at 10 55 53 am