rasmi / civic-graph

Civic Graph - Visualization Tool
http://civicgraph.io
5 stars 5 forks source link

Filter bar needs to search locations as well #58

Open nicklgaines opened 9 years ago

rasmi commented 9 years ago

This is difficult because we now support multiple locations. Previously we just had a text field in the entity (i.e. entity.location = 'New York, NY'), but now we have arrays of objects:(entity.locations = [{'locality': 'New York', country:'US'}, {'locality': 'Los Angeles', country:'US'}]), and the bootstrap-ui typeahead does not support filtering by nested arrays. We could pluck all localities from all entities into a unique set array, then search that too, then filter/hide entities by the selected location. That requires retooling of showing/hiding nodes.