Conversation
Co-authored-by: Copilot <copilot@github.com>
✅ Deploy Preview for afmg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
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
#minimapdialog container inindex.html - Add a lazy-loaded
public/modules/ui/minimap.jsdialog 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description