valhalla / demos

demos
MIT License
99 stars 57 forks source link

pick a sane sampling based on input #93

Closed kevinkreiser closed 9 years ago

kevinkreiser commented 9 years ago

this will update the slider based on the input points so that not too many or too few points are sampled. the goldilocks algorithm we can call it

also allow sending locations in the url:

valhalla.github.io/demos/elevation/index.html?sample=[{"lat":47.22,"lon":9.33},{"lat":47.37,"lon":9.44}]#loc=12,47.2762,9.4410

for example

dnesbitt61 commented 9 years ago

:shipit (if the JS folks agree)

dgearhart commented 9 years ago

:bear: :bear: :bear: