From 50d16b633cf046c81a66e2cf3e9af8455932e6de Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 3 Jun 2024 14:57:20 +0200 Subject: [PATCH] fix: display layer in naturel order in caption This was broken in e6b4a54499ca547544d721ebdf5b3ff2b970e34e fix #1874 --- umap/static/umap/js/modules/caption.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/caption.js b/umap/static/umap/js/modules/caption.js index 8fdcf4a5..f721286a 100644 --- a/umap/static/umap/js/modules/caption.js +++ b/umap/static/umap/js/modules/caption.js @@ -29,7 +29,7 @@ export default class Caption { }) } const datalayerContainer = DomUtil.create('div', 'datalayer-container', container) - this.map.eachDataLayer((datalayer) => + this.map.eachDataLayerReverse((datalayer) => this.addDataLayer(datalayer, datalayerContainer) ) const creditsContainer = DomUtil.create('div', 'credits-container', container)