Fall back to canvas to preserve old behavior

This commit is contained in:
Tim Schaub
2017-08-15 15:36:48 -04:00
parent 9277902535
commit 1674fcc680
4 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ var map1 = new ol.Map({
if (ol.has.WEBGL) {
var map2 = new ol.Map({
target: 'webglMap',
renderer: /** @type {ol.renderer.Type} */ ('webgl'),
renderer: /** @type {Array<ol.renderer.Type>} */ (['webgl', 'canvas']),
layers: [layer],
view: view
});