JSPM

mapbox-gl-overpass

0.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q32597F
  • License Unlicense

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

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