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

Merged Point Features + Hover Highlight Styles #150

Merged
merged 37 commits into from
Sep 10, 2024
Merged

Conversation

josephbirkner
Copy link
Collaborator

@josephbirkner josephbirkner commented Aug 8, 2024

Fixes #80
Fixes #119

This PR contains two major new styling system improvements: Hover styles, and merged point styling. Merged point styling is an evolution of our previous mode style field. Instead of highlight or normal, mode can now be set to hover or selection. The hover style is now also applied on the target feature, when a feature ID in the attribute panel is being hovered.

By setting point-merge-grid-cell, a tolerance may be defined which allows merging the visual representations of point features which share the same 3D spatial cell, map, layer, and style rule. This has two advantages:

  • Multi-Selection: When selecting the merged representation, a multi-selection of all merged features happens.
  • Logical Evaluation using $mergeCount: In some map formats, it may be desirable to apply a style based on the number of merged points.
    This may be done to display a warning, or to check a matching requirement.
    To this end, the $mergeCount variable is injected into each simfil evaluation context of a merged-point style rule.
    Check out the default style for an example.

You can simply test both features, by running the mapviewer with the default style and Island 6.

@josephbirkner josephbirkner force-pushed the merged-features branch 2 times, most recently from 582af50 to f819856 Compare August 20, 2024 14:01
@josephbirkner josephbirkner marked this pull request as ready for review August 29, 2024 17:32
@josephbirkner josephbirkner changed the title Merged Point Features Merged Point Features + Hover Highlight Styles Aug 29, 2024
cmake/cesium.cmake Outdated Show resolved Hide resolved
@Waguramu Waguramu changed the base branch from main to zoom-feature September 10, 2024 17:10
@Waguramu Waguramu merged commit 746a1ac into zoom-feature Sep 10, 2024
4 checks passed
@Waguramu Waguramu deleted the merged-features branch September 10, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce feature highlighting when hovering over FeatureIDs Support merged features
3 participants