There are two things that needs to be correct:
In Google Cloud Platform for Google Maps, you can verify if your api key is configured in a right way with the ‘Address Selection Solution’.
With this flow you can lookup an address, configure the plugin as you want (for example; the autocomplete functionality also needs the Places API).
If you finish the form with ‘Export starter code’ you will get an popup that shows if your key is correctly configured
Hi Marlin, I have the same problem right now. same error message.
My API key works and the GoogleMap is displayed, but no location marker is displayed when I use "Addresses".
However, if I use "latitude & longitude", the marker works.
Have you been able to solve the problem in the meantime?
I have the same issue however I am using MapBox:
Failed to retrieve a location for the provided address: CountryName
Cannot read properties of undefined (reading 'geometry') TypeError: Cannot read properties of undefined (reading 'geometry')
at http://localhost:8080/widgets/com/mendix/widget/custom/Maps/Maps.js?637...
at async http://localhost:8080/widgets/com/mendix/widget/custom/Maps/Maps.js?637...
at async Promise.all (index 0)
at async Za (http://localhost:8080/widgets/com/mendix/widget/custom/Maps/Maps.js?637...)
Have also tried Geocoding with my API Token through a https call and works fine. As advised by Marc the Lat and Lon markers work fine.