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

InfoClick: Highlight in collection view. #1472

Open
jesade-vbg opened this issue Feb 9, 2024 · 2 comments
Open

InfoClick: Highlight in collection view. #1472

jesade-vbg opened this issue Feb 9, 2024 · 2 comments
Assignees
Projects
Milestone

Comments

@jesade-vbg
Copy link
Contributor

In the InfoClick listview, features on the map gets highlighted when hovered in the list.

Request has come in to add this highlighting to the collection list view as well.

Due to the fact that it theoretically can be many features to highlight, this function should be optional and throttled if activated.

Example of the feature collection list view for reference.
In this case, the performance problems would be tiny tiny and not noticable.

image

@jesade-vbg jesade-vbg added this to the 3.x milestone Feb 9, 2024
@jesade-vbg jesade-vbg self-assigned this Feb 9, 2024
@jesade-vbg jesade-vbg added this to Approved ideas in Hajk via automation Feb 9, 2024
@jacobwod
Copy link
Member

Good idea and as it goes for implementation, it should be doable in this view with something like highlightLayer.addFeatures(featureCollection.map(f => f.getGeometry()). That's where the potential problem arises. But I think the map() operation shouldn't be too expansive, given that we typically limit the amount of features returned by the OGC service to something like 100 or maybe 200 features. 👍

@jesade-vbg
Copy link
Contributor Author

Well, source.addFeatures() accepts an array of features, not an array of geometries.
As it goes for implementation, well........ I will implement it. Or actually I'm already 90% finished.

@jesade-vbg jesade-vbg moved this from Approved ideas to In progress in Hajk Feb 12, 2024
@jesade-vbg jesade-vbg modified the milestones: 3.x, 3.13 Feb 13, 2024
@jesade-vbg jesade-vbg moved this from In progress to Done in Hajk Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Hajk
  
Done
Development

No branches or pull requests

2 participants