From 7a78645055d3d42b8bd09474f5d5154027df4ad4 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 29 Nov 2023 15:49:17 +0100 Subject: [PATCH] Log error when loading tilelayer I see this message from time to time, but I've no details so I cannot investigate easily. Let's log the error to help. --- umap/static/umap/js/umap.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 48944b51b..b65e85bb1 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -621,6 +621,7 @@ L.U.Map.include({ this.setZoom(this.selected_tilelayer.options.maxZoom) } } catch (e) { + console.error(e) this.removeLayer(tilelayer) this.ui.alert({ content: `${L._('Error in the tilelayer URL')}: ${tilelayer._url}`,