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

Request for 1. different map sources + 2. workflow for tracks

Open SiliasGH opened this issue 2 years ago • 15 comments

Hi, I really enjoyed using your plugin during my trip to Paris last week - thank you for your great work! :)

I would appreciate it if you could add the following features and let me know your opinion on them:

I would like to include different OSM sources, such as additional layers like waymarked trails (for example, for cycling), hill shading, and public transportation. How can I add this information to your plugin? Additionally, I want to document tracks. I have read that GPX tracks cannot be implemented in your plugin but can be added to the Leaflet plugin. However, I would prefer to stick to just one map plugin, and yours appears to be more powerful to me. What workflow would you suggest for documenting tracks?

Thank you in advance. Kind regards, Silias

SiliasGH avatar Apr 30 '23 23:04 SiliasGH

Hey, Regarding different OSM sources, does the current functionality of configuring map sources solve this? I personally have a few OSM sources too, for different needs, and switch between them often. Or is it layers on top of each other that you're looking for? Regarding GPX tracks, see #50. It's a feature that a few have been asking for but I personally didn't get around to do it yet. What I personally do right now is still record some tracks in GPX, as this is the best standard to do so, and at some point they'll be displayable in Map View too :)

esm7 avatar May 01 '23 07:05 esm7

Hi, thanks for your quick answer! :)

Okay, with gpx-tracks I'll just wait and hope that you'll soon get the time to integrate that feature. But regarding different OSM sources, there seems to already be a solution, if I understand you right.

You write in your doc:

By default, Map View uses the CartoDB Voyager Map, which is free for up to 75K requests per month. However, you can change or add map sources in the configuration with any service that has a tiles API using a standard URL syntax.

There are many services of localized, specialized or just beautifully-rendered maps that you can use, sometimes following a free registration. See a pretty comprehensive list here.

... unfortunately that explanation was not sufficient for me, because I don't understand enough about APIs, raster oder vector tiles, ... - so I'd appreciate a lot, if you could write in your doc some more sentences on how to include different OSM sources, if that could be possible? :)

Thanks a lot in advance, Silias

SiliasGH avatar May 01 '23 09:05 SiliasGH

Sorry about that. I also see now that the wiki has changed its structure a bit and the more exact link would be here: https://wiki.openstreetmap.org/wiki/Raster_tile_providers There are many map providers in this list, some free, some require registration etc. For example, if you want to add the standard OSM layer, go to the Map View settings and under Map Sources add a source with this URL: https://tile.openstreetmap.org/{z}/{x}/{y}.png

It's a bit of thin ice here, because if Map View refers users to map source directly, this may violate some terms of use, e.g. users who choose to use OSM or Google Maps can freely do so, but open-source tools are not allowed to refer to them by default. If you have an idea of how to make it easier for users without possibly crossing this line, I'd love to know.

esm7 avatar May 01 '23 14:05 esm7

Yeahhhh, thanks a lot, I managed to switch to other map sources! Greeeeaat! :)

As I am a passionat cyclist, I'd like to take advantage of maps with information related to bicycle tracks. Therefore I could use this one

https://a.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png

which is a full map, but it has some big disadvantages compared with

https://tile.waymarkedtrails.org/cycling/${z}/${x}/${y}.png

which is just overlay tiles, but it includes much more information about the actual name of the routes, which you can find as signs "in the real world" :)

... is it, or could it be possible to include this kind of layers in Map-View? :)

SiliasGH avatar May 01 '23 20:05 SiliasGH

I find all map sources, except Google Maps. It apparently has a Tiles API.. and I see in some screenshots here and there that Google Maps can be added as a source.. but nowhere do I find how to configure it, what would be the URL, etc.. I'm comfortable using my API key if needed for any of its services, but I'd really like to have Google Maps in Obsidian. Is that even possible nowadays?

abourget avatar Sep 01 '23 13:09 abourget

Could there not be an issue, with a link to a gist, with information on how to setup Google Maps in there? I'm okay with publishing a gist that you'd like.. if I could gather the info :)

abourget avatar Sep 01 '23 13:09 abourget

The Google Maps licensing is tricky, I don't fully understand it, so I'm not risking noting it in the docs and definitely not including it by default. But using the "map sources" functionality in the Map View settings, you can use the tiles URL which you can find for example here.

esm7 avatar Sep 05 '23 08:09 esm7

Hi, I come back to the topic of overlay tiles, which I mentioned here:

As I am a passionat cyclist, I'd like to take advantage of maps with information related to bicycle tracks. Therefore I could use this one

https://a.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png

which is a full map, but it has some big disadvantages compared with

https://tile.waymarkedtrails.org/cycling/${z}/${x}/${y}.png

which is just overlay tiles, but it includes much more information about the actual name of the routes, which you can find as signs "in the real world" :)

... is it, or could it be possible to include this kind of layers in Map-View? :)

... => is it on your roadmap, to integrate overlay tiles in your plugin?

thanks in advance and kind regards, Silias

SeLiEnisyst avatar Jan 25 '25 21:01 SeLiEnisyst

GeoJSON, GPX and overlay layers are my main focus right now and are what I am planning for Map View 6.0.0. So hopefully you won't need to continue waiting that long.

esm7 avatar Jan 26 '25 06:01 esm7

Yeaah!!! :D that is very good news!!! :)

Let me also point you to brouter.de, which is a very good open source routing software, which has also interfaces to OsmAnd, Locus-Maps and OruxMaps. ... maybe it also can be included in your plugin someday :)

SeLiEnisyst avatar Jan 26 '25 20:01 SeLiEnisyst

GeoJSON, GPX and overlay layers are my main focus right now and are what I am planning for Map View 6.0.0. So hopefully you won't need to continue waiting that long.

incredible. MapView will be even more powerful. it could very much be the ultimate mapping tool in combination with a knowledge management system.

thank you for the great work for the community!

hdlnii avatar Mar 19 '25 19:03 hdlnii

... the main reason, why I'm pressing "check for updates" in the community plugins a few times a week is, I am hoping so much, that you managed to launch 6.0.0!!!! :)

SeLiEnisyst avatar Mar 26 '25 21:03 SeLiEnisyst

Thank you for that, it's incredibly encouraging to work on this knowing it will be put to good use right away! Don't check for updates too often though, we're not there yet 😅 But sure will be!

esm7 avatar Mar 27 '25 06:03 esm7

i don’t know any other personal geolocation management tool in existence that is as powerful and as integrated with a local-first PKM system/tool as this one! i think you’re right to feel encouraged and proud — this is unique and valuable work!!

hdlnii avatar Mar 28 '25 15:03 hdlnii

Finally the gigantic Map View 6.0.0 is released, with a lot of what this open issue is about :)

esm7 avatar Oct 08 '25 14:10 esm7