Skip to Content
author's profile photo
Former Member

GeoMap not programmatically zoomable when setting disableZoom="true"


to avoid performance issues on our Citrix farm we have to disable all kinds of user interactions with the map. We do this by setting corresponding attributes in view xml like this:

<vbm:GeoMap id="GeoMap"
width="100%" height="270px" disableZoom="true"
disablePan="true" navcontrolVisible="false" />

The web application itself should nevertheless have the capability to set a different center location and modify zoom level. Unfortunately the setZoomlevel function isn't working (in contrast to setCenterPosition) after disabling zoom in xml.

var oGeoMap = this.getView().byId("GeoMap");
var sapMapCenter = latitude +";" + longitude;
oGeoMap.setCenterPosition(sapMapCenter); //works fine
oGeoMap.setZoomlevel(11); // does not affect the map

Any suggestions?

Thanks in advance!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers