Rephrase to increase clarity

This commit is contained in:
Pieter Vander Vennet 2022-02-05 23:38:55 +01:00
parent 9c47111696
commit 508ef8a970
2 changed files with 2 additions and 2 deletions

View file

@ -402,7 +402,7 @@ export class OsmWay extends OsmObject {
}
public asGeoJson() {
let coordinates: ([number, number][] | [number, number][][]) = this.coordinates.map(c => [c[1], c[0]]);
let coordinates: ([number, number][] | [number, number][][]) = this.coordinates.map(([lat, lon]) => [lon, lat]);
if (this.isPolygon()) {
coordinates = [coordinates]
}