Skip to Content

How to set the items for sap.ui.vbm.GeoMap Route from Collection?

Hi All,

I am working on a Custom Requirement,where i need to draw the route between the locations. When i hard coded the values, i able to see the route.

But if i load via collection, it does not appear on the screen. Please help me to solve this issue.

Working Code Snippet:

<vbm:vos>
   <vbm:Routes id="id_route" items="{GeoServerBridgeModel>/GeoServerCollection}">
         <vbm:Route position="8.02078706;49.39934969;0;8.02092483;49.39925978;0;8.0210626;49.39934969;0;8.02092483;49.39943961;0;8.02078706;49.39934969;0;" tooltip=" Long Route" labelText=" Frankfurt to Hamburg" end="0" start="1" color="rgba(92,186,230,1.0)" colorBorder="rgb(255,255,255)" hotDeltaColor=" RHLSA(0,1,1,0.6)" click=" onClickRoute" contextMenu="onContextMte"/>
   </vbm:Routes>
</vbm:vos>

Not Working via Items:

<vbm:vos>
	<vbm:Routes id="id_route" items="{GeoServerBridgeModel>/GeoServerCollection}">
		<vbm:items>
													<vbm:Route position="{GeoServerBridgeModel>LONGITUDE};{GeoServerBridgeModel>LATITUDE};0;" tooltip="Long Route" labelText=" Frankfurt to Hamburg" end="0" start="1" color="rgba(92,186,230,1.0)" colorBorder="rgb(255,255,255)" hotDeltaColor="RHLSA(0,1,1,0.6)" click="onClickRoute" contextMenu="onContextMenuRoute"/>
		</vbm:items>
	</vbm:Routes>
</vbm:vos>

Thank you,

Regards,

JK.

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.