react-geojson-cluster
v0.0.7
Published
react geojson cluster component
Downloads
8
Maintainers
Readme
react-geojson-cluster
npm install react-geojson-cluster
example
import React from 'react';
import { Map, Marker, Popup, TileLayer } from 'react-leaflet';
import { GeoJsonCluster } from'react-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='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
/>
<GeoJsonCluster data={your_geojson} />
</Map>;
React.render(map, document.getElementById('map-container'));
License
MIT