Skip to Content
0
Jun 23, 2015 at 08:54 AM

Asynchronous load of google maps library

32 Views

Hi,

I am trying to convert a DS 1.4 SDK component to DS1.5. The component uses the google maps API.

Unfortunately I am getting an “undefined is not a function” error pointing on the first google API function in my component.js.

I tried the DS 1.5 sample google map SDK component with the same result.

My next step was enabling asynchronous load of the google maps API by adding ‘&callback=init’. In the JSINCLUDE Tag of the contribution.XML of the google maps sample project.

This works fine in Design Studio Designer, InternetExplorer and Firefox!

But it doesn’t work for chrome. Error message is:

“zen:1 Uncaught TypeError: window.init is not a function”

Is there a proper way to handle asynchronous load of google maps API into DS 1.5 SDK components?

Thanx,

Tobias