Open
Conversation
This commit adds the coordinate search feature, described in this issue jacobsjo#4. The search event follows this flow: `CoordinateDropdown → MenuButtons → Sidebar → App → MainMap` New Files: `src/stores/useCoordinateStore.ts` - Pinia store for coordinate state management `src/components/dropdown/CoordinateDropdown.vue` - UI component for coordinate input Modified Files: `src/components/MenuButtons.vue` - Added coordinate search button `src/components/Sidebar.vue` - Added event passing for navigation `src/App.vue` - Connected navigation events to map component `src/components/MainMap.vue` - Added navigation and current location methods `locales/en.json` - Added translations for the feature
Owner
Author
|
I agree that the internal architecture could use work. I'm not a designer. This is something I threw together in a few minutes to get the feature working for myself. |
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.

Hello! I really love this map, thanks so much for sharing!
This PR adds the coordinate search feature, described in #4. The search event follows this flow:
CoordinateDropdown → MenuButtons → Sidebar → App → MainMapNew Files
src/stores/useCoordinateStore.ts- Pinia store for coordinate state management.src/components/dropdown/CoordinateDropdown.vue- UI component for coordinate input. It extends the base Dropdown component.Modified Files
src/components/MenuButtons.vue- Added coordinate search button.src/components/Sidebar.vue- Added event passing for navigation.src/App.vue- Connected navigation events to map component.src/components/MainMap.vue- Added navigation and current location methods.locales/en.json- Added translations for the feature.Usage
The coordinate search button opens the dropdown to input X and Z coordinates:
mc-datapack-map-coordinate-search.mp4
The "Use Current View" will add the maps center point as the X and Z coordinates:
mc-datapack-map-coordinate-search-go-to-current.mp4
The "Go To Coordinate" will center the map around the given X and Z coordinates:
mc-datapack-map-coordinate-search-go-to-coordinates.mp4
Thanks 🙏🏻