Disable map navigation web app builder

903
4
Jump to solution
06-15-2017 02:00 PM
by Anonymous User
Not applicable

Hi all,

How do I disable map navigation in web app builder? I just want users to use + or - or home.

Thanks,

Alex

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Alex,

   In the jimu.js/MapManager.js find the _show2DWebMap function (add line 6):

      _show2DWebMap: function(appConfig) {
......
        mapDeferred.then(lang.hitch(this, function(response) {
......
          map._initialExtent = map.extent;
          map.disableMapNavigation();
......

View solution in original post

4 Replies
RobertScheitlin__GISP
MVP Emeritus

Alex,

 So you want to disable mouse and keyboard navigation?

0 Kudos
by Anonymous User
Not applicable

yes. and disable mouse navigation

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Alex,

   In the jimu.js/MapManager.js find the _show2DWebMap function (add line 6):

      _show2DWebMap: function(appConfig) {
......
        mapDeferred.then(lang.hitch(this, function(response) {
......
          map._initialExtent = map.extent;
          map.disableMapNavigation();
......
by Anonymous User
Not applicable

Thanks Robert.

0 Kudos