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