Skip to Content

How to set invisible/visible spot on sap geo map application?

Hi All,

I am working on one custom sapui5 application development. In my application i have master and detail scenario.

in my master screen i have a multi combo box. In Detail Section i have Map Display, i am using sapui5 vbm Geo map control.

Based on the selection in the master screen,multi combo box. i need to display the spots on the map display.

I need to display the spots for the selected multi combo box items alone.

Example: In my multi combo box i have a Country List. (India,Australia,etc). So if i select India i should display Indian Cities alone in the Geo map. If i select Australia it should shoe Australian cities. if i select both it should display both.

I have Data in Json Model. with latitude and Longitude.

The Problem is, if i select both India and Australia on the Combo box, i can see both country cities on the map, If i de select Australia, the corresponding spots should be deselected, but it is not getting removed.

So How to remove the Spots.

<!--for India-->
<vbm:Spots id="id_spots_in" posChangeable="true" scaleChangeable="false" items="{GeoServerIndiaModel>/GeoServerIndiaCollection}">
     <vbm:items>
	      <vbm:Spot id="id_spot_in" image="India" position="{GeoServerIndiaModel>LONGITUDE};{GeoServerIndiaModel>LATITUDE}"></vbm:Spot>
     </vbm:items>
</vbm:Spots>
<!--for Australia-->
<vbm:Spots id="id_spots_as" posChangeable="true" scaleChangeable="false" items="{GeoServerAusModel>/GeoServerAusCollection}">
	<vbm:items>
		<vbm:Spot id="id_spot_as" image="TurnOut" position="{GeoServerAusModel>LONGITUDE};{GeoServerAusModel>LATITUDE}"></vbm:Spot>
	</vbm:items>
</vbm:Spots>

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.