geojson marker clustering component
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
lib
src
.babelrc
.gitignore
LICENSE
index.js
package.json
readme.md

readme.md

react-leaflet-geojson-cluster

NPM

npm install react-leaflet-geojson-cluster

view demo

example

import React from 'react';
import { Map, TileLayer } from 'react-leaflet';
import GeoJsonCluster from 'react-leaflet-geojson-cluster';

const map = <Map id="map" center={[30.25, -97.75]} zoom={13}>
  <TileLayer
    url='https://{s}.tiles.mapbox.com/v3/{id}/{z}/{x}/{y}.png'
    attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
    />
  <GeoJsonCluster data={your_geojson} />
</Map>;

React.render(map, document.getElementById('map-container'));

License

MIT