Hallo,
would it be possible to add lazy loading (e.g. http://osvaldas.info/lazy-loading-google-maps ).
And I’ve a small improvement for myself – instead / additonal of the download link I added a qr code.
If you like this, you could add this idea:
1. option – direct download:
$gpxurl = $dummy.$gpxurl;
$qrurl = "https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=";
$qrurl .= rawurlencode ( $gpxurl );
$output.="<a href='$gpxurl' target='_new' download='route.gpx'><div style='text-align: center;'><img src='$qrurl'></div></a>";
2. option (which I prefer) – qr code to open the post where the download link is:
$gpxurl = $dummy.$gpxurl;
$qrurl = "https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=";
$qrurl .=get_permalink();
$output.="<a href='$gpxurl' target='_new' download='route.gpx'><div style='text-align: center;'>Download GPX<br><img src='$qrurl'</div></a>";
Thank you very much!