diff --git a/mapvote.js b/mapvote.js index 2861681..55fe83b 100644 --- a/mapvote.js +++ b/mapvote.js @@ -1150,8 +1150,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');