Add ol.BrowserFeature.HAS_WEBGL

This commit is contained in:
Éric Lemoine
2013-12-18 08:18:23 +01:00
parent 73f24cf7b0
commit 79718151b7
9 changed files with 41 additions and 39 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
goog.require('ol.BrowserFeature');
goog.require('ol.Map');
goog.require('ol.RendererHint');
goog.require('ol.View2D');
goog.require('ol.layer.Tile');
goog.require('ol.proj');
goog.require('ol.source.BingMaps');
goog.require('ol.webgl');
function setResetHueButtonHTML() {
@@ -16,7 +16,7 @@ function setResetSaturationButtonHTML() {
layer.getSaturation().toFixed(2) + ')';
}
if (!ol.webgl.SUPPORTED) {
if (!ol.BrowserFeature.HAS_WEBGL) {
var info = document.getElementById('no-webgl');
/**
* display error message