diff --git a/mapvote.js b/mapvote.js index f000cb3..0b8fb38 100644 --- a/mapvote.js +++ b/mapvote.js @@ -1155,7 +1155,7 @@ layer } } - for (const lay in Layers._layers.values()){ + for (const lay of Layers.layers){ this.verbose(1, 'mapvote found layer: ', lay.layerid); } this.verbose(1, 'Layer list updated', Layers.layers.length, 'total layers');