Support TopoJson
Support topoJson format in HighMaps. This format is about 80% smaller than geoJson
-
Almed Batlex commented
Good to see this marked as completed. The size difference is the main reason TopoJSON matters for maps: it stores shared borders once as arcs instead of repeating them for every neighbouring region, so files shrink and load faster, which helps on dashboards with several maps. If you’re moving a map from GeoJSON, check the simplification level as well, because over-simplifying can distort small regions. For teams embedding Highmaps charts in SAP Fiori apps, it also helps to see which standard apps already cover a need before building a custom map view, and this comparison of the Fiori library and the app library is a useful starting point: https://cremencing.com/sap-fiori-library-vs-app-library/. Thanks to the Highcharts team for following through on the request.
-
We should definitely add this to Highmaps, possibly as a plugin. There are available tools for converting to and from GeoJSON/TopoJSON: https://github.com/mbostock/topojson. Assuming these are licensed such that we can use them it might not be a lot of work to add support for this. Adding native export to TopoJSON for the map collection would be a lot of work, so hopefully the GeoJSON converter does a good job of detecting topology on its own.
-
James U
commented
Hope you add this soon. TopoJSON files are so much smaller.
-
Toby Bellwood
commented
There's also a compressed GeoJSON variant that does a similar task - https://github.com/mapbox/geobuf
-
Themba|yena Ntleki
commented
topoJSON seems to be having a smaller file size in comparison to geoJSON for the same shape file.
-
Anonymous
commented
I agree...we have been developing map dashboards using d3 & Leaflet but Highcharts is more interesting & easy to use. Would request support to load TopoJSON.