Skip to content

A Mapbox GL JS plugin to query data from the OpenStreetMap project via the Overpass API

License

Notifications You must be signed in to change notification settings

planemad/mapbox-gl-overpass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Mapbox GL JS plugin to query data from the OpenStreetMap project via the Overpass API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published