NASA-AMMOS / MMGIS

Multi-Mission Geographical Information System - Web-based Mapping and Spatial Data Infrastructure for Planetary Science Operations - https://nasa-ammos.github.io/MMGIS/
Apache License 2.0
148 stars 46 forks source link

[Bug]: Deeplink to selected point or polygon fails #568

Closed tariqksoliman closed 5 months ago

tariqksoliman commented 5 months ago

Checked for duplicates

Yes - I've already checked

Describe the bug

When selecting a point, creating a deep link and returning to it:

TypeError: Cannot read properties of undefined (reading 'lat')
    at Object.selectPoint (Layers_.js:2014:1)
    at Object.fullyLoaded (Layers_.js:153:1)

When selecting a polygon, creating a deep link and returning to it:

Note: FWIW, This was on a time enabled layer.

What did you expect?

Deeplinks should always keep selected feature reselected.

Reproducible steps

No response

Environment

No response

tariqksoliman commented 5 months ago

First issue was that if a point was deeplinked to, the assumption was made that the layer contained only point features and thus failed when it encountered a non-point.