You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When using "option 1" of the search control config - i e when using a map layer to display feature info on search results - the projection of the named layer is not taken into account.
In the getFeature function a layer's default projection is used (no srsName parameter is specified) and it is never transformed, regardless of what projection has been specified in the layer configurations.
This becomes an issue when a layer has to use a different projection than the map projection, notably when using WFS layers from QGIS Server which only serves GeoJSON in EPSG:4326 (WGS84).
Proposed solution
If a layer's data projection differs from the map projection, transform the coordinates before returning the feature in the getFeature function.
Alternative solutions considered
...
Additional context
...
The text was updated successfully, but these errors were encountered:
Description
When using "option 1" of the search control config - i e when using a map layer to display feature info on search results - the projection of the named layer is not taken into account.
In the getFeature function a layer's default projection is used (no
srsName
parameter is specified) and it is never transformed, regardless of what projection has been specified in the layer configurations.This becomes an issue when a layer has to use a different projection than the map projection, notably when using WFS layers from QGIS Server which only serves GeoJSON in EPSG:4326 (WGS84).
Proposed solution
If a layer's data projection differs from the map projection, transform the coordinates before returning the feature in the getFeature function.
Alternative solutions considered
...
Additional context
...
The text was updated successfully, but these errors were encountered: