What I’m trying to do
I have just started using Obsidian. I am using it to track my hikes. I create a daily note for the date of the hike and add information to the note like the trail, distance, elevation gain, notes, etc. I record a track on my GPS unit as a GPX file during the hike. I want to display the GPX trace on a map in the note. The default base map in Map View is CaroDB, which seems to be urban oriented and contains very little information for the “boonies”. I want to use maptiler outdoor as a basemap as it has small roads, trails, and contour lines. I have added maptiler outdoor to the list of map sources in Map View settings.https://api.maptiler.com/maps/outdoor/{z}/{x}/{y}{r}.png?key=XXX
And it works if I use “Embed a Map View” which gives me a mapview block
{"name":"Default","mapZoom":8,"centerLat":32.2891568,"centerLng":-110.9753399,"query":"","chosenMapSource":0,"autoFit":false,"lock":false,"showLinks":false,"linkColor":"red","markerLabels":"off","embeddedHeight":300}
I change the chosenMapSource from 0 to 1 and I get the maptiler basemap. I only know how to make this work for one point. I can also manually change the base map to maptiler outdoor by manually editing the map after it has been rendered. But these changes are not saved.
Since GPX files have dozens to hundreds of points, I want to use Map View’s capability to “Handle supported path embeds”. When I paste a gpx file into a note I get the appropriate link ![[2025-01-17 Pima Canyon Spring.gpx]] in the note, and it does display when in read mode. However, it uses the CaroDB base map.
Leaflet does not appear to “read” the GPX file and requires knowing an appropriate center coordinate and zoom level to render a usable map. So Leaflet does not appear to be an acceptable app for my use.