origo-map / origo

Origo
Other
50 stars 55 forks source link

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

Open MattiasSp opened 3 weeks ago

MattiasSp commented 3 weeks ago

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 commented 3 weeks ago

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?