Defines in ol namespace defined in ol.js

This commit is contained in:
Tim Schaub
2014-04-30 08:45:02 -06:00
parent cec41c4b0a
commit e4e3b2229a
10 changed files with 50 additions and 42 deletions
+42
View File
@@ -9,6 +9,36 @@ goog.provide('ol');
ol.ASSUME_TOUCH = false;
/**
* @define {boolean} Replace unused entries with NaNs.
*/
ol.BUFFER_REPLACE_UNUSED_ENTRIES_WITH_NANS = goog.DEBUG;
/**
* @define {number} Default maximum zoom for default tile grids.
*/
ol.DEFAULT_MAX_ZOOM = 42;
/**
* @define {number} Default high water mark.
*/
ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK = 2048;
/**
* @define {number} Default tile size.
*/
ol.DEFAULT_TILE_SIZE = 256;
/**
* @define {number} Hysterisis pixels.
*/
ol.DRAG_BOX_HYSTERESIS_PIXELS = 8;
/**
* @define {boolean} Whether to enable canvas.
*/
@@ -27,6 +57,12 @@ ol.ENABLE_DOM = true;
ol.ENABLE_IMAGE = true;
/**
* @define {boolean} Enable Proj4js.
*/
ol.ENABLE_PROJ4JS = true;
/**
* @define {boolean} Whether to enable rendering of tile layers.
*/
@@ -68,6 +104,12 @@ ol.IS_LEGACY_IE = goog.userAgent.IE &&
!goog.userAgent.isVersionOrHigher('9.0') && goog.userAgent.VERSION !== '';
/**
* @define {number} Texture cache high water mark.
*/
ol.WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK = 1024;
/**
* ol.inherits is an alias to the goog.inherits function. It is exported
* for use in non-compiled application code.