Last active
July 19, 2017 19:15
-
-
Save hfu/57d8e2d45502736862161971cdc861f1 to your computer and use it in GitHub Desktop.
globalmap-vt style.json stringify https://bl.ocks.org/hfu/57d8e2d45502736862161971cdc861f1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title></title> | |
</head> | |
<body> | |
<pre id='console'/> | |
<script> | |
fetch('https://raw.githubusercontent.com/hfu/globalmaps-vt-style/master/gmaf20vt.json') | |
.then(function(data){ | |
return data.json() | |
}) | |
.then(function(json){ | |
var element = document.getElementById('console') | |
console.log(JSON.stringify(json, null, 2)) | |
element.innerHTML = JSON.stringify(json, null, 2) | |
}) | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment