forked from MapComplete/MapComplete
Chore: housekeeping
This commit is contained in:
parent
4c001d718e
commit
6f7d94890a
29 changed files with 430 additions and 308 deletions
|
|
@ -930,7 +930,7 @@ export class AddRatingBadge extends DesugaringStep<LayerConfigJson> {
|
|||
const funcs = new Set<string>(specialVis.map((rs) => rs.func.funcName))
|
||||
|
||||
if (funcs.has("list_reviews")) {
|
||||
(<(string | TagRenderingConfigJson)[]>json.titleIcons).push("icons.rating")
|
||||
;(<(string | TagRenderingConfigJson)[]>json.titleIcons).push("icons.rating")
|
||||
}
|
||||
return json
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ export class Tiles {
|
|||
static asGeojson(zIndex: number, x?: number, y?: number): Feature<Polygon> {
|
||||
let z = zIndex
|
||||
if (x === undefined) {
|
||||
[z, x, y] = Tiles.tile_from_index(zIndex)
|
||||
;[z, x, y] = Tiles.tile_from_index(zIndex)
|
||||
}
|
||||
const bounds = Tiles.tile_bounds_lon_lat(z, x, y)
|
||||
return new BBox(bounds).asGeoJson()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue