Giter Club home page Giter Club logo

gpx-replay's Introduction

Logo

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.0.7

  • Fixed bug with the shading in the elevation profile not matching the position of the icon
  • Better play/pause buttons (svg instead of unicode characters ⏯️)

0.0.6

  • Added 3-D topography feature
  • Added new peter.travel style (inspired by cycle.travel))

0.0.5

0.0.4

  • 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/[email protected]/dist/script.js">

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.