Skip to Content
2

GeoMap not programmatically zoomable when setting disableZoom="true"

Jun 07, 2017 at 12:52 PM

84

avatar image
Former Member

Hi,

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!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers