create anchor points hierarchy for edition

This commit is contained in:
vcoppe
2024-04-23 14:11:05 +02:00
parent d46662e038
commit b38c75be9a
5 changed files with 211 additions and 11 deletions

View File

@@ -427,6 +427,14 @@ export class TrackPoint {
return this.attributes;
}
getLatitude(): number {
return this.attributes.lat;
}
getLongitude(): number {
return this.attributes.lon;
}
getHeartRate(): number {
return this.extensions && this.extensions['gpxtpx:TrackPointExtension'] && this.extensions['gpxtpx:TrackPointExtension']['gpxtpx:hr'] ? this.extensions['gpxtpx:TrackPointExtension']['gpxtpx:hr'] : undefined;
}