@geoblocks/edittrack
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-beta.8 • Public • Published

Edittrack geoblock

Description

Edittrack is a Javascript UI library to draw tracks along a network. It has the following concepts:

  • segments: straight lines or snapped linestrings;
  • POIs: points with arbitrary position and meta data;
  • control points: points along between segments that drives the modification of segments;
  • routers: objects transforming a straight line to a snapped linestring along a network;
  • profilers: objects adding 3d dimension to segments.

Current router implementations:

  • Graphhopper;
  • OSRM.

Current profiler implementations:

  • Swisstopo;
  • ExtractFromSegment.

The main class is the TrackManager

Online doc and demos

Local development

For local developpement we use a few demos.

npm install
npm run start
open http://localhost:1234/schm/schm.html?trackId=1250755006
open http://localhost:1234/simple/simple.html

Publish a new version to npm

The source is transpiled to standard ES modules and published on npm.

# update CHANGES.md
npm version patch
npm publish
git push --tags origin master
npm run gh-pages

Dependencies (0)

    Dev Dependencies (17)

    Package Sidebar

    Install

    npm i @geoblocks/edittrack

    Weekly Downloads

    161

    Version

    2.0.0-beta.8

    License

    BSD-3-Clause

    Unpacked Size

    260 kB

    Total Files

    76

    Last publish

    Collaborators

    • vladyslavtk
    • gberaudo
    • sbrunner
    • fredj
    • bgerber