jasper07 / openui5-googlemaps

Openui5 Googlemaps library
MIT License
65 stars 43 forks source link

app with library integrated could not be deployed to ABAP backend #30

Open nimble-123 opened 7 years ago

nimble-123 commented 7 years ago

hi john,

we tried to include your library to our project. We added the lib files to webapp/lib/openui5, defined the lib in manifest.json descriptor and added the xml namespace to the corresponding views.

screenshot at nov 08 15-40-22
"sap.ui5": {
        "resourceRoots":{
            "openui5": "lib/openui5"
        },
        "dependencies": {
            "minUI5Version": "1.44.18",
            "libs": {
                "sap.m": {},
                "sap.ui.core": {},
                "sap.ui.layout": {},
                "openui5.googlemaps": {}
            }
        },
<mvc:View
  xmlns="sap.m"
  xmlns:mvc="sap.ui.core.mvc"
  xmlns:semantic="sap.m.semantic"
  xmlns:html="http://www.w3.org/1999/xhtml"
  xmlns:footerbar="sap.ushell.ui.footerbar"
  xmlns:gmaps="openui5.googlemaps"
>

In WebIDE or local development everything works fine, map is displayed and we are able to interact with it. But when we try to deploy the app from webide to netweaver as abap backend system it raises following error message.

microsoftteams-image

So for me it seems that resourceRoot is the wrong section in app descriptor, because the launchpad tries to load the lib from the abap repository instead of the folder inside the deployed app.

Do we have to explicitly use sap.ui.getCore().loadLibrary("openui5.googlemaps", "../openui5/googlemaps/"); if we develop apps with your lib for the fiori launchpad?

any help would be nice :)

NbeGitHub commented 5 years ago

Hello,

Beautiful library. Thank you for sharing.

Unfortunately it is unusable because not deployable on a system. Same problem. Have you found a solution?