diff --git a/src/BasicOpenlayersRenderer.mjs b/src/BasicOpenlayersRenderer.mjs index 1bdc554..4a85310 100644 --- a/src/BasicOpenlayersRenderer.mjs +++ b/src/BasicOpenlayersRenderer.mjs @@ -146,13 +146,12 @@ const Renderer = class extends defaultExport { } } - setExtra() { - const map = this.map; - const config = this.config; - if (config.debug === true) { + setExtra(config) { + const { map, debug, ol } = config + if (debug === true) { map.addLayer( new layer.Tile({ - source: new source.TileDebug(), + source: new ol.source.TileDebug(), }), ); }