cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 GeoMap SelectionHandler not working

parconcb
Explorer
0 Kudos

Hi,

with SAPUI5 Libary 1.44 the Selection Handler of the SAP GeoMap was working good.

With Lasso & Rectangle Selection the Selection Handler defined with the following code was triggered.

new sap.ui.vbm.Spots( "spots", {
select: onSelectSpot,
deselect: onDeselectSpot,

With the most current version Lasso & Rectangle Selection the Selection Handler does not work any more.


Is it a bug or a changed behavior?

Thanks for help

Christian

Jayakrishnan
Active Participant
0 Kudos

Hi Guys, Did you identify the solution for the issue? I am also working on same scenario. Lasso and Rectangular selection is not working.

Jayakrishnan
Active Participant
0 Kudos

Add the select event for geomap control, not for spot. It should wotk.

see the below code for reference:

vbm:GeoMap id="VBISelection" select="onSelectMap" width="100%" xmlns:l="sap.ui.layout" height="100%">
<vbm:vos>
	<vbm:Spots click="onClickItem" posChangeable="true" scaleChangeable="true" contextMenu="onContextMenuItem" items="{/Spots}">
	<vbm:items>
		<vbm:Spot id="Spot" type="{type}" select="{select}" selectColor="RHLSA(0;1.3;5.0;1.9)" position="{pos}" click="onClickSpot"
										contextMenu="onContextMenuSpot">
</vbm:Spot>
			</vbm:items>
			</vbm:Spots>
						</vbm:vos>
					</vbm:GeoMap>


Accepted Solutions (0)

Answers (2)

Answers (2)

Sebastian81
Explorer
0 Kudos

Same here. May there any problem with firing the select event on the map if you select more than one VO at the same time with the lasso tool?

parconcb
Explorer
0 Kudos

I think it can also be reproduced by pressing alt+r for rectangle selection here

https://sapui5.hana.ondemand.com/test-resources/sap/ui/vbm/demosamples/apppreview.html#/selection

spots get selected but not in the list

in the older version this works fine

https://sapui5.hana.ondemand.com/1.44.7/test-resources/sap/ui/vbm/demosamples/apppreview.html#/selec...