0.0.7 • Published 2 years ago

gpx-replay-react v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Logo

Website: gpx.pelmers.com

npm.io

Description

GPX Replay takes your GPX file and replays it on a map. The tool runs entirely on the client browser.

Repeat: no data is sent to a server. The GPX file is loaded into the browser and processed on your computer.

Essentially it began as a subset of streetwarp-web that skipped the video generation, then I added a bunch of things to it. The map uses the mapbox API. I made this tool to add map animations to my Eurovelo 6 video guide.

Features

  • Upload GPX file (track or route) and see it on a map
  • Replay the GPX file, allowing many custom settings

Map Examples

Usage as Library

$ yarn add gpx-replay-react
import { MapComponent } from 'gpx-replay-react';

<MapComponent
    playbackFPS={30}
    mapboxAccessToken={mapBoxAccessToken}
    gpxInfo={{
        name,
        distance: {
            total: totalDistance,
        },
        points: [{lat: 10, lon: 10, ele: 0}, ...],
        sizeBytes: 1000,
    }}
    bindKeys
    showElevationProfile
/>

New Features

0.04

  • Added initialState prop to MapComponent
  • Added disableSettings prop to MapComponent
  • Added packaging for script version of library, which exports global GpxReplay.MapComponent. Include via <script src="https://unpkg.com/gpx-replay-react@0.04/dist/script.js">
0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago