From 7d02f48b0187bf343aed0064eba454afe05d146a Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 23 Aug 2024 02:30:51 +0200 Subject: [PATCH] Fix build --- src/Logic/Geocoding/GeocodingProvider.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Logic/Geocoding/GeocodingProvider.ts b/src/Logic/Geocoding/GeocodingProvider.ts index 243e95ed0..bcf50d200 100644 --- a/src/Logic/Geocoding/GeocodingProvider.ts +++ b/src/Logic/Geocoding/GeocodingProvider.ts @@ -68,7 +68,14 @@ export interface ReverseGeocodingProvider { export class GeocodingUtils { - public static searchLayer= new LayerConfig( search, "search") + public static searchLayer = GeocodingUtils.initSearchLayer() + private static initSearchLayer():LayerConfig{ + if(search["id"] === undefined){ + // We are resetting the layeroverview; trying to parse is useless + return undefined + } + return new LayerConfig( search, "search") + } public static categoryToZoomLevel: Record = { city: 12,