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

Google Maps Widget Unable to import after adding API Key

SOLVED
Regular Member

Google Maps Widget Unable to import after adding API Key

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Google Maps Widget Unable to import after adding API Key

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 8

Re: Google Maps Widget Unable to import after adding API Key

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

Re: Google Maps Widget Unable to import after adding API Key

Hi Sharon,

I have imported google maps extension before making changes.

 

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

Re: Google Maps Widget Unable to import after adding API Key

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

Re: Google Maps Widget Unable to import after adding API Key

I am running TW 6.6 and widget version 3.0.1.

 

Thanks,

Plaban

Re: Google Maps Widget Unable to import after adding API Key

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

Highlighted

Re: Google Maps Widget Unable to import after adding API Key

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

Re: Google Maps Widget Unable to import after adding API Key

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

 

Re: Google Maps Widget Unable to import after adding API Key

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.