forked from MapComplete/MapComplete
Refactoring: split 'Utils' into multiple files; fix some stray uppercase-method names
This commit is contained in:
parent
81be4db044
commit
3ec89826e4
97 changed files with 884 additions and 921 deletions
|
|
@ -14,6 +14,7 @@ import {
|
|||
} from "geojson"
|
||||
import { Tiles } from "../Models/TileRange"
|
||||
import { Utils } from "../Utils"
|
||||
import { Lists } from "../Utils/Lists"
|
||||
|
||||
("use strict")
|
||||
|
||||
|
|
@ -597,7 +598,7 @@ export class GeoOperations {
|
|||
newFeatures.push(intersectionPart)
|
||||
}
|
||||
}
|
||||
return Utils.NoNull(newFeatures)
|
||||
return Lists.noNull(newFeatures)
|
||||
}
|
||||
|
||||
public static toGpx(
|
||||
|
|
@ -610,7 +611,7 @@ export class GeoOperations {
|
|||
if (title === undefined || title === "") {
|
||||
title = "Uploaded with MapComplete"
|
||||
}
|
||||
title = Utils.EncodeXmlValue(title)
|
||||
title = Utils.encodeXmlValue(title)
|
||||
const trackPoints: string[] = []
|
||||
let locationsWithMeta: Feature<Point>[]
|
||||
if (Array.isArray(locations)) {
|
||||
|
|
@ -664,7 +665,7 @@ export class GeoOperations {
|
|||
if (title === undefined || title === "") {
|
||||
title = "Created with MapComplete"
|
||||
}
|
||||
title = Utils.EncodeXmlValue(title)
|
||||
title = Utils.encodeXmlValue(title)
|
||||
const trackPoints: string[] = []
|
||||
for (const l of locations) {
|
||||
let trkpt = ` <wpt lat="${l.geometry.coordinates[1]}" lon="${l.geometry.coordinates[0]}">`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue