Comments (2)
Hi,
That's true, it's current limitation that takes only current layer and override any previous filters.
Code is here:
https://github.com/uprel/gisapp/blob/65714a2e6951a620e0ca49d32162d7933dabef73/client/site/js/WebgisInit_functions.js#L1790
It should be changed to add new filter to existing when calling
thematicLayer.mergeNewParams
But cannot simply just add, because it's different logic if existing map filter already contains filter for current layer or it contains filter for any other layer.
from gisapp.
Thank you for your reply.
I understand that it is not easy to fix this issue.
Is there any better workaroud for this?
For workaroud, I am thinking about making two layers into one layer
and apply filter to that unioned layer.
But in that case I need to filter text using "IN" or "OR" conditions...
For example,
Layer1 has country names with geom data
- country1 geom
- country2 geom
Layer2 has city names with geom data
- city1 geom
- city2 geom
I can make Layer3 which both have country and city names with geom data
- country1 geom
- country2 geom
- city1 geom
- city2 geom
but if I want to show only country1 and city2 on Map, I need to filter
the attribute by querying something like "name IN ('country1', 'city2')"
It seems like we cannot use IN clause nor Or clause for filtering attribute table,
but is there any change to modify the code with least work possible?
Thank you
from gisapp.
Related Issues (20)
- Zoom to feature from table not working HOT 1
- Layer export fails if defined as SQL query
- Check class.Login require on export.php
- [docs] Explain settings.fieldtemplates option HOT 1
- GetPrint return 500 HTTP error HOT 3
- labeling shows more decimal places on gisapp HOT 1
- Annoying black grid on PDF export HOT 1
- Mapbox searchbox function not working properly on IE11 and Windows7
- Replace DXF export using GDAL with native QGIS Server DXF format
- WSGI, qwc_connect.py has been overwritten after git update HOT 2
- Close panel on back button HOT 1
- WSOD when there is a trailing slash at the end of the URL
- Mobile: Switching initial visibility of layers HOT 5
- Get 404 error on session timeout HOT 1
- Identify object mode doesn't works as expected HOT 1
- Using relations HOT 1
- GoogleMaps Layer is not showing
- Fatal error: Uncaught phpfastcacheCoreException HOT 1
- Test timeout parameter in GuzzleHttp client
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gisapp.