rc-leaflet icon indicating copy to clipboard operation
rc-leaflet copied to clipboard

React Map Components of Leaflet.js

React Map Components of Leaflet.js

CHANGELOG

Docs

Features

  • [x] TypeScript support

  • [x] JSX support for Popup, Tooltip and DivIcon

  • [x] MassPoints support, about max 150k points. (v1.1.0+)

  • [x] ClusterPoints support, about max 50k points. (v1.1.0+)

  • [x] RCMap scope Theme support

  • [x] Import on Demand (tree-shaking)

Components

Plugins

Configuration

Usage

Install

npm install rc-leaflet --save

Import on Demand

npm install babel-plugin-import --save-dev
// .babelrc or babel-loader option
{
  "plugins": [
    [
      "import",
      {
        "libraryName": "rc-leaflet",
        "libraryDirectory": "es/components",
        "camel2DashComponentName": false
      },
      "rc-leaflet-import"
    ]
  ]
}