cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

ThingWorx 8.4 - Google Maps Don't Display

leinsfeld
9-Granite

ThingWorx 8.4 - Google Maps Don't Display

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

ACCEPTED SOLUTION

Accepted Solutions

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

 

 

View solution in original post

6 REPLIES 6
StephenW
23-Emerald II
(To:leinsfeld)

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:

https://developer.thingworx.com/en/resources/guides/google-map-widget-how/configure-google-maps-widget-extension

 

 

Hi @Rick-Stanley 

 

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:

 

Error.JPG

 

In my mashup the Google Maps get the same wrong:

 

Capturar.JPG

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

 

 

Hi @Rick-Stanley

 

I followed your orientation and I have used the Open Street Map.

 

Thank you for help me.

 

Regards.

Leoanardo

Announcements

Top Tags