forked from MapComplete/MapComplete
		
	Chore: linting
This commit is contained in:
		
							parent
							
								
									4625ad9a5c
								
							
						
					
					
						commit
						097141f944
					
				
					 307 changed files with 5346 additions and 2147 deletions
				
			
		|  | @ -96,7 +96,7 @@ export default class FeaturePropertiesStore { | |||
|         if (newId === undefined) { | ||||
|             // We removed the node/way/relation with type 'type' and id 'oldId' on openstreetmap!
 | ||||
|             const element = this._elements.get(oldId) | ||||
|             if(!element || element.data === undefined){ | ||||
|             if (!element || element.data === undefined) { | ||||
|                 return | ||||
|             } | ||||
|             element.data._deleted = "yes" | ||||
|  |  | |||
|  | @ -96,7 +96,7 @@ export default class GeoJsonSource implements FeatureSource { | |||
|         const url = this.url | ||||
|         try { | ||||
|             const cacheAge = (options?.maxCacheAgeSec ?? 300) * 1000 | ||||
|             let json = <{features: Feature[]}> await Utils.downloadJsonCached(url, cacheAge) | ||||
|             let json = <{ features: Feature[] }>await Utils.downloadJsonCached(url, cacheAge) | ||||
| 
 | ||||
|             if (json.features === undefined || json.features === null) { | ||||
|                 json.features = [] | ||||
|  |  | |||
|  | @ -32,8 +32,10 @@ export interface SnappingOptions { | |||
|     reusePointWithin?: number | ||||
| } | ||||
| 
 | ||||
| export default class SnappingFeatureSource implements FeatureSource<Feature<Point,  { "snapped-to": string; dist: number }>> { | ||||
|     public readonly features: Store<[Feature<Point,  { "snapped-to": string; dist: number }>]> | ||||
| export default class SnappingFeatureSource | ||||
|     implements FeatureSource<Feature<Point, { "snapped-to": string; dist: number }>> | ||||
| { | ||||
|     public readonly features: Store<[Feature<Point, { "snapped-to": string; dist: number }>]> | ||||
|     /*Contains the id of the way it snapped to*/ | ||||
|     public readonly snappedTo: Store<string> | ||||
|     private readonly _snappedTo: UIEventSource<string> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue