Skip to main content
1-Visitor
August 28, 2018
Solved

Google Maps Widget Unable to import after adding API Key

  • August 28, 2018
  • 8 replies
  • 3590 views

Hi,

 

I have added API key to Google Map Widget following below article.

https://www.ptc.com/en/support/article?n=CS188314. 

After modification, the import is not successful

 

Getting import error: "Source '\ThingworxStorage\extensions\GoogleWidgets_ExtensionPackage\ui\googlemap' does not exist"

 

 

 

Google Maps Widget Unable to import after adding API Key

Best answer by slangley

Hi @plaban.

 

For the sake of others on the Community, the solution to this problem was as follows:

 

1) Download the Google Mail extension

2) Update the metadata.xml file per the instructions in this article

3) If the extension was previously imported, modify the packageVersion per the article instructions

4) Import the extension

 

This article may also help with troubleshooting import issues.

 

Regards.

 

--Sharon

 

If my response has answered your question, please mark as Accepted Solution, for the benefit of others who may have the same question.

8 replies

Support
August 28, 2018

Hi @plaban.

 

Had you already imported the Google Widgets extension package prior to making your updates to metadata.xml?

 

Please forward the metadata.xml file in a private message so I can review the contents.

 

Regards.

 

--Sharon

plaban1-VisitorAuthor
1-Visitor
August 28, 2018

Hi Sharon,

I have imported google maps extension before making changes.

 

Please let me know which email id to send the metadata.xml

Support
August 28, 2018

Hi @plaban.

 

If you click the link to my login (slangley) in this post, it should give you an option to send a private communication.

 

Please let me know also which version of ThingWorx you are running and which version of the extension you imported.

 

Regards.

 

--Sharon

5-Regular Member
August 29, 2018

Hi,

I'm able to reproduce the same error when the directory structure of the importing zip file is incorrect.

Below is the correct directory structure and location of files, so you might want to compare the structure of your importing zip file with the original one.

 

TW_DOWNLOAD_GOOGLE MAPS WIDGET.zip
│ metadata.xml
│
└─ui
 ├─googlelocation
 │ │ googlelocation.ide.css
 │ │ googlelocation.ide.js
 │ │ googlelocation.runtime.css
 │ │ googlelocation.runtime.js
 │ │ location.ide.png
 │ │
 │ └─images
 │ helper.png
 │
 └─googlemap
 │ bg-googlemap.jpg
 │ googlemap.ide.css
 │ googlemap.ide.js
 │ googlemap.ide.png
 │ googlemap.runtime.css
 │ googlemap.runtime.js
 │ markerclusterer.js
 │
 └─images
 m1.png
 m2.png
 m3.png
 m4.png
 m5.png