fix: make sure to redraw tile after a .umap import

Broken since 20b2290d00
This commit is contained in:
Yohan Boniface 2024-12-07 13:02:04 +01:00
parent 4070da392a
commit bf2ed185db

View file

@ -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()