You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first example at https://developers.google.com/chart/interactive/docs/gallery/map works well because it has named locations (countries)
If you replace one location with an address, it won't work from a webserver. It works from a local file, but from a webserver it doesn't work.
Since it works with Lat-Long, should I convert each address to its Lat-Long equivalence?
function drawMap() {
var data = google.visualization.arrayToDataTable([
['Address', 'Text'],
['800 e washington st, Colton, CA, USA', 'CA']
]);
var options = {
showTooltip: true,
showInfoWindow: true
};
var map = new google.visualization.Map(document.getElementById('chart_div'));
map.draw(data, options);
};
</script>
`
The text was updated successfully, but these errors were encountered:
The first example at https://developers.google.com/chart/interactive/docs/gallery/map works well because it has named locations (countries)
If you replace one location with an address, it won't work from a webserver. It works from a local file, but from a webserver it doesn't work.
Since it works with Lat-Long, should I convert each address to its Lat-Long equivalence?
How can I solve this?
Try:
`
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script> google.charts.load('upcoming', { 'packages': ['map'] }); google.charts.setOnLoadCallback(drawMap);};
`</script>
The text was updated successfully, but these errors were encountered: