Skip to content

Commit

Permalink
fix: create new project aoi zoom (#989)
Browse files Browse the repository at this point in the history
* fix (createNewProject): data-extract - step switching to step 2 instead of step 3 when going previous from data-extract

* fix (createNewProject): uploadArea: load duration reduced to 0.5s from 2s
  • Loading branch information
NSUWAL123 authored Nov 20, 2023
1 parent d4f803c commit b86ac0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const DataExtract = ({ flag, customLineUpload, setCustomLineUpload, customPolygo
btnText="PREVIOUS"
btnType="secondary"
type="button"
onClick={() => toggleStep(2, '/upload-area')}
onClick={() => toggleStep(3, '/select-form')}
className="fmtm-font-bold"
/>
<Button btnText="NEXT" btnType="primary" type="submit" className="fmtm-font-bold" />
Expand Down
8 changes: 4 additions & 4 deletions src/frontend/src/views/NewDefineAreaMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const NewDefineAreaMap = ({
size: map?.getSize(),
padding: [50, 50, 50, 50],
constrainResolution: true,
duration: 2000,
duration: 500,
}}
zoomToLayer
/>
Expand All @@ -60,7 +60,7 @@ const NewDefineAreaMap = ({
size: map?.getSize(),
padding: [50, 50, 50, 50],
constrainResolution: true,
duration: 2000,
duration: 500,
}}
onDraw={onDraw}
zoomToLayer
Expand All @@ -85,7 +85,7 @@ const NewDefineAreaMap = ({
padding: [50, 50, 50, 50],
// duration: 900,
constrainResolution: true,
duration: 2000,
duration: 500,
}}
zoomToLayer
/>
Expand All @@ -108,7 +108,7 @@ const NewDefineAreaMap = ({
padding: [50, 50, 50, 50],
// duration: 900,
constrainResolution: true,
duration: 2000,
duration: 500,
}}
zoomToLayer
/>
Expand Down

0 comments on commit b86ac0e

Please sign in to comment.