diff --git a/src/map/editors/RectangleEditor.ts b/src/map/editors/RectangleEditor.ts index 5d2fd92..4e655ee 100644 --- a/src/map/editors/RectangleEditor.ts +++ b/src/map/editors/RectangleEditor.ts @@ -38,7 +38,6 @@ export class RectangleEditor extends BaseOverlayEditor { new AMap.LngLat(west, south), new AMap.LngLat(east, north) ); - console.log(bounds); const rectOverlay = new AMap.Rectangle({ bounds, fillOpacity: 0.1, diff --git a/src/store/actions/index.ts b/src/store/actions/index.ts index 6609f98..7a1f270 100644 --- a/src/store/actions/index.ts +++ b/src/store/actions/index.ts @@ -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); + this._openProject(JSON.parse(cached)); } 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); diff --git a/src/store/reducers/map/index.ts b/src/store/reducers/map/index.ts index 0461a5e..82a77d1 100644 --- a/src/store/reducers/map/index.ts +++ b/src/store/reducers/map/index.ts @@ -7,7 +7,6 @@ export function createOverlay(state = initState, payload: OverlayTypes) { return produce(state, (draft) => { draft.status = Status.CreateOverlay; draft.overlayType = payload; - console.log(123); }); }