obsidian-map-view icon indicating copy to clipboard operation
obsidian-map-view copied to clipboard

FR: Copy plain coordinates

Open Nitero opened this issue 10 months ago • 5 comments

When right clicking the map you get the option to copy the location as frontmatter or as an inline link. I would like another option to copy it without any extra characters so just "lat, lon" like you can do on google maps. This would improve my workflow as I need the coordinates unformatted for a custom template.

Nitero avatar Jan 31 '25 19:01 Nitero

I rather not add an item that very few people will use to an already-ever-growing context menu, so I think this will require a setting (maybe "custom copy format" or something along this line). What do you think? Also, just out of curiosity for the use case, wouldn't you prefer your custom template to include a proper geolink that can be clicked, parsed etc?

esm7 avatar Feb 02 '25 13:02 esm7

In my template I make an api request using the lat,lon and then also add the coordiante as a location property to the frontmatter which then works with the plugin. My current workaround is to just strip the pasted coordinates of any letters, brackets, etc.

Another use case I see is when I want to check out a location on google maps, copying the lat,lon from the context menu as a string would mean I could directly paste it into the google maps search and not have to remove the formatting from the geolink.

EDIT: it would also just be helpful for copying locations from the map and pasting them into frontmatter properties

Nitero avatar Feb 07 '25 14:02 Nitero

I second this!

teqdeq avatar Mar 21 '25 15:03 teqdeq

Another use case I see is when I want to check out a location on google maps, copying the lat,lon from the context menu as a string would mean I could directly paste it into the google maps search and not have to remove the formatting from the geolink.

this is how i prefer to use it too. cross-checking and cross-using different mapping apps.

hdlnii avatar Mar 21 '25 15:03 hdlnii

Noted, I understand the need and will try to prioritize this. I think the best approach would be to let the user customize the content of map action / marker menus, otherwise it will get out of hand.

esm7 avatar Apr 09 '25 05:04 esm7