hotosm / osm-analytics-fsp

A custom version of OSMA for analysis of financial service providers
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Zoom levels and feature aggregation #27

Open ekastimo opened 7 years ago

ekastimo commented 7 years ago

During the binning process (creating geo-cells), we compute the number of mobile money agents in the cell. Then obtain the population of the cell. These two are then used to generate People per mobile money agent Data i.e. PeoplePerAgent = No of People in cell/ No of Mobile money agent This value is then added as one of the properties of the bin(Geocell). On the client side, we use dynamic map box style to allow a user to filter the data

{ 'id': 'mobilemoney-aggregated-0', 'type': 'fill', 'source': 'osm-mobilemoney-raw', 'source-layer': 'osm', 'maxzoom': 12.01, 'paint': { 'fill-color': '#ffe4b2' }, 'filter': ['all', ['>=', '_peoplePerAgent', 20], ['<', '_peoplePerAgent', 55] ] } So this is a pictorial representation of the problem zoomissue We need to find an optimal way of fixing this @awright @cgiovando @PaulUithol please advise on this

krkwesiga commented 7 years ago

@cgiovando could help us get some traction in terms of ideas for this challenges from the dev community