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:
@@ -19,7 +19,7 @@ if (!ol.has.WEBGL) {
|
||||
|
||||
var map = new ol.Map({
|
||||
layers: [osm],
|
||||
renderer: 'webgl',
|
||||
renderer: /** @type {ol.renderer.Type} */ ('webgl'),
|
||||
target: 'map',
|
||||
controls: ol.control.defaults({
|
||||
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
|
||||
|
||||
Reference in New Issue
Block a user