geoblocks / edittrack

Home Page:https://geoblocks.github.io/edittrack/schm.html?trackId=1250755006

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

https://geoblocks.github.io/edittrack/schm.html?trackId=1250755006

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 100.0%