Hello,
saldy I had some Problems with the automatic Scale from the Altitude Chart. It was not working at all. I made some changes (with worst code), but now it’s working very fine by me. Maybe I made a mistake that it was not working before.
Change on WP-GPX-Maps.js
if (graphEle != ”)
{
var eleData = [];
var myelemin = 9999;
var myelemax = 0;
for (i=0; i<valLen; i++)
{
if (graphDist != null)
eleData.push([graphDist,graphEle]);
if (graphEle > myelemax) myelemax = graphEle; if (graphEle < myelemin) myelemin = graphEle;
}
var yaxe = {
title: { text: null },
labels: {
align: ‘left’,
formatter: function() {
return Highcharts.numberFormat(this.value, l_y.dec,decPoint,thousandsSep) + l_y.suf;
}
}
}
if ( chartFrom1 != ” )
{
yaxe.min = chartFrom1;
yaxe.startOnTick = false;
}
else { yaxe.min = myelemin; }
if ( chartTo1 != ” )
{
yaxe.max = chartTo1;
yaxe.endOnTick = false;
}
else { yaxe.max = myelemax; }
hoptions.yAxis.push(yaxe);
hoptions.series.push({
name: lng.altitude,
lineWidth: 1,
marker: { radius: 0 },
data : eleData,
color: color2,
yAxis: hoptions.series.length
});
l_y_arr.push(l_y);
}