@stamen/cartodb-tilelayer

0.2.0 • Public • Published

CartoDBTileLayer

Load and render tiles from CartoDB into a react-leaflet map.

Part of the @stamen/panorama toolkit.

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import { CartoDBTileLayer } from '@panorama/toolkit';

ReactDOM.render(
  <Map>
    <CartoDBTileLayer
      userId={ /* cartodb user id */ }
      sql={ /* SQL query to generate tiles */ }
      cartocss={ /* CartoCSS to style tiles */ }
    />
  </Map>, document.body);

/@stamen/cartodb-tilelayer/

    Package Sidebar

    Install

    npm i @stamen/cartodb-tilelayer

    Weekly Downloads

    0

    Version

    0.2.0

    License

    ISC

    Last publish

    Collaborators

    • ericsoco
    • mojodna
    • stamen