cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Zoom and Scroll

nicholas_arent
Explorer
0 Kudos

Hi,

Using the Analytics Map control, is it possible to disable user zoom and user scrolling left/right/up/down?

Regards,

Nick

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nick,

you can do this by modifying the initial application.

1.) Get the original application json file, e.g. from the network log "analyticmap.json".

2.) Modify the scene settings:

...

"SceneGeo": {


     "id": "MainScene",


     "navControlVisible":"false",


     "NavigationDisablement" :


     {


          "pitch" :"true",


          "yaw": "true",


          "move":"true",


          "zoom":"true"

     }

...,

3.) Change the application location to your modified location before creating the control

     jQuery.sap.require( "sap.ui.vbm.AnalyticMap");

     sap.ui.vbm.AnalyticMap.ApplicationURL = "my/analyticmap.json";

Uli

nicholas_arent
Explorer
0 Kudos

Hi Uli,

Thank you for your response, this worked.

Best Regards,

Nick

Answers (0)