Ticket #996: slideFactor.patch
| File slideFactor.patch, 1.1 kB (added by euzuro, 1 year ago) |
|---|
-
lib/OpenLayers/Control/PanZoom.js
old new 15 15 16 16 /** 17 17 * APIProperty: slideFactor 18 * {Float} 18 * {Integer} Number of pixels by which we'll pan the map in any direction 19 * on clicking the arrow buttons. 19 20 */ 20 21 slideFactor: 50, 21 22 … … 151 152 152 153 switch (this.action) { 153 154 case "panup": 154 this.map.pan(0, - 50);155 this.map.pan(0, -this.slideFactor); 155 156 break; 156 157 case "pandown": 157 this.map.pan(0, 50);158 this.map.pan(0, this.slideFactor); 158 159 break; 159 160 case "panleft": 160 this.map.pan(- 50, 0);161 this.map.pan(-this.slideFactor, 0); 161 162 break; 162 163 case "panright": 163 this.map.pan( 50, 0);164 this.map.pan(this.slideFactor, 0); 164 165 break; 165 166 case "zoomin": 166 167 this.map.zoomIn();
