NCEAS / metacatui

MetacatUI: A client-side web interface for DataONE data repositories
https://nceas.github.io/metacatui
Apache License 2.0
42 stars 24 forks source link

Dataset count tiles layer disappears when layer categories are configured #2411

Open iannesbitt opened 1 month ago

iannesbitt commented 1 month ago

Describe the bug Dataset count tiles appear in portals that have not configured layer categories (drp.dataone.org/data but not smithsonian.dataone.org/data). It appears that when layer categories are configured, the search map will not show the count tiles.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'smithsonian.dataone.org search page'
  2. Move map so that none of Panama is in map view
  3. See Barro Colorado Island dataset disappear, indicating that location search still works
  4. No tiles are visible anywhere on the globe, tiles layer does not appear in layer panel

Expected behavior Dataset count tiles should still appear in search map.

Screenshots image

All platforms, browsers, and devices

robyngit commented 1 month ago

Thanks for the detailed report @iannesbitt! This does appear to be related to the new layer categories option. In the meantime, a workaround for this issue would be to configure the geohash layer (dataset counts) explicitly within the desired category.

A question to address when tackling this is: Within which category should the dataset counts appear by default? I suppose it would go in a new category of its own?

iannesbitt commented 1 month ago

Good question...I think it would go in Base Layers but I'm open to other suggestions.

robyngit commented 1 week ago

High priority for hosted repos in general