From 5520cc530d473afe0627db81f7c6490ff12e59ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 18 Dec 2013 11:14:41 +0100 Subject: [PATCH] Move ol.ENABLE_[CANVAS|DOM|WEBGL] @define's to browserfeature.js --- src/ol/browserfeature.js | 18 ++++++++++++++++++ src/ol/map.js | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/ol/browserfeature.js b/src/ol/browserfeature.js index 111f6495f3..910a2de4de 100644 --- a/src/ol/browserfeature.js +++ b/src/ol/browserfeature.js @@ -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`). diff --git a/src/ol/map.js b/src/ol/map.js index 6578a7e9da..9aa00ada76 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -68,24 +68,6 @@ goog.require('ol.structs.PriorityQueue'); 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} * @todo stability experimental