diff --git a/src/utils/gpx.ts b/src/utils/gpx.ts index d8c431c..3297644 100644 --- a/src/utils/gpx.ts +++ b/src/utils/gpx.ts @@ -17,14 +17,29 @@ export const getGPXString = ({ points, title }: IGetGPXString): string => (` ${title || 'GPX Track'} ${ points.reduce((cat, { lat, lng }, index) => ( - `${cat} -` + ` ${cat} + ` ), '') } `); +// export const getGPXString = ({ points, title }: IGetGPXString): string => (` +// +// +// +// ${title || 'GPX Track'} +// ${ +// points.reduce((cat, { lat, lng }, index) => ( +// `${cat} +// ` +// ), '') +// } +// +// +// `); + export const downloadGPXTrack = ({ track, title }: { track: string, title?: string }) => ( saveAs( new Blob([track], { type: 'application/gpx+xml;charset=utf-8' }),