diff --git a/mapvote.js b/mapvote.js index 5feaede..dfb0fd0 100644 --- a/mapvote.js +++ b/mapvote.js @@ -1156,8 +1156,8 @@ layer } } - for (const lay in Layers.layers){ - this.verbose(1, 'mapvote found layer: ', lay); + for (const lay in Layers._layers.values()){ + this.verbose(1, 'mapvote found layer: ', lay.layerid); } this.verbose(1, 'Layer list updated', Layers.layers.length, 'total layers');