Skip to content

feat: Dedicated reset view, undo and delete map buttons - #664

Merged
ianjon3s merged 2 commits into
mainfrom
ian/map-control-buttons
Oct 1, 2026
Merged

ianjon3s merged 2 commits into
mainfrom
ian/map-control-buttons

Conversation

@ianjon3s

@ianjon3s ianjon3s commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Updates UI for map functionality:

  • Separate reset view function from delete all points
    • reset view sits with view controls
    • delete points as separate function
  • Introduce undo last operation function (which also works to restore deleted points)

@netlify

netlify Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for oslmap ready!

Name Link
🔨 Latest commit 663debc
🔍 Latest deploy log https://app.netlify.com/projects/oslmap/deploys/6aba7fe6632d6e0008e8ee80
😎 Deploy Preview https://deploy-preview-664--oslmap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ianjon3s
ianjon3s requested a review from a team September 29, 2026 15:13

@jessicamcinchak jessicamcinchak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Again works exactly as expected on Storybook - thanks !

image.src = trashCanIcon;
button.appendChild(image);
}
if (icon) button.appendChild(makeIcon(icon));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice to retire lingering unicode here 😅 💅

*/
export function resetControl(listener: () => void) {
return makeButtonControl("reset-control", makeResetButton(listener));
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice and flexible, thanks for accounting for various "modes" here 🙌


/**
* @deprecated - the reset control always uses the "filter center focus" icon now, and deleting drawings is handled by the separate delete control
*/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We've been doing alpha pre-releases, so these deprecation notes are perfect 👍

@ianjon3s

ianjon3s commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

Thanks for the review @jessicamcinchak

@ianjon3s
ianjon3s merged commit b9b9511 into main Oct 1, 2026
5 checks passed
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.

2 participants