openui5-googlemaps icon indicating copy to clipboard operation
openui5-googlemaps copied to clipboard

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

Open fableh opened this issue 6 years ago • 3 comments

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

fableh avatar Sep 05 '17 10:09 fableh

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

connecttobn avatar Oct 23 '17 11:10 connecttobn

Issue Resolved with above statement ?

gsmusic1993 avatar May 11 '20 13:05 gsmusic1993

Issue Resolved with above statement ?

That's a good question

axelmz avatar Dec 07 '21 19:12 axelmz