1
When trying to draw a Chart of type MAP, I get the following error:
Uncaught Typeerror: google.visualization.Map is not a Function
this occurs only with this type of Chart.
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script>
google.load('visualization', '1.0', {'packages':['corechart']});
google.setOnLoadCallback(drawChart_locations_map);
function drawChart_locations_map() {
var data = google.visualization.arrayToDataTable([
["Cities","Users"],
["Sao Paulo",4460],
["Rio de Janeiro",1935]
]);
var options = {"mapType":"satellite"};
var chart = new google.visualization.Map(document.getElementById('googlechart_locations_map'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="googlechart_locations_map"></div>
</body>
</html>