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