1
votes

How can I add a route to a UI5 geomap using js? I didn't find anything in the samples or the documentation.

Has it something to do with the method addGeoJsonLayer()?

Thanks in advance for your help :)

2

2 Answers

0
votes

I found a way to do it. You have to create a VO Object as it is outlined here: https://sapui5.hana.ondemand.com/test-resources/sap/ui/vbm/bestpractices.html

then add it using addVo() like it is outlined here https://sapui5.hana.ondemand.com/docs/api/symbols/sap.ui.vbm.GeoMap.html#addVo

-1
votes

Example:

var oRouteCollection = new sap.ui.vbm.Routes

next

oGeoMap.addVo(oRouteCollection);

Source: Sygyzmundovych My walk during QCon London 2018