jasper07 / openui5-googlemaps

Openui5 Googlemaps library
MIT License
65 stars 43 forks source link

google maps api key? #9

Closed js1972 closed 8 years ago

js1972 commented 9 years ago

Where and when do you set the api key. According to the google maps javascript api you need to supply an API key in the script download but your sample don't seem to do this even though the ScriptUtil object does have the capability to set an API key..?

jasper07 commented 8 years ago

sorry for late response, sample app2 has an example of using a key

openui5.googlemaps.ScriptsUtil.setApiKey('AIzaSyDY0kkJiTPVd2U7aTOAwhc9ySH6oHxOIYM');

i think this feature a long with many others needs documenting

emdac commented 8 years ago

Hello

I am starting to use the library. As the app2 example, I put the following code in the component.js file

sap.ui.getCore().loadLibrary("openui5.googlemaps", "./openui5/googlemaps/"); openui5.googlemaps.ScriptsUtil.setApiKey('AIzaSyDY0kkJiTPVd2U7aTOAwhc9ySH6oHxOIYM');

But the following error occurs openui5 is not defined

Any clue ?

best regards

Emmanuel

jasper07 commented 8 years ago

Hi Emmanuel

Have you declared openui5 resource root see the index.html of said app

jsp