If you use MacOS like me, and seem to depend on Quick Look for every file related task, you would feel GPX files could get a little love. And that is just what Vidar Bronken Gundersen did, he created a GPX Quick Look plugin which you can download from his GitHub page.
If you install and test the plugin, you will get to see the GPX track in a white background, unless the location in Norway. As per the instructions, “To use different background map tiles, edit template.html
and change ol.source.XYZ
.”
For Portugal, change:
var bgLayer = new ol.layer.Tile({
source: new ol.source.XYZ({
attributions: '<a href="http://kartverket.no/">Kartverket</a>',
url: 'http://opencache.statkart.no/gatekeeper/gk/gk.open_gmaps?layers=topo2graatone&zoom={z}&x={x}&y={y}'
})
});
to:
var bgLayer = new ol.layer.Tile({
source: new ol.source.XYZ({
attributions: '<a href="http://valentim.org">valentim.org</a>',
url: 'https://map.valentim.org/otmpt/{z}/{x}/{y}.png'
})
});
and you will get the excellent Hugo D. Valentim Portugal map.