Skip to content

Commit 35f6f37

Browse files
Add button for map toolbar
1 parent f5ac0d7 commit 35f6f37

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Fixed an issue where we were not correctly detecting unclosed quotes when there
4444

4545
Re-work the toolbar for animations in IDL Notebooks. The new toolbar uses the same colors/style as the sidebar and will look good on most themes. There was an issue, after a library update, where colors for high contrast themes did not work with the slider and have now been fixed.
4646

47+
Notebook maps (requires ENVI) now have a button that will reset the view to the initial state. Helpful in case you zoom out or lose the location of your imagery while zooming/panning around.
48+
4749
## 4.5.1 - May 2024
4850

4951
Continuing with our story of IDL Notebook user experience, each session of notebook now gets it's own instance of IDL! This means a few things:

apps/notebook/components/src/app/components/map/map.component.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,22 @@ export class MapComponent
223223
* Set the view back to defaults
224224
*/
225225
resetView() {
226+
/**
227+
* Reset initial view state so deck.gl picks up changes
228+
*
229+
* Without this, the next code doesnt work
230+
*/
231+
this.deck.setProps({ initialViewState: undefined });
232+
233+
/**
234+
* Set view state with an animation
235+
*/
226236
this.deck.setProps({
227237
initialViewState: {
228238
...copy(INITIAL_VIEW_STATE),
229-
transitionInterpolator: new FlyToInterpolator({ speed: 2 }),
239+
transitionInterpolator: new FlyToInterpolator({
240+
speed: 2,
241+
}),
230242
transitionDuration: 'auto',
231243
},
232244
});

0 commit comments

Comments
 (0)