Viewer does not zoom to Identified WMS feature
We have a viewer with many WMS/WFS mapservices. When identifying a feature, some layers zoom in to that feature, but others don't. I inspected the query request in de browser's developer tools, and I can confirm that in both cases, the correct geometry is returned. The one difference I found is that for failing results, there is no 'geometryType' specified in the result.
When I look in the manager, I can see that for the failing layer, Feature Type is set to None whereas other layers have Feature Type set to Polygon.
Does anyone know how geocortex determines the featuretype for WMS/WFS layers, or if there is a way I can override the 'None' value?
0
-
Hi Berend,
I'm assuming that the service you are trying to identify has an associated WFS service behind it.
If the WFS service specifies the geometry type as "Geometry" then we will advertise it as "None" since it is ambiguous and we don't have a better way to represent that.
Unless you get into spoofing the Capabilities response for the service, there is no way to override that in Essentials.
We're working on a fix that will inspect the returned geometry for a query and will set the geometry type at runtime, which should resolve this issue. We'll still advertise the geometry type as None but your identifies should zoom to the correct location.
Regards,
-Malcolm0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar