on 2019 May 14 2:23 PM
I am trying to use Google Maps (with API key) as map provider in sap.ui.vbm.GeoMap, but the maps are not being displayed. My API key is correct (checked with Google maps extension). This is how I am using it in mapconfig:
var oMap = new sap.ui.vbm.GeoMap();
var oMapConfig = {
“MapProvider”: [{
“Id”: “GM”,
“name”: “Google Maps”,
“minLOD”: “1”,
“maxLOD”: “19”,
“tileX”: “256”,
“tileY”: “256”,
“copyright”: “© Google Maps”,
“Source”: [{
“id”: “a”,
“url”: “https://maps.googleapis.com/maps/api/js?key=My_API_Key”
}]
}],
“MapLayerStacks”: [{
“name”: “Default”,
“MapLayer”: [{
“name”: “Default”,
“refMapProvider”: “Google Maps”,
“opacity”: “1.0",
“colBkgnd”: “RGB(255,255,255)”
}]
}]
};
oMap.setMapConfiguration(oMapConfig);
oMap.setRefMapLayerStack("Default");
Can someone help me with this, what I might be doing wrong or need to change? When I use Open Street Map in the same way, it works fine but not with Google Maps
Request clarification before answering.
User | Count |
---|---|
75 | |
30 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.