Download cached features as geojson

This commit is contained in:
Arno Deceuninck 2021-07-15 09:34:00 +02:00
parent f5c7683d9d
commit b68bf7b950
5 changed files with 32 additions and 0 deletions

View file

@ -447,6 +447,14 @@ export class Utils {
b: parseInt(hex.substr(5, 2), 16),
}
}
public static setDefaults(options, defaults){
let result = {};
for (let key of defaults){
result[key] = key in options ? options[key] : defaults[key];
}
return result;
}
}
export interface TileRange {