mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
typed some utils
This commit is contained in:
parent
cf6866240b
commit
5c3f09ec2c
5 changed files with 34 additions and 22 deletions
|
@ -5,7 +5,6 @@ export interface IRoutePoint {
|
|||
lng: number,
|
||||
}
|
||||
|
||||
|
||||
interface IGPXSticker {
|
||||
latlng: IRoutePoint,
|
||||
text?: string,
|
||||
|
@ -45,7 +44,7 @@ export const getGPXString = ({ route, title, stickers }: IGetGPXString): string
|
|||
</gpx>
|
||||
`);
|
||||
|
||||
export const downloadGPXTrack = ({ track, title }: { track: string, title?: string }) => (
|
||||
export const downloadGPXTrack = ({ track, title }: { track: string, title?: string }): void => (
|
||||
saveAs(
|
||||
new Blob([track], { type: 'application/gpx+xml;charset=utf-8' }),
|
||||
`${title || 'track'}.gpx`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue