Skip to content

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

Description

@fableh

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions