Remove plain string from Map renderer option

To get this to compile with the examples, typecasts have to be added to Map renderer options.
This commit is contained in:
Peter Robins
2016-09-15 10:59:09 +00:00
parent e9056c9d30
commit d4024846cf
11 changed files with 6 additions and 13 deletions

View File

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