Hi all,
How do I disable map navigation in web app builder? I just want users to use + or - or home.
Thanks,
Alex
Solved! Go to Solution.
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();
......
Alex,
So you want to disable mouse and keyboard navigation?
yes. and disable mouse navigation
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();
......
Thanks Robert.