Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (51 sloc) 1.78 KB
<div id="map" class="w-full h-full flex-grow"></div>
<script src=''></script>
<link href='' rel='stylesheet' />
<script src=''></script>
L.mapbox.accessToken = 'pk.eyJ1IjoidGhpYmF1ZGRhdWNlIiwiYSI6ImNqMHdpNXNiYjAwMTkzMm1vbWpwb2p6czkifQ.bxPv6_pQ9eucWIDMdyBygg';
var map ='map', 'mapbox.streets');
// omnivore will AJAX-request this file behind the scenes and parse it:
// note that there are considerations:
// - The file must either be on the same domain as the page that requests it,
// or both the server it is requested from and the user's browser must
// support CORS.
map.setView(new L.LatLng(46.498, 2.197), 7);
var customLayer = L.geoJson(null, {
style: function(feature) {
return { color: '#FC6E51' };
function loadGPX(traces)
traces.forEach(function(trace) {
omnivore.gpx('/traces/' + trace + '.gpx', null, customLayer)