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

Add more config options for layers in the Map Config #2187

Open
1 of 3 tasks
robyngit opened this issue Aug 28, 2023 · 1 comment
Open
1 of 3 tasks

Add more config options for layers in the Map Config #2187

robyngit opened this issue Aug 28, 2023 · 1 comment
Assignees
Labels
cesium DRP Issues related to the Defense Resiliency Platform enhancement pdg Permafrost Discovery Gateway Requested by: Hosted repo Features requested by a DataONE hosted repository

Comments

@robyngit
Copy link
Member

robyngit commented Aug 28, 2023

The layers that show in the Cesium map are configured with JSON. We would like to add a few more configuration options to the layer config:

  • clickFeatureAction: This is currently set at the map level, to either "showDetails" or "zoom". With show details, a layer panel pops up with additional info about the feature. With zoom, the map zooms into the bounding sphere for that feature. There are cases where some layers should zoom on click(geohashes) and others should show details on click (other vector layers in a data catalog). If no action is set, it should default to the map-level behaviour.
  • showOpacitySlider: Set to false to hide the opacity slider for layers that don't really need one, e.g. the Permafrost Tours layer in the PDG which has only one PIN on the map. This should default to true to be consistent with the current functionality.
  • showInLayerList: Set to false to hide this layer in the layer list. Defaults to true. This will be used for issue Enable drawing arbitrary polygons on the Cesium map #2180, because we don't want to show the layer that we create that stores the polygon a user draws on the map. It could also be useful for any layers a portal wants shown all the time - e.g. a base layer.
@robyngit robyngit added enhancement pdg Permafrost Discovery Gateway cesium DRP Issues related to the Defense Resiliency Platform labels Aug 28, 2023
@robyngit robyngit added this to the 2.27.0 milestone Aug 28, 2023
@robyngit robyngit self-assigned this Aug 28, 2023
robyngit added a commit that referenced this issue Aug 31, 2023
- Add MapInteraction, GeoPoint and GeoBoundingBox models
- Make the CesiumWidgetView methods smaller and more modular
- Move Map model attributes to the MapInteraction model (selectedFeatures, currentPosition, currentScale, and currentViewExtent)
- In MapAsset models, listen for changes to cesiumOptions and update Cesium model
- In map connectors, don't use new models as defaults to avoid instantiating new models unnecessarily
- Pass GeoPoint and GeoScale models directly to the ScaleBarView

Issues #2189, #2180, #2187
@robyngit
Copy link
Member Author

showInLayerList has been implemented in #2204

@robyngit robyngit modified the milestones: 2.27.0, 2.28.0 Oct 26, 2023
@iannesbitt iannesbitt added the Requested by: Hosted repo Features requested by a DataONE hosted repository label Dec 8, 2023
@robyngit robyngit modified the milestones: 2.28.0, 2.29.0 Feb 8, 2024
@robyngit robyngit removed this from the 2.29.0 milestone Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cesium DRP Issues related to the Defense Resiliency Platform enhancement pdg Permafrost Discovery Gateway Requested by: Hosted repo Features requested by a DataONE hosted repository
Projects
None yet
Development

No branches or pull requests

2 participants