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
145 stars 45 forks source link

[Bug]: Layer loading UI issues #498

Closed tamarmot closed 7 months ago

tamarmot commented 9 months ago

Checked for duplicates

Yes - I've already checked

Describe the bug

When I use the layer tree to turn a vector layer on by clicking on the outlined square to the left of the layer name, if the vector then has a twirly loading icon, there are issues:

  1. sometimes the twirly loading icon never stops twirling
  2. If I click on the twirly loading icon to turn the layer off, the state gets messed up, such that outlined square means layer is on, and solid white square means layer is off.

What did you expect?

I expected the twirly icon to stop twirling and become white when the layer finished loading. I expected the state of the layer on/off to always match the state of the icon white/outlined.

Reproducible steps

1. Turn on a vector layer that is large enough to cause the twirly icon to show
2. Click on the twirly icon while it is twirly
3. Observe the layer state and the icon state

Environment

- Version of this software [development_20240131]
- Operating System: [MacOSX 13.6.4 with Docker version 20.10.17, build 100c701]