Repository navigation
Feat/crs assign #556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feat/crs assign #556
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
34bbaf7
feat(CrsSelector): v-model API, authority:code selection key, non-blo…
MaxNumerique b9fea1a
refacto from import_workflow [skip ci]
MaxNumerique 4556cc2
fix(import_workflow): reloadObject rebuilds the hybrid viewer actor
MaxNumerique 79c762e
Apply prepare changes
MaxNumerique 9db9e20
feat(crs): store data CRS and cache the available CRS list
MaxNumerique 57e155c
feat(crs): show and edit the CRS from the object tree and the info card
MaxNumerique 7d63fb7
feat(feedback): optional action button on snackbars
MaxNumerique 24f6f18
compact
MaxNumerique 70b69af
Apply prepare changes
MaxNumerique 075af2d
fix(viewer): rebuild the actor only when the geometry moved, keep cam…
MaxNumerique 9dfbfd7
read the data only while the tooltip is open [skip ci]
MaxNumerique 94b9c46
fix(feedback): close the snackbar when its action fails [skip ci]
MaxNumerique 223c6db
fix(InfoCard): Vuetify classes and keyboard-reachable CRS edit button…
MaxNumerique e8a84b2
perf(CrsSelector): shallow CRS list, no "All" page size
MaxNumerique 40c51ba
Apply prepare changes
MaxNumerique a76c7a3
oxlint
MaxNumerique facde66
trigger
MaxNumerique 0432c8f
trigger
MaxNumerique e4668b4
perf(crs): load the geographic CRS list once per session
MaxNumerique f71396b
feat(crs): store the project crs
MaxNumerique d7494e5
feat(crs): warn about data in another crs in the object tree
MaxNumerique 27795cd
feat(crs): show the project crs under the axes
MaxNumerique c92cbc3
fix(crs): old project takes the crs of its oldest saved data
MaxNumerique a1b4bb9
feat(crs): the project crs follows its data, light shared read
MaxNumerique fa63f5e
feat(crs): warn about data without crs, larger project crs widget
MaxNumerique 5503a0f
fix(crs): restore the project crs once every data is imported
MaxNumerique d0fc3c4
feat(crs): open the crs dialog from the tree warning
MaxNumerique 1d150eb
Merge remote-tracking branch 'origin/next' into feat/crs_assign
MaxNumerique 4ea3d96
refactor(CrsSelector): type the selected rows as CRS keys
MaxNumerique 1dc594c
trigger
MaxNumerique 4da7dd5
Merge branch 'next' of https://github.com/Geode-solutions/OpenGeodeWe…
MaxNumerique File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| <script setup lang="ts"> | ||
| import { formatCrs, formatCrsCode } from "@ogw_front/utils/crs"; | ||
| import { useCrsStore } from "@ogw_front/stores/crs"; | ||
|
|
||
| const crsStore = useCrsStore(); | ||
| const label = computed<string>(() => | ||
| crsStore.projectCrs | ||
| ? `CRS: ${formatCrsCode(crsStore.projectCrs)} · ${crsStore.projectCrs.name}` | ||
| : "No CRS", | ||
| ); | ||
| </script> | ||
|
|
||
| <template> | ||
| <!-- Under the XYZ axes, drawn by the viewer in the bottom right corner --> | ||
| <v-btn | ||
| data-testid="projectCrs" | ||
| class="project-crs text-none" | ||
| size="small" | ||
| variant="tonal" | ||
| prepend-icon="mdi-earth" | ||
| :disabled="!crsStore.crsEditEnabled" | ||
| v-tooltip="formatCrs(crsStore.projectCrs)" | ||
| @click="crsStore.requestProjectCrsEdit()" | ||
| > | ||
| <span class="text-truncate">{{ label }}</span> | ||
| </v-btn> | ||
| </template> | ||
|
|
||
| <style scoped> | ||
| .project-crs { | ||
| position: absolute; | ||
| right: 16px; | ||
| bottom: 12px; | ||
| z-index: 1; | ||
| max-width: 360px; | ||
| } | ||
| </style> |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.