NASA-AMMOS/MMGIS

[Bug]: Deeplink to selected point or polygon fails

Closed this issue · 1 comments

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:

  • Polygon is not selected/highlighted

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

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.