Move ol.ENABLE_[CANVAS|DOM|WEBGL] @define's to browserfeature.js

This commit is contained in:
Éric Lemoine
2013-12-18 11:14:41 +01:00
parent a97e115100
commit 5520cc530d
2 changed files with 18 additions and 18 deletions

View File

@@ -11,6 +11,24 @@ goog.require('ol.webgl');
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
* (dips) on the device (`window.devicePixelRatio`).