Neilblaze / mapbox-directions.js

Leaflet plugin for the Mapbox Directions API

Home Page:https://www.mapbox.com/mapbox.js/example/v1.0.0/mapbox-directions/

Repository from Github https://github.comNeilblaze/mapbox-directions.jsRepository from Github https://github.comNeilblaze/mapbox-directions.js

mapbox-directions.js

Build Status

This is a Mapbox.js plugin for the Mapbox Directions API. Its main features include:

  • Input controls for origin and destination
  • Draggable origin and destination markers
  • Draggable intermediate waypoints
  • Display of turn-by-turn instructions
  • Selection of alternate routes

Managed as Markdown in API.md, following the standards in DOCUMENTING.md

Development

Run npm install to install dependencies.

The npm start task will start up a live-reloading and regenerating development server.

Building

Requires node.js installed on your system.

git clone https://github.com/mapbox/mapbox-directions.js.git
cd mapbox-directions.js
npm install
make

This project uses browserify to combine dependencies and installs a local copy when you run npm install. make will build the project in dist/.

Tests

Test with smokestack:

npm test

About

Leaflet plugin for the Mapbox Directions API

https://www.mapbox.com/mapbox.js/example/v1.0.0/mapbox-directions/

License:ISC License


Languages

Language:JavaScript 85.5%Language:HTML 13.8%Language:Makefile 0.7%