var keyMap = new Ext.util.KeyMap( { target: "<mapDiv>_zoom_slider" ,binding: [ { key: [187,61] // Shift-'+' ,shift: true ,ctrl: false ,alt: false ,scope: this.map ,fn: function(key, evt){ evt.stopEvent(); this.setLevel(this.getLevel() + 1); } } ,{ key: [107,43] // Numeric keypad '+' ,shift: false ,ctrl: false ,alt: false ,scope: this.map ,fn: function(key, evt){ evt.stopEvent(); this.setLevel(this.getLevel() + 1); } } ,{ key: [189,173,109,45] // '-' (incl. Numeric keypad ,shift: false ,ctrl: false ,alt: false ,scope: this.map ,fn: function(key, evt){ evt.stopEvent(); this.setLevel(this.getLevel() - 1); } } ,{ key: [98, 40] // down arrow, incl. Numeric keypad ,shift: false ,ctrl: false ,alt: false ,scope: this.map ,fn: function(key, evt){ evt.stopEvent(); this._fixedPan(0, this.height * 0.0135); } } ,{ key: [100, 37] // left arrow, incl. Numeric keypad ,shift: false ,ctrl: false ,alt: false ,scope: this.map ,fn: function(key, evt){ evt.stopEvent(); this._fixedPan(this.width * -0.0135, 0); } } ,{ key: [102, 39] // right arrow, incl. Numeric keypad ,shift: false ,ctrl: false ,alt: false ,scope: this.map ,fn: function(key, evt){ evt.stopEvent(); this._fixedPan(this.width * 0.0135, 0); } } ,{ key: [104, 38] // up arrow, incl. Numeric keypad ,shift: false ,ctrl: false ,alt: false ,scope: this.map ,fn: function(key, evt){ evt.stopEvent(); this._fixedPan(0, this.height * -0.0135) } } ] } );
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.