Trying to fix the URL on the github.io demo

This commit is contained in:
Simon Brooke 2020-02-24 16:24:46 +00:00
parent 861339458d
commit 66f9380ee8
No known key found for this signature in database
GPG key ID: A7A4F18D1D4DF987

View file

@ -256,7 +256,7 @@ crossorigin=""/ -->
"Zimbabwe,Harare,-17.816666666666666,31.033333,ZW,Africa\n" + "Zimbabwe,Harare,-17.816666666666666,31.033333,ZW,Africa\n" +
"British Indian Ocean Territory,Diego Garcia,-7.3,72.400000,IO,Africa\n" ); "British Indian Ocean Territory,Diego Garcia,-7.3,72.400000,IO,Africa\n" );
/* Map using CSV from URL */ /* Map using CSV from URL */
var url = window.location.href.substring(0, window.location.href.length - "index.html".length) + "data/europe-capitals.csv"; var url = window.location.href.substring(0, window.location.href.lastIndexOf('/')) + "/data/europe-capitals.csv";
geocsv_lite.core.initialise_map_element("url-map", url); geocsv_lite.core.initialise_map_element("url-map", url);
</script> </script>
</body> </body>