Move ol.ENABLE_[CANVAS|DOM|WEBGL] @define's to browserfeature.js
This commit is contained in:
@@ -11,6 +11,24 @@ goog.require('ol.webgl');
|
|||||||
ol.ASSUME_TOUCH = false;
|
ol.ASSUME_TOUCH = false;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @define {boolean} Whether to enable canvas.
|
||||||
|
*/
|
||||||
|
ol.ENABLE_CANVAS = true;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @define {boolean} Whether to enable DOM.
|
||||||
|
*/
|
||||||
|
ol.ENABLE_DOM = true;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @define {boolean} Whether to enable WebGL.
|
||||||
|
*/
|
||||||
|
ol.ENABLE_WEBGL = true;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ratio between physical pixels and device-independent pixels
|
* The ratio between physical pixels and device-independent pixels
|
||||||
* (dips) on the device (`window.devicePixelRatio`).
|
* (dips) on the device (`window.devicePixelRatio`).
|
||||||
|
|||||||
@@ -68,24 +68,6 @@ goog.require('ol.structs.PriorityQueue');
|
|||||||
goog.require('ol.vec.Mat4');
|
goog.require('ol.vec.Mat4');
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @define {boolean} Whether to enable canvas.
|
|
||||||
*/
|
|
||||||
ol.ENABLE_CANVAS = true;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @define {boolean} Whether to enable DOM.
|
|
||||||
*/
|
|
||||||
ol.ENABLE_DOM = true;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @define {boolean} Whether to enable WebGL.
|
|
||||||
*/
|
|
||||||
ol.ENABLE_WEBGL = true;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @enum {string}
|
* @enum {string}
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
|
|||||||
Reference in New Issue
Block a user