Package Exports
- mapbox-gl-overpass
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mapbox-gl-overpass) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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-overpassconst 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());