forked from MapComplete/MapComplete
Formatting
This commit is contained in:
parent
99ba26e3a2
commit
b251fd7b69
8 changed files with 69 additions and 62 deletions
|
@ -27,7 +27,7 @@ class MetatagUpdater {
|
|||
const self = this
|
||||
this.params = {
|
||||
getFeatureById(id) {
|
||||
return <any> state.allElements.ContainingFeatures.get(id)
|
||||
return <any>state.allElements.ContainingFeatures.get(id)
|
||||
},
|
||||
getFeaturesWithin(layerId, bbox) {
|
||||
// We keep track of the BBOX that this source needs
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
import {OsmNode, OsmObject, OsmRelation, OsmWay} from "./OsmObject"
|
||||
import {UIEventSource} from "../UIEventSource"
|
||||
import { OsmNode, OsmObject, OsmRelation, OsmWay } from "./OsmObject"
|
||||
import { UIEventSource } from "../UIEventSource"
|
||||
import Constants from "../../Models/Constants"
|
||||
import OsmChangeAction from "./Actions/OsmChangeAction"
|
||||
import {ChangeDescription, ChangeDescriptionTools} from "./Actions/ChangeDescription"
|
||||
import {Utils} from "../../Utils"
|
||||
import {LocalStorageSource} from "../Web/LocalStorageSource"
|
||||
import { ChangeDescription, ChangeDescriptionTools } from "./Actions/ChangeDescription"
|
||||
import { Utils } from "../../Utils"
|
||||
import { LocalStorageSource } from "../Web/LocalStorageSource"
|
||||
import SimpleMetaTagger from "../SimpleMetaTagger"
|
||||
import FeatureSource from "../FeatureSource/FeatureSource"
|
||||
import {ElementStorage} from "../ElementStorage"
|
||||
import {GeoLocationPointProperties} from "../Actors/GeoLocationHandler"
|
||||
import {GeoOperations} from "../GeoOperations"
|
||||
import {ChangesetHandler, ChangesetTag} from "./ChangesetHandler"
|
||||
import {OsmConnection} from "./OsmConnection"
|
||||
import { ElementStorage } from "../ElementStorage"
|
||||
import { GeoLocationPointProperties } from "../Actors/GeoLocationHandler"
|
||||
import { GeoOperations } from "../GeoOperations"
|
||||
import { ChangesetHandler, ChangesetTag } from "./ChangesetHandler"
|
||||
import { OsmConnection } from "./OsmConnection"
|
||||
|
||||
/**
|
||||
* Handles all changes made to OSM.
|
||||
|
|
|
@ -22,8 +22,8 @@ import { TiledStaticFeatureSource } from "../FeatureSource/Sources/StaticFeature
|
|||
import { Translation, TypedTranslation } from "../../UI/i18n/Translation"
|
||||
import { Tag } from "../Tags/Tag"
|
||||
import { OsmConnection } from "../Osm/OsmConnection"
|
||||
import {Feature, GeoJSON, LineString} from "geojson";
|
||||
import {OsmTags} from "../../Models/OsmFeature";
|
||||
import { Feature, GeoJSON, LineString } from "geojson"
|
||||
import { OsmTags } from "../../Models/OsmFeature"
|
||||
|
||||
export interface GlobalFilter {
|
||||
filter: FilterState
|
||||
|
@ -322,7 +322,7 @@ export default class MapState extends UserRelatedState {
|
|||
return []
|
||||
}
|
||||
|
||||
const feature : Feature<LineString, OsmTags> = {
|
||||
const feature: Feature<LineString, OsmTags> = {
|
||||
type: "Feature",
|
||||
properties: {
|
||||
id: "location_track",
|
||||
|
|
|
@ -4,7 +4,7 @@ import { TagsFilter } from "./TagsFilter"
|
|||
export class Tag extends TagsFilter {
|
||||
public key: string
|
||||
public value: string
|
||||
public static newlyCreated = new Tag("_newly_created","yes") ;
|
||||
public static newlyCreated = new Tag("_newly_created", "yes")
|
||||
constructor(key: string, value: string) {
|
||||
super()
|
||||
this.key = key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue