Lizmap-web-client: unexpected behaviour with filter data with form and popup

Created on 4 Dec 2019  Â·  12Comments  Â·  Source: 3liz/lizmap-web-client

What is the bug?


When clicking on features that have been subset with "filter with form" tool the popup does not show only the filtered features but keeps on showing all the records. Note data are points representing plants, in one location there are more plants sharing the same x and y

Steps to reproduce the issue

  1. The dataset is coming from postgres and represent point features. In lizmap tool I have set the layer so that can be filtered by species common names using "filter data with form".
  2. Click on 'Filter' in lizmap webclient
  3. Type a plant species common name
  4. Click on the main map to read the attribute table info from the pop-up
  5. The pop-up returns all the plant species names which have the same x,y location. Also those that have not been filtered if i keep at a broad scale. If i zoom in (very very close to the point) then it seems that the popup retrieve only the filtered records.

Expected behavior

The pop-up should only show the filtered plant species at any zoom level. If i do the same using the attribute table and i search for plant species name, filter the layer and then click on the map, the pop-up shows only the filtered features (at any zoom layer). Hence, i think there is a but with filter by form.

Screenshots and logs

plant_filter

plantspopup

Environment

  • Lizmap version: 3.3
  • QGIS Server version: >= 3.0
  • QGIS Project version: 3.4 LTR
  • OS (Windows, Linux, MacOS, Android…): Linux Ubuntu 18
  • Browser (Firefox, Chrome…): Firefox
  • Lizmap admin information (users, logs…) stored into Sqlite (default)? PostgreSQL? MySQL? default
Sponsor or PR needed bug

Most helpful comment

@rmarzocchi84 @RobiFag Thanks. I'll take a look ASAP.

All 12 comments

We encountered the same problem. Maybe it is related to getfeatureinfo request which is different from getmap request?

@saeri-ims Is it fixed now with LWC 3.3.8 ?

@nboisteault I will install tomorrow LWC 3.3.8 and I will do some test for you

@nboisteault LWC 3.3.8 installed, but the problem it seems to be not fixed.. my colleague @robifag will add soon a GIF to show the problem. probably only the #1446 issue is solved, but we need to test it!

Hi @nboisteault, here a short gif to show the problem
info_filter

@rmarzocchi84 @RobiFag Thanks. I'll take a look ASAP.

For the info: this issue is also present in LWC 3.4.

This issue is missing some feedbacks. 👻
Please have a look to the discussion, thanks. 🦎

We need to make a big refactoring of this tool so I change milestone to 4.

Hi @nboisteault so the filter tool requires a huge refactoring hence will also other issues related to this tool be designed for the 4.0 version? For instance https://github.com/3liz/lizmap-web-client/issues/1674

Hi @RobiFag probably but i don't know yet.

For #1674 the solution @RobiFag proposed in the #747 (modifying the filter.js) is close to solution and it is a big upgrade

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ea-refit picture ea-refit  Â·  6Comments

nboisteault picture nboisteault  Â·  9Comments

FPaulsen picture FPaulsen  Â·  13Comments

josemvm picture josemvm  Â·  3Comments

tethysgeco picture tethysgeco  Â·  8Comments