Skip to main content
12-Amethyst
January 21, 2016
Solved

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

  • January 21, 2016
  • 1 reply
  • 1191 views

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

Best answer by 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

1 reply

cdsouza12-AmethystAuthorAnswer
12-Amethyst
January 21, 2016

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