diff --git a/src/app/_helpers/geoHelper.ts b/src/app/_helpers/geoHelper.ts index 484f7e55..8b438415 100644 --- a/src/app/_helpers/geoHelper.ts +++ b/src/app/_helpers/geoHelper.ts @@ -33,6 +33,7 @@ export class GeoHelper { } public static async generateMiniMap(configService: ConfigService, mapService: MapService) { + mapService.initialize(); const EPSG = configService.config?.epsg || 'EPSG:2056'; if (!mapService.FirstBaseMapLayer) { proj4.defs(EPSG, @@ -63,7 +64,7 @@ export class GeoHelper { }); const baseMapConfig = configService.config?.basemaps[0]; - + let layers; if (baseMapConfig) { const tileLayer = await mapService.createTileLayer(baseMapConfig, true);