cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,

I am working on SAPUI5 Custom Application Development. As per my application scenario i need to integrate Google Map with SAPUI5 Geo Map. When i look for some examples , i mostly see example with HERE Maps. I tried with HERE Maps with App id and App Key , it works fine.

By referring the below post, i tried with Google Map.

var oMapConfig = {
        "MapProvider": [{
            "name": "GMAP",
            "Source": [{
            "id": "s1",
            "url": "https://mt.google.com/vt/x={X}&y={Y}&z={LOD}"
            }]
        }],
        "MapLayerStacks": [{
                "name": "DEFAULT",
                "MapLayer": {
                        "name": "layer1",
                        "refMapProvider": "GMAP",
                        "opacity": "1",
                        "colBkgnd": "RGB(255,255,255)"
                }
        }]
    };

But I did not use any API Key for this Google Map API. But i got an Output, i am able to see the map on the Geo Map Container. Is it a right way of doing it? Does it not required any API Key? Please help me on this.

Thank you,

Regards,

JK.

0 Likes
View Entire Topic
nabheetscn
SAP Champion
SAP Champion
0 Likes

Let me provide you bit more detail and then you can incorporate. What you are using in Google Map Tiles, read the details here and modify the URL which can include the API key also, for more details read this also.

On a side note there are so many blogs written related to maps in SAPUI5 any reason for using this specific way!

Thanks

Nabheet

Jayakrishnan
Active Participant

Thank you Nabheet for your help.