GeoNode / geonode-mapstore-client

MapStore Client for GeoNode
http://geonode.org/geonode-mapstore-client/master
Other
13 stars 102 forks source link

Dashboard - GetFeatureInfo map issue #1759

Open mbeneventi opened 1 month ago

mbeneventi commented 1 month ago

Expected Behavior

if the layer's getFeatureInfo has been disabled from geoserver (publishing --> Layer Settings --> Queryable) GeoNode does not allow query management.

Actual Behavior

the getFeatureInfo of the datasets does not seem to work properly in a dashboard that contain a map with layer for which the 'getFeatureInfo parameter' has been disabled on geoserver

Steps to Reproduce the Problem

  1. add a maps in a dashboard with almost a dataset configurated 'not queryable' in geoserver publishing section

Specifications

allegato2 (1)

giohappy commented 1 month ago

@mbeneventi I will report here what have been already shared with you via other channels.

We have two problems here:

  1. There seems to be a bug in MapStore, where an error response from the GFI request for a layer breaks the visualization of other positive responses for other layers. The popup windows with the results is empty and keep spinning. An issue for this problem will be created for MapStore
  2. GeoNode doesn't manage the "queryable" information for layers, and it doesn't implement a way to inform the client about it. This is the limitation, I know, but it shouldn't affect the querying of other layers. When the query to the non-queryable layer fails the client just ignores it (as it happens in maps). The problem becomes visible in dashboards because of point 1.

This must be tested in the master version of GeoNode, since MapStore version has received a big upgrade that could already have fixed this.

I will move this issue to the client's repo, since the real bug (point 1) is related to the client and not the backend.

giohappy commented 1 month ago

I could reproduce the problem also with the master branch of GeoNode, which uses the latest released version of MS (2024.01.00). The upstream issue has been created https://github.com/geosolutions-it/MapStore2/issues/10326