AngularJS, JavaScript, Performance

Performance Issue with Leaflet GeoJSON

It’s fine performing while data is not large. However with data as huge as all countries’ boundaries, GeoJSON freaks out and blocks the whole page.

Seriously. Use TopoJSON instead. Saved me so much pain.

Reference:

  1. A very nice tutorial
  2. All countries’ non-error TopoJSON, because manually npm converting GeoJSON into TopoJSON sometimes messes the whole thing up and creates weird lines
Standard