diff --git a/index.html b/index.html index b912b2c..e16b776 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + diff --git a/rainbow.js b/rainbow.js index 92652e2..0248303 100644 --- a/rainbow.js +++ b/rainbow.js @@ -9,13 +9,13 @@ function style(feature) { color: 'white' }; } -$.getJSON("https://rawgit.com/johan/world.geo.json/master/countries.geo.json", function (data) { +$.getJSON("https://cdn.jsdelivr.net/gh/johan/world.geo.json@master/countries.geo.json", function (data) { geojsonLayer = L.geoJson(data, { style: style }); loadMap(); }); -//var geojsonLayer = new L.GeoJSON.AJAX("https://rawgit.com/johan/world.geo.json/master/countries.geo.json", { +//var geojsonLayer = new L.GeoJSON.AJAX("https://cdn.jsdelivr.net/gh/johan/world.geo.json@master/countries.geo.json", { // style: style //}); function loadMap() {