Skip to content

Commit

Permalink
fix: setExtra for openlayers
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsieh Chin Fan committed Sep 28, 2024
1 parent d97dfde commit 772086b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/BasicOpenlayersRenderer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}),
);
}
Expand Down

0 comments on commit 772086b

Please sign in to comment.