Fix build
This commit is contained in:
parent
4f52483a98
commit
7d02f48b01
1 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue