Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We need to be able to show / hide building or road classes on the map #25

Open
timlinux opened this issue Jan 16, 2020 · 5 comments
Open
Assignees

Comments

@timlinux
Copy link
Contributor

In the chart we need a checkbox to the right of each label that when checked will hide/show buildings or roads of that class

image

If we cant put the widgets directly in the chart, propose a different user experience that is intuitive

@anitanh anitanh self-assigned this Jan 16, 2020
@anitanh
Copy link
Contributor

anitanh commented Feb 4, 2020

hi @NyakudyaA could you give me the example of cql filter for building type and road type, please?

@NyakudyaA
Copy link
Contributor

@Ann26
&cql_filter=roads_id IN (2,13) etc
where roads id corresponds to those types. Do not include the type false.
id-roads

&cql_filter=building_id in (10,3) etc
building-id

@NyakudyaA
Copy link
Contributor

http://staging.fbf.kartoza.com/geoserver/wms?service=WMS&request=GetMap&layers=kartoza:exposed_buildings&styles=&format=image/png&transparent=true&version=1.1.1&srs=EPSG:3857&cql_filter=building_id IN (3,4,5,6,7,8,9,10,11,12,13,14) AND flood_event_id=212 AND village_id=3603081006 AND depth_class=3&width=256&height=256&bbox=11871587.737027295,-705666.6451287476,11872810.729479859,-704443.6526761842

Hi @Ann26 it seems the building_id that is in that column is not the correct one. I have modified it to call it building_class_id can you try it. Please let me know if it is the same with roads

@anitanh
Copy link
Contributor

anitanh commented Feb 4, 2020

yes sorry @NyakudyaA I checked again after writing my comment, I use building_type and that was working, I will try that too. Thank you.

@NyakudyaA
Copy link
Contributor

yes sorry @NyakudyaA I checked again after writing my comment, I use building_type and that was working, I will try that too. Thank you.

yes, building type will work as well, but I think to increase the efficiency of a search it's better to do it against the number. The difference might be so small in the context of the kind of data we are showing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants