From bf2ed185dbfe1fa2926237b97c6be4f6fc8fa7ff Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sat, 7 Dec 2024 13:02:04 +0100 Subject: [PATCH] fix: make sure to redraw tile after a .umap import Broken since 20b2290d0033df9de20dcea51a53c24dc6f8db76 --- umap/static/umap/js/modules/umap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/umap.js b/umap/static/umap/js/modules/umap.js index 68a325d2..ffee4ed0 100644 --- a/umap/static/umap/js/modules/umap.js +++ b/umap/static/umap/js/modules/umap.js @@ -1554,7 +1554,8 @@ export default class Umap extends ServerStored { dataLayer.fromUmapGeoJSON(geojson) } - this._leafletMap.renderUI() + // Do a whole render + this.render(['name', 'tilelayer', 'limitBounds']) this.eachDataLayer((datalayer) => { if (mustReindex) datalayer.reindex() datalayer.redraw()