Skip to content

zakjan/deck.gl-leaflet

Repository files navigation

deck.gl-leaflet

deck.gl plugin for Leaflet

Demo

Screenshot

Install

npm install deck.gl-leaflet

or

<script src="https://unpkg.com/deck.gl-leaflet@1.2.1/dist/deck.gl-leaflet.min.js"></script>

Usage

import { LeafletLayer } from 'deck.gl-leaflet';
const map = L.map(...);
const deckLayer = new LeafletLayer({
  views: [
    new MapView({
      repeat: true
    })
  ],
  layers: [
    new ScatterplotLayer({
      data: [...],
    })
  ]
});
map.addLayer(deckLayer);