I'm in the NG-Client. I have put a Google chart-component onto a form and set the type to GeoChart. The map draws, but I get no markers.
In the console, I get warnings like:
- Code: Select all
Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
Google Maps JavaScript API warning: InvalidKey https://developers.google.com/maps/documentation/javascript/error-messages#invalid-key
Geocoding Service: You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account
I have tried adding my API key as
key and apiKey in the options array, but so far I have had no luck.
- Code: Select all
var options = {
region: '150',
displayMode: 'markers',
colorAxis: {colors: ['green', 'blue']},
apiKey: '<myKeyhere>',
key: '<myKeyhere>'
};
elements.people_map.drawChart('GeoChart', data, options);
Any ideas?