Hello folks,
I´m new to silverstripe and I can´t find a way to make google maps run in my Page Template. I tried the jquery code found on this site: http://marcgrabanski.com/article/jquery-google-maps-tutorial-basics
The code runs perfect in a single html file I created for testing. But in silverstripe FireFox reports an JS error like this:
Error: google.maps is undefined
It seems like the source for googlemaps is not visible to my site. Actually I´m not sure where to place the link to the google js. I always placed my js files that i need in the whole application in Page.php like this:
Requirements::javascript("http://www.google.com/jsapi?key=KEYHERE");
That worked for all the other files, but fails for google. Is there a special way to include external js files?
Thanks very much for your help,
Florian