meey-gl-directions
v1.1.7
Published
A meeygl plugin for the Meey Directions API
Downloads
25
Readme
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.