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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

What is the correct syntax for specifying multiple parameters in the url for a FileResource in a client side widget?

cdsouza
5-Regular Member

What is the correct syntax for specifying multiple parameters in the url for a FileResource in a client side widget?

I get the above error when trying to add the drawing library to a modified GoogleExtensions widget:

<FileResource type="JS" url="https://maps.googleapis.com/maps/api/js?key=MY_KEY&libraries=drawing" description="" isDevelopment="false" isRuntime="true" />

I've also tried:

<FileResource type="JS" url="https://maps.googleapis.com/maps/api/js?key=MY_KEY&libraries=drawing" description="" isDevelopment="false" isRuntime="true" />

In this case, the extension gets imported fine, but then it the drawing library is not really loaded.

Thanks!

Cletus

1 ACCEPTED SOLUTION

Accepted Solutions
cdsouza
5-Regular Member
(To:cdsouza)

Problem solved...  URL needs to be

<FileResource type="JS" url="https://maps.googleapis.com/maps/api/js?key=MY_KEY&amp;amp;libraries=drawing" description="" isDevelopment="false" isRuntime="true" />

Thanks!

Cletus

View solution in original post

1 REPLY 1
cdsouza
5-Regular Member
(To:cdsouza)

Problem solved...  URL needs to be

<FileResource type="JS" url="https://maps.googleapis.com/maps/api/js?key=MY_KEY&amp;amp;libraries=drawing" description="" isDevelopment="false" isRuntime="true" />

Thanks!

Cletus

Top Tags