Skip to content

Latest commit

 

History

History

CartoDBTileLayer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

CartoDBTileLayer

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

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