@yerkopalma/mapbox-directions.js

0.5.1 • Public • Published

mapbox-directions.js

Build Status

NOTE: This is a fork for mapbox-directions plugins, that includes language support for directions. Published as scoped package to npm at @yerkopalma/mapbox-directions.js

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

API

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

Readme

Keywords

none

Package Sidebar

Install

npm i @yerkopalma/mapbox-directions.js

Weekly Downloads

1

Version

0.5.1

License

BSD-2-Clause

Last publish

Collaborators

  • yerkopalma