|
|
@ -17,7 +17,7 @@ export class EditorAction { |
|
|
|
store: IStore; |
|
|
|
store: IStore; |
|
|
|
constructor(store: IStore) { |
|
|
|
constructor(store: IStore) { |
|
|
|
this.store = store; |
|
|
|
this.store = store; |
|
|
|
this._bindOperations(); |
|
|
|
this._bindActions(); |
|
|
|
this._registerHotkeys(); |
|
|
|
this._registerHotkeys(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -45,9 +45,7 @@ export class EditorAction { |
|
|
|
mapReady() { |
|
|
|
mapReady() { |
|
|
|
const cached = sessionStorage.getItem("fine-geojson"); |
|
|
|
const cached = sessionStorage.getItem("fine-geojson"); |
|
|
|
if (cached != null) { |
|
|
|
if (cached != null) { |
|
|
|
setTimeout(() => { |
|
|
|
this._openProject(JSON.parse(cached)); |
|
|
|
this._openProject(JSON.parse(cached)); |
|
|
|
|
|
|
|
}, 3000); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
setInterval(() => { |
|
|
|
setInterval(() => { |
|
|
@ -124,7 +122,7 @@ export class EditorAction { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private _bindOperations() { |
|
|
|
private _bindActions() { |
|
|
|
this.saveGeoJSON = this.saveGeoJSON.bind(this); |
|
|
|
this.saveGeoJSON = this.saveGeoJSON.bind(this); |
|
|
|
this.createRectangle = this.createRectangle.bind(this); |
|
|
|
this.createRectangle = this.createRectangle.bind(this); |
|
|
|
this.createPolygon = this.createPolygon.bind(this); |
|
|
|
this.createPolygon = this.createPolygon.bind(this); |
|
|
|