Move constants from ol.has to ol

This commit is contained in:
tsauerwein
2014-11-24 09:42:10 +01:00
parent 3ed46c50cc
commit e307579d49
4 changed files with 22 additions and 23 deletions

View File

@@ -122,24 +122,6 @@ ol.has.MSPOINTER = !!(goog.global.navigator.msPointerEnabled);
ol.has.WEBGL;
/**
* The maximum supported WebGL texture size in pixels. If WebGL is not
* supported, the value is set to `undefined`.
* @const
* @type {number|undefined}
* @api
*/
ol.has.WEBGL_MAX_TEXTURE_SIZE;
/**
* List of supported WebGL extensions.
* @const
* @type {Array.<string>}
*/
ol.has.WEBGL_EXTENSIONS;
(function() {
if (ol.ENABLE_WEBGL) {
var hasWebGL = false;
@@ -162,7 +144,7 @@ ol.has.WEBGL_EXTENSIONS;
} catch (e) {}
}
ol.has.WEBGL = hasWebGL;
ol.has.WEBGL_MAX_TEXTURE_SIZE = textureSize;
ol.has.WEBGL_EXTENSIONS = extensions;
ol.WEBGL_EXTENSIONS = extensions;
ol.WEBGL_MAX_TEXTURE_SIZE = textureSize;
}
})();