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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Google Maps not loading correctly (API Key added) ThingWorx 7.2

kpashov
7-Bedrock

Google Maps not loading correctly (API Key added) ThingWorx 7.2

Hello,

I have been getting this error despite me adding the Google Maps API key under ThingWorx 7.2. I have added the Google Maps API key into the extension metadata and updated it. I can see that the value has changed under .../tomcat/webaps/thingworx/Runtime/index.html. The new API key is there. I have also tried calling the url from curl- it also works.


<FileResource type="JS" url="https://maps.google.com/maps/api/js?key=<apikey>;sensor=false" description="" isDevelopment="false" isRuntime="true" />

I am NOT seeing any calls to google Maps with my API key.

This page didn't load Google Maps correctly. See the JavaScript console for technical details.

ACCEPTED SOLUTION

Accepted Solutions
kpashov
7-Bedrock
(To:kpashov)

I solved the problem by changing:

<FileResource type="JS" url="https://maps.google.com/maps/api/js?key=<apikey>;sensor=false" description="" isDevelopment="false" isRuntime="true" />


to


<FileResource type="JS" url="https://maps.google.com/maps/api/js?key=<apikey>" description="" isDevelopment="false" isRuntime="true" />

The sensor=false part needs to be removed to make the maps function.

View solution in original post

1 REPLY 1
kpashov
7-Bedrock
(To:kpashov)

I solved the problem by changing:

<FileResource type="JS" url="https://maps.google.com/maps/api/js?key=<apikey>;sensor=false" description="" isDevelopment="false" isRuntime="true" />


to


<FileResource type="JS" url="https://maps.google.com/maps/api/js?key=<apikey>" description="" isDevelopment="false" isRuntime="true" />

The sensor=false part needs to be removed to make the maps function.

Announcements


Top Tags