Refactor voice hints into subclasses
This commit is contained in:
parent
fd0ece0d31
commit
e34e6a4cb0
2 changed files with 145 additions and 93 deletions
|
|
@ -16,8 +16,8 @@ BR.Gpx = {
|
|||
let gpxTransform = trkNameTransform;
|
||||
|
||||
if (turnInstructionMode > 0) {
|
||||
const voiceHints = BR.voiceHints(geoJson);
|
||||
gpxTransform = voiceHints.getGpxTransform(turnInstructionMode, transportMode);
|
||||
const voiceHints = BR.voiceHints(geoJson, turnInstructionMode, transportMode);
|
||||
gpxTransform = voiceHints.getGpxTransform();
|
||||
}
|
||||
|
||||
let gpx = togpx(geoJson, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue