sapui5bootstrappingsap-fioriweb-ide

How to use a library on SAPWebIDE


i am trying to use the openui5-googlemaps library, but the WebIDE looks at a different path than my SAP-System then the app is deployed.

libs: ["sap.m", "sap.ui.layout", "sap.ushell", "openui5.googlemaps"],

my SAP-System looks at path resources/openui5/googlemaps.
However this does not work in the WebIDE.
Any ideas why and how i can fix it?

Thanks


Solution

  • Either change the path, or load via your index.

    API With Example

    In Index

    ~ update may 2017 ~ You can now use the manifest to add libraries:

    "resources": {
        "css": [
            {
                "uri": "css/style.css"
            },
            {
                "uri": "css/croppie.css"
            }
        ],
        "js": [
            {
                "uri": "library/croppie.min.js"
            }
        ]