forked from MapComplete/MapComplete
Add explicit api_url to config and testserver-mode indication, add id rewrite when changes are applied to fix image upload on a new object, various formatting fixes; version bump
This commit is contained in:
parent
39376c0012
commit
a4db7178f4
16 changed files with 277 additions and 192 deletions
|
@ -3,10 +3,11 @@ import polygon_features from "../../assets/polygon-features.json"
|
|||
import { OsmFeature, OsmId, OsmTags, WayId } from "../../Models/OsmFeature"
|
||||
import OsmToGeoJson from "osmtogeojson"
|
||||
import { Feature, LineString, Polygon } from "geojson"
|
||||
import Constants from "../../Models/Constants"
|
||||
|
||||
export abstract class OsmObject {
|
||||
private static defaultBackend = "https://api.openstreetmap.org/"
|
||||
protected static backendURL = OsmObject.defaultBackend
|
||||
private static backendURL = Constants.osmAuthConfig.url ?? OsmObject.defaultBackend
|
||||
public static polygonFeatures = OsmObject.constructPolygonFeatures()
|
||||
type: "node" | "way" | "relation"
|
||||
id: number
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue