Open michaelwood opened 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.
@michaelwood Insights is now very fast, is this optimisation still needed?
@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.
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