forked from MapComplete/MapComplete
Fix bounds and loading with overpass
This commit is contained in:
parent
3157c35c62
commit
178cefceb4
7 changed files with 78 additions and 103 deletions
|
@ -7,7 +7,7 @@ import {FeatureSourceForLayer} from "../FeatureSource";
|
|||
|
||||
export default class SaveTileToLocalStorageActor {
|
||||
public static readonly storageKey: string = "cached-features";
|
||||
public static readonly formatVersion: string = "1"
|
||||
public static readonly formatVersion: string = "2"
|
||||
|
||||
constructor(source: FeatureSourceForLayer, tileIndex: number) {
|
||||
source.features.addCallbackAndRunD(features => {
|
||||
|
@ -31,6 +31,6 @@ export default class SaveTileToLocalStorageActor {
|
|||
const key = `${SaveTileToLocalStorageActor.storageKey}-${layerId}-${tileId}`
|
||||
localStorage.setItem(key + "-time", JSON.stringify(freshness.getTime()))
|
||||
localStorage.setItem(key + "-format", SaveTileToLocalStorageActor.formatVersion)
|
||||
|
||||
console.log("Marked ", key, "as visited")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue