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

View File

@@ -1,13 +1,13 @@
goog.require('ol.BrowserFeature');
goog.require('ol.Map');
goog.require('ol.RendererHints');
goog.require('ol.View2D');
goog.require('ol.dom.Input');
goog.require('ol.layer.Tile');
goog.require('ol.source.OSM');
goog.require('ol.webgl');
if (!ol.webgl.SUPPORTED) {
if (!ol.BrowserFeature.HAS_WEBGL) {
var inputs = document.getElementsByClassName('webgl');
for (var i = 0, len = inputs.length; i < len; i++) {
inputs[i].disabled = true;