on 07-26-2016 8:33 PM
Hi all ;
I use sap.ui.vbm library to show map and directions but it is not working now , I looked sapui5 vbm examples on web but all of them have same error screen. I think , it is common problem.
You can see the geomap example screen of sapui5 with this link ;
What can I do to fix this error. If I buy an apikey from MapQuest , how can I use it in my code ?
I create the map in my .xml file like this ;
<vbm:GeoMap id="vbi" width="500px" xmlns:l="sap.ui.layout" initialPosition="{/bCoord}"
height="500px" initialZoom="{/zoom}" openWindow="onOpenDetail" closeWindow="onCloseDetail">
<vbm:vos >
<vbm:Routes >
<vbm:Route
position="{/coord}" tooltip="Long Route" color="rgba(92,186,230,1.0)" colorBorder="rgb(255,255,255)"
hotDeltaColor="RHLSA(0,1,1,0.6)" />
</vbm:Routes>
</vbm:vos>
</vbm:GeoMap>
Hi,
You can pass in a MapProvider and use google maps/Bin maps in stead of MapQuest.
Change the MapProvider before the rendering of the GeoMap and you should be fine.
Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank for your reply Robin.
I tried but couldn't achieve
I tried write this code. Can you fix this code ?
var mapConf = new sap.ui.model.json.JSONModel(
{
"MapProvider":
[
{ "name": "GOOGLE",
"type": "",
"description": "",
"tileX": "256",
"tileY": "256",
"maxLOD": "19",
"copyright": "bla bla"
}
]
}
);
var map = this.getView().byId("vbi");
map.setMapConfiguration(mapConf);
Hello,
MapQuest error is coming because from sometime in July 2016(date don't remember) they have stopped direct access to their tiles which was used to construct the map.
Instead as suggested use the Google maps api or create a free account to mapquest and use the same.
Sample working code for google maps is attached.
BR.
When i encountered this scenario i moved to google maps due to time constraint.
In case you want to use mapquest only you can check the developer community
BR.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.