Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CatalogSearchView with configurable filters & Cesium map #2127

Merged
merged 83 commits into from
Jun 27, 2023

Conversation

robyngit
Copy link
Member

This pull request introduces the new CatalogSearchView, set to replace both the DataCatalogView and DataCatalogViewWithFilters (although these will remain functional but deprecated). The updated catalog view takes advantage of the Filters infrastructure, initially designed for portals, to enable straightforward configuration of repository search filters. Additionally, it transitions from Google Maps to the more versatile Cesium map, which offers a 3D globe representation of the world instead of a 2D projection.

While a few tasks remain, this feature is nearing completion. As such, I am opening this draft pull request to start gathering feedback.

Here's a current snapshot of the CatalogSearchView within the ADC:

Screenshot 2023-04-20 at 15 02 10

When it's configured to use it instead of the older version

Fixes #2064
- Replace similar calculations with the view's getDegreesFromCartesian function
- Make the getDegreesFromCartesian less repetitive by iterating through the position keys
- Also standardize formatting in the view

Relates to #1720
- Make CesiumGeohash an extension of CesiumVectorData instead of MapAsset
- Add Geohash specific properties to the CesiumGeohash model (e.g. precisionAltMap, bounds, level, geohashes, etc.)
- Add a ToJSON function to the CesiumGeohash model that converts geohash & search result information to a JSON object
- Create listeners for updating Geohashes when the bounds & altitude change
- Add ability to update the data source in the CesiumVectorData model
- Always set ClampToGround to true for geohashes

Relates to #1720, #2063, #2070, #2076
Cesium throws an error when the latitude is -90

Relates to #1720
- add height to the map model's currentViewExtent property on camera change (use height to get geohash precision)
- tweak altitude-geohash precision map
- fix issue where no geohashes were rendered when the view extent crossed the prime meridian

Relates to #1720, #2076
To improve performance when map is focused on poles or zoomed in and at ground level perspective

Relates to #1720
When it's configured to use it instead of the older version

Fixes #2064
- Replace similar calculations with the view's getDegreesFromCartesian function
- Make the getDegreesFromCartesian less repetitive by iterating through the position keys
- Also standardize formatting in the view

Relates to #1720
- Make CesiumGeohash an extension of CesiumVectorData instead of MapAsset
- Add Geohash specific properties to the CesiumGeohash model (e.g. precisionAltMap, bounds, level, geohashes, etc.)
- Add a ToJSON function to the CesiumGeohash model that converts geohash & search result information to a JSON object
- Create listeners for updating Geohashes when the bounds & altitude change
- Add ability to update the data source in the CesiumVectorData model
- Always set ClampToGround to true for geohashes

Relates to #1720, #2063, #2070, #2076
Cesium throws an error when the latitude is -90

Relates to #1720
- add height to the map model's currentViewExtent property on camera change (use height to get geohash precision)
- tweak altitude-geohash precision map
- fix issue where no geohashes were rendered when the view extent crossed the prime meridian

Relates to #1720, #2076
To improve performance when map is focused on poles or zoomed in and at ground level perspective

Relates to #1720
Also externalize the main template

Relates to #1520
Add some error handling as well

Relates to #1520, #2106
@robyngit
Copy link
Member Author

robyngit commented May 5, 2023

@rushirajnenuji this is ready to test when you're ready! I'm doing some testing on my own and also working on writing unit tests and a guide (in docs), but that's no reason to wait on a review.

@robyngit robyngit marked this pull request as ready for review May 5, 2023 22:38
@robyngit
Copy link
Member Author

robyngit commented May 5, 2023

The latest version, as of the time of writing, is deployed at https://test.arcticdata.io/

@robyngit robyngit modified the milestones: 2.24.0, 2.25.0 May 15, 2023
@robyngit robyngit added ADC CI-14 Data search and display improvements (ADC deliverable) arctic data center labels May 17, 2023
Plus minor modifications/fixes to Geohashes

Issue #1720
Fix the remove spatial filters method

Issue #1720
- Add types to models
- Minor fixes found during testing

Issue #1720
- Add guide for customizing the CatalogSearchView
- Add guide for configuring Cesium in portals
- Update the general Cesium guide
- Other minor doc updates
- Minor CSS tweak

Issue #1720
@robyngit robyngit assigned rushirajnenuji and unassigned robyngit May 25, 2023
Copy link
Member

@rushirajnenuji rushirajnenuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this PR on my local development instance and the changes look good. I did run into some performance issues (loading latency) but it looks like we already have a ticket for that (#2145).

Thank you for working on this feature, this will be a great addition to MetacatUI.

@robyngit robyngit merged commit b18c27f into develop Jun 27, 2023
@robyngit robyngit deleted the feature-#1720-cesium-data-catalog branch November 6, 2023 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment