Fix build

This commit is contained in:
Pieter Vander Vennet 2024-08-23 02:30:51 +02:00
parent 4f52483a98
commit 7d02f48b01

View file

@ -68,7 +68,14 @@ export interface ReverseGeocodingProvider {
export class GeocodingUtils { export class GeocodingUtils {
public static searchLayer= new LayerConfig(<LayerConfigJson> 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(<LayerConfigJson> search, "search")
}
public static categoryToZoomLevel: Record<GeocodingCategory, number> = { public static categoryToZoomLevel: Record<GeocodingCategory, number> = {
city: 12, city: 12,