Add ol.BrowserFeature.HAS_WEBGL
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user