inasafe / inasafe-fba

Next generation of InaSAFE that includes support for forecast based action
MIT License
1 stars 8 forks source link

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

Open timlinux opened 4 years ago

timlinux commented 4 years ago

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 commented 4 years ago

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

NyakudyaA commented 4 years ago

@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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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