google map api key

Display Google Maps places from a database table.

Overview

The issue occurs because the data source format is incorrect for the map widget.
Ensure your data is formatted as a multidimensional array using Google Place IDs, not just place names. The Place ID allows Google to retrieve the correct coordinates automatically.

Answered
ChronoForms v6
we webcrea 20 Mar, 2019
Hi,

I have this error message in the console when i try to use google map

InvalidValueError: not an instance of HTMLInputElement

and

This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console: https://console.developers.google.com/apis/api/places_backend?project=_ For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key js:61:110

But hte key is ok and works in another component

Thanks

google map api key image 1
he healyhatman 20 Mar, 2019
Answer
1 Likes
You need the Places API activated, not the Maps API. If in fact it's actually the Autocomplete Address plugin you're using and not a MAP.
we webcrea 21 Mar, 2019
Hi,

Now, to use google map, i have a table with places

How can i do to display places on the map

in widget, i indicated :

Place provider : {var:read_data3}

The map appears but not the places ...

Thanks
he healyhatman 21 Mar, 2019
The data source for it needs to be a multidimensional array of the form
array (
array("id" => the Place ID of the location, "content" => what you want shown when the user clicks the pin)
)
we webcrea 21 Mar, 2019
Sorry i don't understand, how google knows the coordonates ?
he healyhatman 21 Mar, 2019
It knows them by the place ID. https://developers.google.com/places/place-id
This topic is locked and no more replies can be posted.