Skip to content

Timeline crash if time layer has few data  #9075

Closed

Description

Description

If a layer do not have any data, the timline shows
"nan-nan-nan" in date fields.
If you try to expand the timeline, it crashes

How to reproduce

(the original test was a little different. I had a context configured for the timeline with a custom resource access manager that filters the data. For users with no data access, the app crashes when timeline is expanded. Anyway I think it could happen in similar conditions like the ones following. To check).

  • Create a time layer on geoserver with 0, 1, or 2 features (GeoServer needs WMTS mutlidim extension to work with timeline)
  • Add the layer to the map
  • Expand the timeline

Expected Result

  • No data shown

Current Result

  • NaN values in current date fields

  • The application crashes

  • Not browser related

Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

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

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions