A Chartle.net user just complained that she couldn't put apostrophes
in GeoMap labels. Gerald's Place would then just be rendered as Gerald
s Place, missing the apostrophes.
I tried to reproduce the problem without using the Chartle.net client.
The code is below.
Cheers,
Dieter
<html>
<head>
<!-- required only for markers, and only when not specifying lat/
long values --> <script
src='http://maps.google.com/maps?file=api&v=2&key=ABCDEFG'
type='text/javascript'></script>
<script type='text/javascript' src='http://www.google.com/jsapi'></
script>
<script type='text/javascript'>
google.load('visualization', '1', {'packages': ['geomap']});
google.setOnLoadCallback(drawMap);
function drawMap() {
var data = new google.visualization.DataTable();
data.addRows(2);
data.addColumn('string', 'City');
data.addColumn('number', 'Popularity');
data.addColumn('string', 'Label');
data.setValue(0, 0, 'New York');
data.setValue(0, 1, 200);
data.setValue(0, 2, 'Gerald\'s Place');
data.setValue(1, 0, 'Boston');
data.setValue(1, 1, 200);
data.setValue(1, 2, 'My Place');
var options = {};
options['region'] = 'US';
options['colors'] = [0xFF8747, 0xFFB581, 0xc06000]; //orange
colors
options['dataMode'] = 'markers';
var container = document.getElementById('map_canvas');
var geomap = new google.visualization.GeoMap(container);
geomap.draw(data, options);
};
</script>
</head>
<body>
<div id='map_canvas'></div>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---