Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hi all,
I am having difficult for show the google maps in my mashup.
Happen the following error: "Oops! Something went wrong. This page didn't load Google Maps correctly. See the JavaScript console for technical details."
I even created my API Key and paste in my "Required string to connect with Google for Google widgets" but this did not work.
Thanks,
Leonardo
Solved! Go to Solution.
Are you using the 3.0.3 version of the Google Map widget:
https://marketplace.ptc.com/apps/218633/google-maps-widget-303#!overview
Alternatively, you can try the Open Street Map widget which does not require an API key:
https://marketplace.ptc.com/apps/193952/openstreetmap-extension#!overview
Your post should be under the thingworx product category instead of "community feedback" where questions about the forums are. I'll move this one there.
You need to enter a full URL, not just your API key. If your API key is: ABC123ume, you would need to enter
https://maps.googleapis.com/maps/api/js?key=ABC123ume
There are step-by-step instructions here:
Thank you for your answer!
I followed the guide that you have sent me (https://developer.thingworx.com/en/resources/guides/google-map-widget-how/configure-google-maps-widget-extension) but the problem to be continued.
Below my configuration:
In my mashup the Google Maps get the same wrong:
I saw in other topics that there are configuration in file metadata.xml to do, however this is to older version of ThingWorx Foundation (8.3.4).
Alternatively, you may try using a Webframe widget in the mash up and set the URL of the widget to the google maps with your embedded api key. For example 'https://www.google.com/maps/embed/v1/place?key={your api key}&q=40.05706,-75.670788'. Please refer Google maps API documentation as you may render different kinds of maps such as a Route, location search etc based on the URL you pass.
Are you using the 3.0.3 version of the Google Map widget:
https://marketplace.ptc.com/apps/218633/google-maps-widget-303#!overview
Alternatively, you can try the Open Street Map widget which does not require an API key:
https://marketplace.ptc.com/apps/193952/openstreetmap-extension#!overview
I followed your orientation and I have used the Open Street Map.
Thank you for help me.
Regards.
Leoanardo