React Map Components of Leaflet
npm install rc-leafletTypeScript support
JSX support for Popup, Tooltip and DivIcon
MassPoints support, about max 150k points. (v1.1.0+)
ClusterPoints support, about max 50k points. (v1.1.0+)
Theme support
(v1.4.0+)
(v1.4.0+)
(v1.4.0+)
(v1.1.0+)
(v1.1.0+) will deprecate in v1.5.0+, use rc-leaflet-cluster instead
(v1.4.0+)
(v1.4.0+)
(v1.4.0+)
cmd
npm install rc-leaflet --save
`
$3
`cmd
npm install babel-plugin-import --save-dev
`
`js
// .babelrc or babel-loader option
{
"plugins": [
[
"import",
{
"libraryName": "rc-leaflet",
"libraryDirectory": "es/components",
"camel2DashComponentName": false
},
"rc-leaflet-import"
]
]
}
``