mapbox-gl-overpass
v0.0.5
Published
A Mapbox GL JS plugin to query data from the OpenStreetMap project via the Overpass API
Downloads
5
Maintainers
Readme
mapbox-gl-overpass
A Mapbox GL JS plugin to query data from the OpenStreetMap project via the Overpass API.
Usage
When using NPM
npm install --save mapbox-gl mapbox-gl-overpass
const mapboxgl = require('mapbox-gl')
const MapboxOverpass = require('@mapbox/mapbox-gl-overpass');
const map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/traffic-night-v2',
center: [-77.0259, 38.9010],
zoom: 9
});
map.addControl(new MapboxOverpass());