forked from MapComplete/MapComplete
		
	Chore: formatting
This commit is contained in:
		
							parent
							
								
									ee6c63ee14
								
							
						
					
					
						commit
						4e4bb290b6
					
				
					 1 changed files with 11 additions and 11 deletions
				
			
		| 
						 | 
					@ -1,10 +1,10 @@
 | 
				
			||||||
import {Utils} from "../../Utils"
 | 
					import { Utils } from "../../Utils"
 | 
				
			||||||
import polygon_features from "../../assets/polygon-features.json"
 | 
					import polygon_features from "../../assets/polygon-features.json"
 | 
				
			||||||
import {Store, UIEventSource} from "../UIEventSource"
 | 
					import { Store, UIEventSource } from "../UIEventSource"
 | 
				
			||||||
import {BBox} from "../BBox"
 | 
					import { BBox } from "../BBox"
 | 
				
			||||||
import OsmToGeoJson from "osmtogeojson"
 | 
					import OsmToGeoJson from "osmtogeojson"
 | 
				
			||||||
import {NodeId, OsmFeature, OsmId, OsmTags, RelationId, WayId} from "../../Models/OsmFeature"
 | 
					import { NodeId, OsmFeature, OsmId, OsmTags, RelationId, WayId } from "../../Models/OsmFeature"
 | 
				
			||||||
import {Feature, LineString, Polygon} from "geojson"
 | 
					import { Feature, LineString, Polygon } from "geojson"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export abstract class OsmObject {
 | 
					export abstract class OsmObject {
 | 
				
			||||||
    private static defaultBackend = "https://www.openstreetmap.org/"
 | 
					    private static defaultBackend = "https://www.openstreetmap.org/"
 | 
				
			||||||
| 
						 | 
					@ -384,11 +384,11 @@ export class OsmNode extends OsmObject {
 | 
				
			||||||
    ChangesetXML(changesetId: string, header?: string): string {
 | 
					    ChangesetXML(changesetId: string, header?: string): string {
 | 
				
			||||||
        let tags = this.TagsXML()
 | 
					        let tags = this.TagsXML()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return (
 | 
					        return `    <node id="${this.id}" ${header ?? ""}${
 | 
				
			||||||
            `    <node id="${this.id}" ${header ?? ""}${changesetId ? ` changeset="${changesetId}" ` : ""}${this.VersionXML()} lat="${this.lat}" lon="${this.lon}">
 | 
					            changesetId ? ` changeset="${changesetId}" ` : ""
 | 
				
			||||||
 | 
					        }${this.VersionXML()} lat="${this.lat}" lon="${this.lon}">
 | 
				
			||||||
${tags}    </node>
 | 
					${tags}    </node>
 | 
				
			||||||
`
 | 
					`
 | 
				
			||||||
        )
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    SaveExtraData(element) {
 | 
					    SaveExtraData(element) {
 | 
				
			||||||
| 
						 | 
					@ -434,11 +434,11 @@ export class OsmWay extends OsmObject {
 | 
				
			||||||
            nds += '      <nd ref="' + this.nodes[node] + '"/>\n'
 | 
					            nds += '      <nd ref="' + this.nodes[node] + '"/>\n'
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return (
 | 
					        return `    <way id="${this.id}" ${header ?? ""}${
 | 
				
			||||||
            `    <way id="${this.id}" ${header ?? ""}${changesetId ? (` changeset="${changesetId}" `) : ""}${this.VersionXML()}>
 | 
					            changesetId ? ` changeset="${changesetId}" ` : ""
 | 
				
			||||||
 | 
					        }${this.VersionXML()}>
 | 
				
			||||||
${nds}${tags}    </way>
 | 
					${nds}${tags}    </way>
 | 
				
			||||||
`
 | 
					`
 | 
				
			||||||
        )
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    SaveExtraData(element, allNodes: OsmNode[]) {
 | 
					    SaveExtraData(element, allNodes: OsmNode[]) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue