Where have I been and where I want to go?

Posted on 8 May, 2010. Filed under: Travel |

google.load(‘visualization’, ‘1’, {‘packages’: [‘geomap’]});
google.setOnLoadCallback(drawMap);

function drawMap() {
var data = new google.visualization.DataTable();
data.addRows(17);
data.addColumn(‘string’, ‘Country’);
data.addColumn(‘number’, ‘Visited’);

data.setValue(0, 0, ‘Germany’);
data.setValue(0, 1, 1);

data.setValue(1, 0, ‘United States’);
data.setValue(1, 1, 1);

data.setValue(2, 0, ‘Guatemala’);
data.setValue(2, 1, 1);

data.setValue(3, 0, ‘Mexico’);
data.setValue(3, 1, 1);

data.setValue(4, 0, ‘Spain’);
data.setValue(4, 1, 1);

data.setValue(5, 0, ‘France’);
data.setValue(5, 1, 1);

data.setValue(6, 0, ‘Costa Rica’);
data.setValue(6, 1, 1);

data.setValue(7, 0, ‘Egypt’);
data.setValue(7, 1, 1);

data.setValue(8, 0, ‘El Salvador’);
data.setValue(8, 1, 1);

data.setValue(9, 0, ‘Honduras’);
data.setValue(9, 1, 1);

data.setValue(10, 0, ‘Israel’);
data.setValue(10, 1, 1);

data.setValue(11, 0, ‘Italy’);
data.setValue(11, 1, 1);

data.setValue(12, 0, ‘Nicaragua’);
data.setValue(12, 1, 1);

data.setValue(13, 0, ‘Palestinian Territory, Occupied’);
data.setValue(13, 1, 1);

data.setValue(14, 0, ‘Switzerland’);
data.setValue(14, 1, 1);

data.setValue(15, 0, ‘Taiwan, Province of China’);
data.setValue(15, 1, 1);

data.setValue(16, 0, ‘Bahamas’);
data.setValue(16, 1, 1);

var options = {};
options[‘dataMode’] = ‘regions’;

var container = document.getElementById(‘map_canvas’);
var geomap = new google.visualization.GeoMap(container);
geomap.draw(data, options);
};

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: