forked from MapComplete/MapComplete
Download cached features as geojson
This commit is contained in:
parent
f5c7683d9d
commit
b68bf7b950
5 changed files with 32 additions and 0 deletions
8
Utils.ts
8
Utils.ts
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue