meey-gl-directions

1.1.7 • Public • Published

Meey GL Directions

This package extend from Mapbox.

Usage

var mapboxgl = require('mapbox-gl');
var MeeyDirections = require('meey-gl-directions');

var directions = new MeeyDirections({
  accessToken: 'YOUR-MAPBOX-ACCESS-TOKEN',
  unit: 'metric',
  profile: 'cycling'
});

var map = new mapboxgl.Map({
  container: 'map',
  style: 'mapbox://styles/mapbox/streets-v12'
});

map.addControl(directions, 'top-left');

Live example: https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/

Deeper dive

See API.md for complete reference.

Contributing

See CONTRIBUTING.md.

Package Sidebar

Install

npm i meey-gl-directions

Weekly Downloads

5

Version

1.1.7

License

ISC

Unpacked Size

435 kB

Total Files

47

Last publish

Collaborators

  • quyenbv