@mapbox/mapbox-directions.js

0.4.0 • Public • Published

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

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

/@mapbox/mapbox-directions.js/

    Package Sidebar

    Install

    npm i @mapbox/mapbox-directions.js

    Weekly Downloads

    1

    Version

    0.4.0

    License

    BSD-2-Clause

    Last publish

    Collaborators

    • mbx-npm-ci-production
    • mbx-npm-ci-staging
    • mbx-npm-advanced-actions-production
    • mbx-npm-advanced-actions-staging
    • mbx-npm-09-production
    • mbx-npm-08-production
    • mbx-npm-07-production
    • mbx-npm-06-production
    • mbx-npm-05-production
    • mbx-npm-04-production
    • mbx-npm-03-production
    • mbx-npm-02-production
    • mbx-npm-01-production
    • mbx-npm-02-staging
    • mapbox-npm-01
    • mapbox-npm-02
    • mapbox-npm-07
    • mapbox-npm-03
    • mapbox-npm-04
    • mapbox-npm-09
    • mapbox-npm-05
    • mapbox-npm-06
    • mapbox-npm-08
    • mapbox-npm-advanced-actions
    • mapbox-npm-ci
    • mapbox-npm
    • mapbox-admin
    • mapbox-machine-user