Skip to content

Instantly share code, notes, and snippets.

@aaizemberg
Last active August 29, 2015 14:19
Show Gist options
  • Save aaizemberg/1605e8cafae9ebb693c2 to your computer and use it in GitHub Desktop.
Save aaizemberg/1605e8cafae9ebb693c2 to your computer and use it in GitHub Desktop.
América del Sur
Region ISO 3166-1 alpha-2 Country
005 - South America AR Argentina
005 - South America BO Plurinational State of Bolivia
005 - South America BR Brazil
005 - South America CL Chile
005 - South America CO Colombia
005 - South America EC Ecuador
005 - South America FK Falkland Islands
005 - South America GF French Guiana
005 - South America GY Guyana
005 - South America PE Peru
005 - South America PY Paraguay
005 - South America SR Suriname
005 - South America UY Uruguay
005 - South America VE Bolivarian Republic of Venezuela
013 - Central America BZ Belize
013 - Central America CR Costa Rica
013 - Central America GT Guatemala
013 - Central America HN Honduras
013 - Central America MX Mexico
013 - Central America NI Nicaragua
013 - Central America PA Panama
013 - Central America SV El Salvador
029 - Caribbean AG Antigua and Barbuda
029 - Caribbean AI Anguilla
029 - Caribbean AN ??
029 - Caribbean AW Aruba
029 - Caribbean BB Barbados
029 - Caribbean BL Saint Barthélemy
029 - Caribbean BS Bahamas
029 - Caribbean CU Cuba
029 - Caribbean DM Dominica
029 - Caribbean DO Dominican Republic
029 - Caribbean GD Grenada
029 - Caribbean GP Guadeloupe
029 - Caribbean HT Haiti
029 - Caribbean JM Jamaica
029 - Caribbean KN Saint Kitts and Nevis
029 - Caribbean KY Cayman Islands
029 - Caribbean LC Saint Lucia
029 - Caribbean MF Saint Martin (French part)
029 - Caribbean MQ Martinique
029 - Caribbean MS Montserrat
029 - Caribbean PR Puerto Rico
029 - Caribbean TC Turks and Caicos Islands
029 - Caribbean TT Trinidad and Tobago
029 - Caribbean VC Saint Vincent and the Grenadines
029 - Caribbean VG Virgin Islands, British
029 - Caribbean VI Virgin Islands, U.S.
021 - Northern America BM Bermuda
021 - Northern America CA Canada
021 - Northern America GL Greenland
021 - Northern America PM Saint Pierre and Miquelon
021 - Northern America US United States of America
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>mapa</title>
</head>
<body>
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["geochart"]});
google.setOnLoadCallback(drawRegionsMap);
function drawRegionsMap() {
var data = google.visualization.arrayToDataTable([
['Pais', 'Poblacion'],
['Argentina', 200],
['Brazil', 100],
['Uruguay', 100],
['Paraguay', 100],
['Chile', 100],
['Peru', 100],
['Bolivia', 100],
['Ecuador', 100],
['Colombia', 100],
['Venezuela', 100],
['French Guiana',100],
['Guyana',100],
['Suriname',100],
['Falkland Islands',100]
]);
var options = {
region: '005', // 005 - South America
// 013 - Central America
// 029 - Caribbean
// 021 - Northern America
colorAxis: {colors: ['#1f77b4', '#bdbdbd', '#d62728']},
backgroundColor: 'lightgrey',
datalessRegionColor: 'white',
defaultColor: '#f5f5f5',
};
var chart = new google.visualization.GeoChart(document.getElementById('mapa'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="mapa" style="width: 300px; height: 350px;"></div>
</body>
</html>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment