Hi,
Can you please let me know on how to hide navigation control in geomap in sap ui5?
Actually I tried below method in my controller in onAfterRendering: function()
var geomap = this.byId("vbi");
geomap.setNavcontrolVisible("false");
But I am getting below exception.
Uncaught TypeError: geomap.setNavcontrolVisible is not a function
Below are the sample code in my view file.
<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.suite.ui.commons" xmlns:ui="sap.suite.ui.commons" xmlns:vbm="sap.ui.vbm"
controllerName="dashboard6.Page" xmlns:html="http://www.w3.org/1999/xhtml">
<vbm:GeoMap id="vbi" width="100%" height="100%" Navcontrol="false" initialPosition="72.8258;18.9750;0" initialZoom="15" scaleVisible="false" render="render" zoom="zoom" submit="open" openWindow="open">
<vbm:vos>
<vbm:Spots spots="{/Spots}" >
<vbm:Spot position="{pos}" tooltip="{tooltip}" text="2" image="{pin}" />
</vbm:Spots>
<!-- <vbm:Spots spots="{/OtherSpots}" >
<vbm:Spot position="{pos}" tooltip="{tooltip}"/>
</vbm:Spots> -->
</vbm:vos>
</vbm:GeoMap>
Please let me know is there any property like this Navcontrol="false"
Regards,
Chandru.