2.30.0
MetacatUI version 2.30.0 includes new features and improvements to the Cesium map interface, including the ability to bookmark and share map views, and a complete map legend. This release also includes several bug fixes and other minor improvements.
New features: Cesium map interface upgrades 🎉 🌎
Bookmark and share map views 📑
Users can now bookmark and share their current Cesium map view! This feature fosters collaboration by allowing users to share specific map views with stakeholders, colleagues, and the public. It also gives users the ability to save their current map view and return to it later.
Here's how it works: As the user interacts with the map, the URL in the browser address bar will update to reflect the current state of the map, including the location, zoom level, perspective, and any data layers that are currently displayed. This URL can be copied and shared with others, or saved for later use. When the URL is visited, the map will be restored to the same state as when the URL was copied. There is also a convenient share button that makes it easy to copy the URL to the clipboard.
For more information, see #1806.
Complete map legend 🎨
The Cesium map now displays a complete legend for each data layer that is displayed on the map. This legend provides a visual representation of the data values that are being displayed on the map, making it easier for users to interpret the data. The legend is displayed in collapsible a panel on the bottom left side of the map, and it updates automatically as the user shows or hides data layers.
This is a much-needed improvement to the simplified "mini-legend" displayed in the layer list. The new legend is more informative and easier to read, and it provides a better user experience for users who are exploring data on the map. The mini-legend is still displayed in the layer list for now, but it may be removed in a future release.
For more information, see #1784.
Misc improvements
- Automatically change target branch for dependabot PRs from
main
todevelop
#2456 - Remove references to deprecated Morpho software from themes #2402
- Cesium map: Migrate layer categories to used shared expansion panel view/model #2419
- Cesium map: Refactor Map model getAllLayers function to a collection of MapAsset #2400
Bug fixes 🛠️
- Update Node.js Version in GitHub Actions #2307
Developer notes
The map share button must be explicitly enabled in Cesium map configurations with the showShareUrl
configuration option. To work properly, it also requires that each layer in the map is configured with a unique layerId
property. See the mapConfig
docs for details.
The legend panel is enabled by default and does not require any additional configuration.
Example:
const mapConfig = {
showShareUrl: true,
layers: [
{
layerId: 'my-layer',
...
},
{
layerId: 'another-layer',
...
}
]
}