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
// we have a geoJSON file (in this case for Guinea) on the web: | |
var guinea = 'https://raw.githubusercontent.com/johan/world.geo.json/master/countries/GIN.geo.json' | |
// and we have a function that does something with the geoJSON file: | |
var handleGeoJSON = function (data) { | |
// data is the JSON parsed into a JS object | |
console.log(data) | |
} | |
// using jquery (you must have loaded jQuery first) - http://api.jquery.com/jquery.getjson |
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
CB_color_cycle = ['#377eb8', '#ff7f00', '#4daf4a', | |
'#f781bf', '#a65628', '#984ea3', | |
'#999999', '#e41a1c', '#dede00'] |