suricactus / react-leaflet-shapefile

React-Leaflet-Shapefile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-leaflet-shapefile npm version

React component build on top of React-Leaflet that integrate leaflet.shapefile functionality.

example

Install

npm install react-leaflet-shapefile

Getting started

Add some 'react-leaflet' so you can have a map. Then add

import { Map, TileLayer, FeatureGroup } from 'react-leaflet';
import { ShapeFile } from "react-leaflet-shapefile"

...

 <ShapeFile data={this.somedata} onEachFeature={this.onEachFeature} isArrayBufer={true}/>

For more details on how to use this plugin check the example.

About

React-Leaflet-Shapefile

License:MIT License


Languages

Language:JavaScript 99.9%Language:HTML 0.1%