I'm using Omnivore to run through a directory of .gpx files, and I need to mark where is the start and end of each track.
I was using this:
for (var i = 0; i < jsonRes.length; i += 1) {
var runLayer = omnivore.gpx(folderPath + jsonRes[i], null, customLayer)
.on('ready', function() {
//runLayer.showExtremities('arrowM');
})
.addTo(trackmaps[trackmapCount])
.on('click', function(d) {
console.log(d);
});
}
But that showExtremities function (plugin - https://github.com/makinacorpus/Leaflet.LineExtremities) makes the map slow, because for whatever reason draws not only on the start and end of each track. Is there any solution for this problem?
I'm using Omnivore to run through a directory of
.gpx
files, and I need to mark where is the start and end of each track.I was using this:
But that
showExtremities
function (plugin - https://github.com/makinacorpus/Leaflet.LineExtremities) makes the map slow, because for whatever reason draws not only on the start and end of each track. Is there any solution for this problem?