jasper07 / openui5-googlemaps

Openui5 Googlemaps library
MIT License
65 stars 43 forks source link

failed to load 'google.maps.js' from ../../resources/google.maps.js #28

Open fableh opened 7 years ago

fableh commented 7 years ago

Hi John,

i started today to play arround with your library. In my "component.js" i´ve defined the following:

var theRootPath = jQuery.sap.getModulePath("CityMap"); sap.ui.getCore().loadLibrary("openui5.googlemaps", [theRootPath,"openui5/googlemaps/"].join("/"));

In the "index.html" i´ve defined this:

data-sap-ui-resourceroots='{"CityMap": "./", "openui5": "./openui5"}'>

But i got the following error:

Uncaught Error: failed to load 'openui5/googlemaps/Map.js' from ../../openui5/googlemaps/Map.js: Error: failed to load 'google.maps.js' from ../../resources/google.maps.js: 404 - Not Found

The "Maps.js" is available via: ....hana.ondemand.com/openui5/googlemaps/Map.js?eval

What iam doing wrong here?

thx nd br, fabian

p.s. my project structure is this one: image

connecttobn commented 7 years ago

sap.ui.getCore().loadLibrary("openui5.googlemaps", "../openui5/googlemaps/");

gsmusic1993 commented 4 years ago

Issue Resolved with above statement ?

axelmz commented 2 years ago

Issue Resolved with above statement ?

That's a good question