blob: 9c0930a8c5025b765dc094f61fcda5d005187595 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { BaseBuilder } from 'gpx-builder';
import { OsmAndPoint } from './models/OsmAndPoint.ts';
export class OsmAndBuilder extends BaseBuilder {
public static MODELS = {
...BaseBuilder.MODELS,
Point: OsmAndPoint,
};
/**
* OsmAnd builder includes extensions for waypoint customization:
* https://osmand.net/docs/technical/osmand-file-formats/osmand-gpx/#waypoints-customization
*/
public constructor() {
super();
this.data = {
...this.data,
attributes: {
...this.data.attributes,
'xmlns:osmand': 'https://osmand.net/docs/technical/osmand-file-formats/osmand-gpx',
},
};
}
}
|