Merge pull request #3549 from fredj/keyboard_pan_duration
Move ol.*_DURATION const to a constructor option
This commit is contained in:
36
src/ol/ol.js
36
src/ol/ol.js
@@ -48,24 +48,6 @@ ol.DEFAULT_TILE_SIZE = 256;
|
||||
ol.DEFAULT_WMS_VERSION = '1.3.0';
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} Drag-rotate-zoom animation duration.
|
||||
*/
|
||||
ol.DRAGROTATEANDZOOM_ANIMATION_DURATION = 400;
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} Drag-rotate animation duration.
|
||||
*/
|
||||
ol.DRAGROTATE_ANIMATION_DURATION = 250;
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} Drag-zoom animation duration.
|
||||
*/
|
||||
ol.DRAGZOOM_ANIMATION_DURATION = 200;
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} Hysteresis pixels.
|
||||
*/
|
||||
@@ -162,12 +144,6 @@ ol.IS_LEGACY_IE = goog.userAgent.IE &&
|
||||
!goog.userAgent.isVersionOrHigher('9.0') && goog.userAgent.VERSION !== '';
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} Keyboard pan duration.
|
||||
*/
|
||||
ol.KEYBOARD_PAN_DURATION = 100;
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} The maximum size in pixels of atlas images. Default is
|
||||
* `-1`, meaning it is not used (and `ol.WEBGL_MAX_TEXTURE_SIZE` is
|
||||
@@ -202,12 +178,6 @@ ol.OVERVIEWMAP_MAX_RATIO = 0.75;
|
||||
ol.OVERVIEWMAP_MIN_RATIO = 0.1;
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} Rotate animation duration.
|
||||
*/
|
||||
ol.ROTATE_ANIMATION_DURATION = 250;
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} Tolerance for geometry simplification in device pixels.
|
||||
*/
|
||||
@@ -237,12 +207,6 @@ ol.WEBGL_MAX_TEXTURE_SIZE; // value is set in `ol.has`
|
||||
ol.WEBGL_EXTENSIONS; // value is set in `ol.has`
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} Zoom slider animation duration.
|
||||
*/
|
||||
ol.ZOOMSLIDER_ANIMATION_DURATION = 200;
|
||||
|
||||
|
||||
/**
|
||||
* Inherit the prototype methods from one constructor into another.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user