Skip to content

routehub/elevation-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chartjs-util-elevation

npm version

Map and Elevation Graph Library. using Chart.js and turf.js.

usage

shell

$ npm install chartjs-util-elevation

template

<canvas id="elevation" style="width: 100%; height: 200px;"></canvas>

tsfile

import chartjs_utils_elevation from 'chartjs-util-elevation'


// lon,lat,alt
const dom = document.querySelector("#elevation")
const cooard = [[135.19513,34.69895,23.1],[135.19558,34.69914,22.8],[135.19618,34.69939,23.4]...]

const chart = chartjs_utils_elevation(dom, cooard, {})

About

Elevation Graph Library. using Chart.js and turf.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published