Use ol.BrowserFeature.HAS_WEBGL in layer-clipping-webgl example

This commit is contained in:
Tom Payne
2013-12-18 17:40:18 +01:00
parent 7cadb6824e
commit 009f9328a8

View File

@@ -1,10 +1,11 @@
goog.require('ol.BrowserFeature');
goog.require('ol.Map');
goog.require('ol.RendererHint');
goog.require('ol.View2D');
goog.require('ol.layer.Tile');
goog.require('ol.source.OSM');
if (!ol.webgl.SUPPORTED) {
if (!ol.BrowserFeature.HAS_WEBGL) {
var info = document.getElementById('no-webgl');
/**
* display error message