Git Product home page Git Product logo

Comments (2)

uprel avatar uprel commented on June 20, 2024

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.

 avatar commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.