I am loading layers in openlayers, and dynamically building a a protocol for "identifying" elements in that layer when the user clicks the map, and that layer was the selected "Identify" layer. This is pretty standard in many apps.
Now one of the "layers" I am loading is actually defined as a Layer Group in Geoserver.
I traced the http request made by Openlayers to WFS service at Geoserver, and here is the POST payload:
the_geom -8081435.512129 5125105.8658893 -8081411.6255577 5125129.7524606 Here is the response:
Could not locate {http://www.myurl.com}MyLayerGroup in catalog. Perhaps I just can't do this, and need to configure the actual layer(s) to query for identifying items completely separately from the list of layers to make available for viewing, as some of the viewable layers will be Layer Groups? That's a pain - if someone changes the layer(s) in the group, I would need to change my configuration for including that layer.
What made me think I could do this was the fact that you can "preview" a LayerGroup in Geoserver's UI, and click on that group, and it returns items under the mouse click from every layer in the layer group. But that query is a WMS GetFeatureInfo query... Not sure how to put THAT into a protocol for an openlayers featureControl...
Here is the URL I traced when previewing:
http://mygeoserver:8080/geoserver/M...yles=&srs=EPSG:2234&version=1.1.1&x=382&y=276
أكثر...
Now one of the "layers" I am loading is actually defined as a Layer Group in Geoserver.
I traced the http request made by Openlayers to WFS service at Geoserver, and here is the POST payload:
the_geom -8081435.512129 5125105.8658893 -8081411.6255577 5125129.7524606 Here is the response:
Could not locate {http://www.myurl.com}MyLayerGroup in catalog. Perhaps I just can't do this, and need to configure the actual layer(s) to query for identifying items completely separately from the list of layers to make available for viewing, as some of the viewable layers will be Layer Groups? That's a pain - if someone changes the layer(s) in the group, I would need to change my configuration for including that layer.
What made me think I could do this was the fact that you can "preview" a LayerGroup in Geoserver's UI, and click on that group, and it returns items under the mouse click from every layer in the layer group. But that query is a WMS GetFeatureInfo query... Not sure how to put THAT into a protocol for an openlayers featureControl...
Here is the URL I traced when previewing:
http://mygeoserver:8080/geoserver/M...yles=&srs=EPSG:2234&version=1.1.1&x=382&y=276
أكثر...