|
|
@@ -39,14 +39,16 @@
|
|
39
|
39
|
}))
|
|
40
|
40
|
console.log(path)
|
|
41
|
41
|
// -----------------------------
|
|
42
|
|
- this.chartData = []
|
|
|
42
|
+ this.chartData = [
|
|
|
43
|
+ ['', 'Feet']
|
|
|
44
|
+ ]
|
|
43
|
45
|
this.elevationService = new google.maps.ElevationService() // eslint-disable-line no-undef
|
|
44
|
46
|
this.elevationService.getElevationAlongPath({
|
|
45
|
47
|
'path': path,
|
|
46
|
|
- 'samples': 256
|
|
|
48
|
+ 'samples': 264
|
|
47
|
49
|
}, (elevations, status) => {
|
|
48
|
50
|
if (status === 'OK') {
|
|
49
|
|
- elevations.forEach(e => this.chartData.push(['elevation', e.elevation]))
|
|
|
51
|
+ elevations.forEach(e => this.chartData.push(['', e.elevation]))
|
|
50
|
52
|
}
|
|
51
|
53
|
})
|
|
52
|
54
|
console.log(this.chartData)
|