Lizmap-web-client: Cascading form filter

Created on 13 Nov 2020  Â·  7Comments  Â·  Source: 3liz/lizmap-web-client

Hello,
how to fit form filters like in this example "https://lizmap.legrandnarbonne.com/index.php/view/map/?repository=public&project=circuit_court"? the choice in a selection, gray the impossibilities in the other filters.

on the same data layer, I know how to filter a zone then a category but where to create the link between them ? parent-child table on the same table whith two variable ?

Thank you

Environment

  • Lizmap version:
  • QGIS Server FULL version : qgis server 3.4.15 and lizmap 3.3.5
  • QGIS Desktop FULL version : qgis 3.10 and lizmap 3.2.8
    use postgres 9.6
  • OS (Windows, Linux, MacOS, Android…) : Window 10

filtre_lizmap

question

Most helpful comment

OK I am looking with a developer how to adapt it to our work context and of course would share code

follow-up question : https://cd34.lizmap.com/inclusion_numerique/index.php/view/map/?repository=in1&project=CD_34_Inclusin_Num
I'm assuming the project is also a department-paid js development? Impossible to reproduce natively with the standard plugin ?

very beautiful work which deserves to be known and reproduced. A beautiful business card for Lizmap and its developers

All 7 comments

Hi,
I complete my question with a second question. Why are the filters of my layer generated under qgis and visible in the map not included in the filter by form option? all modalities are now visible. Or this must be invisible to user

Thank you for this clarification and this code sharing.
However, should I understand that this functionality cannot be deployed natively with the Lizmap plugin and that it must be inserted on the server side ?
Can we adapt the code to our own uses? or should you contact 3Liz?
Thanks

It is added to Lizmap this way => https://docs.lizmap.com/next/en/publish/customization/javascript.html
You can use the code, modify it and share your work to the community.

OK I am looking with a developer how to adapt it to our work context and of course would share code

follow-up question : https://cd34.lizmap.com/inclusion_numerique/index.php/view/map/?repository=in1&project=CD_34_Inclusin_Num
I'm assuming the project is also a department-paid js development? Impossible to reproduce natively with the standard plugin ?

very beautiful work which deserves to be known and reproduced. A beautiful business card for Lizmap and its developers

It is also a paid development. It is also made with Javascript not with plugin, you can find those custom code looking at page source code URLs beginning withhttps://cd34.lizmap.com/inclusion_numerique/index.php/view/media/getMedia?repository=in1&project=CD_34_Inclusin_Num&path=media%2Fjs...

Thank you for your kind words.

reproducing your code is going to be a real challenge.
I will not fail to share the result
I close the subject

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pcav picture pcav  Â·  12Comments

nboisteault picture nboisteault  Â·  9Comments

josemvm picture josemvm  Â·  13Comments

danzig666 picture danzig666  Â·  10Comments

FPaulsen picture FPaulsen  Â·  13Comments