ThreeSixtyGiving / grantvis

GrantVis - Visual 360Giving Data explorer
https://grantvis.threesixtygiving.org
GNU General Public License v3.0
0 stars 0 forks source link

Investigate geojson data size and possible speed ups #4

Open michaelwood opened 2 years ago

michaelwood commented 2 years ago

The geojson files total 6.9M which is a reasonable amount of bandwidth to need. See if we can reduce this by either splitting these up or compressing them.

https://github.com/ThreeSixtyGiving/insights-ng/tree/live/insights/static/geo fetched in https://github.com/ThreeSixtyGiving/insights-ng/blob/live/insights/static/js/components/map.js

michaelwood commented 2 years ago

Fix existing issues

drkane commented 2 years ago

One optimisation is trimming the decimal places from the lat longs - at the moment they're atom-width precision.

There's also a range of files for each of the boundaries on the ONS geoportal - I tend to choose between "Generalised" and "super generalised" - Super generalised is much smaller but you get very blocky shapes, especially at higher zooms.

mariongalley commented 9 months ago

@michaelwood Insights is now very fast, is this optimisation still needed?

michaelwood commented 9 months ago

@michaelwood Insights is now very fast, is this optimisation still needed?

I think this one is a mostly a reminder for when we next update the shape files for the map, as @drkane mentions we don't use the level of precision that is currently in the file and this is a reason why its quite large. That said the effort vs gain on this one is very low so happy to close if 360Giving are never likely prioritise this.