Skip to content

Add Zoom and Compass widgets - #8072

Merged
chrisgervang merged 49 commits into
masterfrom
ilya/zoom-widget
Mar 19, 2024
Merged

chrisgervang merged 49 commits into
masterfrom
ilya/zoom-widget

Conversation

@ilyabo

@ilyabo ilyabo commented Aug 22, 2023 •

Copy link
Copy Markdown
Member

For #7946

Change List

  • Add zoom widgets which renders Zoom in and Zoom out buttons
  • Add compass widget which resets bearing and pitch when clicked

Screen Shot 2024-03-18 at 9 20 37 PM

Comment thread modules/widgets/src/zoom-widget.tsx Resolved
Comment thread modules/widgets/src/zoom-widget.tsx Resolved
Comment thread modules/widgets/src/zoom-widget.tsx Resolved
Comment thread modules/widgets/src/zoom-widget.tsx Resolved
Comment thread modules/widgets/src/zoom-widget.tsx Resolved
Comment thread modules/widgets/src/compass-widget.tsx Outdated
onAdd({deck}: {deck: Deck}): HTMLDivElement {
const {style, className} = this.props;
const element = document.createElement('div');
element.classList.add('deckgl-widget', 'deckgl-widget-compass');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After discussion with @ibgreen and @Pessimistress, we've decided to drop the gl. Couple reasons, it's shorter, we're long-term distancing from gl (onto WebGPU), and tooltip widget has always used .deck-tooltip.

@chrisgervang

Copy link
Copy Markdown
Collaborator

I've merged #8024 so this can target master now.

@ilyabo
ilyabo changed the base branch from chr/fullscreen-widget to master September 26, 2023 07:10
@ilyabo

ilyabo commented Sep 26, 2023

Copy link
Copy Markdown
Member Author

Thanks @chrisgervang! Will try to update it soon

Comment thread .eslintrc.cjs Resolved
@ilyabo

ilyabo commented Mar 16, 2024 •

Copy link
Copy Markdown
Member Author

Thanks @chrisgervang for updating and resolving the conflicts!

@chrisgervang

Copy link
Copy Markdown
Collaborator

I've updated styles and icons to match our Figma design, and added a horizontal option for the zoom widget (or any button group). There is some polish to do, but this is pretty close.

compass-zoom.mov

@chrisgervang
chrisgervang marked this pull request as ready for review March 19, 2024 00:20
@coveralls

coveralls commented Mar 19, 2024 •

Copy link
Copy Markdown

Coverage Status

coverage: 87.384% (+0.002%) from 87.382%
when pulling 6f2d415 on ilya/zoom-widget
into 77c2bf1 on master.

@ilyabo

ilyabo commented Mar 19, 2024

Copy link
Copy Markdown
Member Author

I've updated styles and icons to match our Figma design, and added a horizontal option for the zoom widget (or any button group). There is some polish to do, but this is pretty close.

Looks really cool, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants