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

@@ -19,7 +19,7 @@ if (!ol.has.WEBGL) {
var map = new ol.Map({
layers: [osm],
renderer: /** @type {ol.renderer.Type} */ ('webgl'),
renderer: /** @type {Array<ol.renderer.Type>} */ (['webgl', 'canvas']),
target: 'map',
controls: ol.control.defaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({