Skip to content

Minimap#1389

Merged
Azgaar merged 1 commit intomasterfrom
minimap
Apr 24, 2026
Merged

Minimap#1389
Azgaar merged 1 commit intomasterfrom
minimap

Conversation

@Azgaar
Copy link
Copy Markdown
Owner

@Azgaar Azgaar commented Apr 24, 2026

Description

Co-authored-by: Copilot <copilot@github.com>
@Azgaar Azgaar self-assigned this Apr 24, 2026
Copilot AI review requested due to automatic review settings April 24, 2026 14:34
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

Deploy Preview for afmg ready!

Name Link
🔨 Latest commit beb4c81
🔍 Latest deploy log https://app.netlify.com/projects/afmg/deploys/69eb7f8bcc10a400072a66f6
😎 Deploy Preview https://deploy-preview-1389--afmg.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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a new “Minimap” UI dialog that renders a small overview of the current map and lets the user click the minimap to center the main view.

Changes:

  • Add a “Minimap” button to the Tools panel and a hidden #minimap dialog container in index.html
  • Add a lazy-loaded public/modules/ui/minimap.js dialog module that renders a <use href="#viewbox"> minimap and a viewport rectangle
  • Hook the main zoom/pan RAF loop to refresh the minimap’s transform/viewport when the view changes

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/index.html Adds the Minimap button and dialog container markup
public/modules/ui/tools.js Wires the new button click to a dynamic import and dialog open function
public/modules/ui/minimap.js Implements the minimap dialog, markup/styles injection, click-to-pan, and viewport updates
public/main.js Triggers minimap updates during zoom/pan RAF updates

@Azgaar Azgaar merged commit b7dcc81 into master Apr 24, 2026
12 checks passed
@Azgaar Azgaar deleted the minimap branch April 24, 2026 15:46
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