Fix Wereldexport world map loading and tiles.

Self-host Leaflet locally, proxy map tiles through cockpit, set explicit map height, and invalidate size after init.
This commit is contained in:
Aissa
2026-07-19 18:36:02 +00:00
parent 8712f503b1
commit 7289b770e5
15 changed files with 797 additions and 13 deletions
+6
View File
@@ -25,6 +25,7 @@ function exportIntelApp() {
mapTypesSelected: [],
mapHalalMode: false,
mapHalalMin: 55,
mapError: '',
halalTopMarkets: [],
halalTopEntities: [],
listFocusId: null,
@@ -322,6 +323,11 @@ function exportIntelApp() {
var bundle = await fetch(url).then((r) => r.json());
this.halalTopMarkets = (bundle.meta && bundle.meta.top_markets) || [];
this.halalTopEntities = (bundle.meta && bundle.meta.top_halal_entities) || [];
if (!window.L || !window.ExportIntelMap) {
this.mapError = 'Kaart kon niet laden. Vernieuw de pagina (Ctrl+F5).';
return;
}
this.mapError = '';
if (window.ExportIntelMap) {
if (!document.getElementById('ei-map')) return;
var self = this;