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

Option to add multiple layers in the featureinfoLayer layer parameter #2058

Open
MattiasSp opened this issue Oct 16, 2024 · 1 comment
Open

Comments

@MattiasSp
Copy link
Contributor

Description
It would be cool to have the possibility to let a feature info click on a single feature show the results from multiple layers at the same time.

Describe the solution you'd like
Adding the layer parameter with an array "featureinfoLayer": ["layer1", "layer2", "etc"] would make clicks on the layer show results from all of the specified layers.

Describe alternatives you've considered
It is often be possible to create elaborate database views to gather results from multiple tables and publish the view as a single layer, but I think this would be a less flexible, less elegant and more time consuming solution.

Additional context
It might be peferable if the results are presented as separate layer results, under each featureinfoLayer layer's own name as heading.

@huggla
Copy link
Contributor

huggla commented Oct 22, 2024

I know that you are using Qgis Server in Haninge. Have you tried to create a group layer containing layer1, layer2, etc in Qgis Server and setting featureinfoLayer to that group layer?

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

No branches or pull requests

2 participants