Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 637 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 637 Bytes

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());