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

New WFS layers no longer visible in dashboards #9139

Closed
1 task done
tdipisa opened this issue May 5, 2023 · 1 comment · Fixed by #9230 or #9233
Closed
1 task done

New WFS layers no longer visible in dashboards #9139

tdipisa opened this issue May 5, 2023 · 1 comment · Fixed by #9230 or #9233

Comments

@tdipisa
Copy link
Member

tdipisa commented May 5, 2023

Description

New WFS layers added to a map widget in dashboard are no longer visualized. QA and 2023.01.01 are affected, where an empty CQL_FILTER is included in the GetFeature request when the map widget is finally added to the dashboard.

A few more things have been contextually identified also in DEV:

  1. When a WFS layer is selected from the Catalog tool in dashboards a WMS DescribeLayer request is performed . This doesn't break any functionality but is is not correct anyway
  2. The Zoom to layer is not enabled but it should be

image

How to reproduce

wfs_dashboard

Expected Result

  • Layers added from a WFS resource in dashboard should be visualized in Map Widgets
  • The WMS DescribeLayer request should not be performed in this case
  • The Zoom to layer should be enabled using info retrieved from the Feature Collection

Current Result

See How to reproduce above. an empty CQL_FILTER is included in the GetFeature request when the map widget is finally added to the dashboard.

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

@tdipisa tdipisa added this to the 2023.01.02 milestone May 5, 2023
@tdipisa tdipisa self-assigned this May 5, 2023
@tdipisa tdipisa assigned dsuren1 and unassigned tdipisa May 5, 2023
@dsuren1
Copy link
Contributor

dsuren1 commented May 8, 2023

Investigation:

  • CQL_FILTER: undefined
    This is not a regression from MS side. And the reason this not happening in DEV is because of this implementation as part of #8990

  • Zoom to layer is not enabled
    Caused when layer has boundingBox instead of bbox prop resulting isEpsgSupported to return false, disabling the zoom button to be disabled. Modify zoomTo function of the enhancer accordingly

  • DescribeLayer
    Skip addSearch WFS when layer is selected

dsuren1 added a commit to dsuren1/MapStore2 that referenced this issue Jun 16, 2023
@dsuren1 dsuren1 linked a pull request Jun 16, 2023 that will close this issue
5 tasks
@ElenaGallo ElenaGallo self-assigned this Jun 19, 2023
dsuren1 added a commit to dsuren1/MapStore2 that referenced this issue Jun 19, 2023
offtherailz pushed a commit that referenced this issue Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment