Skip to content
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

Coordinate: Add a "Copy coordinates" shortcut #1358

Open
jacobwod opened this issue Jun 26, 2023 · 8 comments · Fixed by #1506
Open

Coordinate: Add a "Copy coordinates" shortcut #1358

jacobwod opened this issue Jun 26, 2023 · 8 comments · Fixed by #1506
Assignees
Labels
focus:accessibility module:client/plugin Functionality that goes into plugins in client
Projects
Milestone

Comments

@jacobwod
Copy link
Member

Sometimes it's handy to be able to grab the clicked coordinate from Hajk and paste into another application (especially when admin has activated the WGS84 projection which is really interchangeable). Currently it's doable but a somehow cumbersome: user must select each of the fields, copy, paste and put together with a comma (,).
Skärmavbild 2023-06-26 kl  09 23 31

I imagine a small, subtle button next to each of the projection names that will copy a concatenated string (<N>,<E>) to clipboard.

@jacobwod jacobwod added module:client/plugin Functionality that goes into plugins in client focus:accessibility labels Jun 26, 2023
@jacobwod jacobwod added this to the 3.x milestone Jun 26, 2023
@jacobwod jacobwod added this to Approved ideas in Hajk via automation Jun 26, 2023
@ChiragSharma0208
Copy link

can I work on this issue

@jacobwod
Copy link
Member Author

Absolutely, go ahead @ChiragSharma0208, thanks!

@ChiragSharma0208
Copy link

can you tell the javascript file rendering this component

@jacobwod
Copy link
Member Author

jacobwod commented Jul 7, 2023

Take a look inside new-client/src/plugins/Coordinates, there you'll find CoordinatesView.js.

@ChiragSharma0208
Copy link

I have added the copy button and created a pull request. Please review .

@ChiragSharma0208
Copy link

@jacobwod can you review my pull request?

@jacobwod
Copy link
Member Author

jacobwod commented Aug 7, 2023

Absolutely @ChiragSharma0208, I'll have a look at this this week. Thanks for your patience!

@OlofSvahnVbg OlofSvahnVbg self-assigned this Apr 25, 2024
@OlofSvahnVbg
Copy link
Collaborator

I got this now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus:accessibility module:client/plugin Functionality that goes into plugins in client
Projects
Hajk
  
Approved ideas
Development

Successfully merging a pull request may close this issue.

3 participants