Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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
Solved! Go to Solution.
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.
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
Hi Sharon,
I have imported google maps extension before making changes.
Please let me know which email id to send the metadata.xml
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
I am running TW 6.6 and widget version 3.0.1.
Thanks,
Plaban
Hi @plaban.
I tested with the changes you made and was able to successfully import the updated extension.
- Did you make your modifications to the file that needs to be reimported?
- Can you validate that the .zip contains your updated version of metadata.xml?
Regards.
--Sharon
Hi Sharon,
I have changed the files and verified the zip. It contains the file.
Can you please share the file you have updated over email?
Thanks,
Plaban
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.
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