JSPM

react-leaflet-heat-layer

1.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 73
  • Score
    100M100P100Q101843F
  • License MIT

React-leaflet-heat-layer is a plugin for react-leaflet. A wrapper component of Leaflet.heat.

Package Exports

  • react-leaflet-heat-layer
  • react-leaflet-heat-layer/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-leaflet-heat-layer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-leaflet-heat-layer npm version

  • React-leaflet v4 support
  • Typescript support

React-leaflet-heat-layer is a plugin for react-leaflet. A wrapper component of Leaflet.heat.

Installation

  • Install NodeJS
  • Run react-leaflet-heat-layer

Prerequisites

Make sure that you haveve installed react, react-leaflet and leaflet.

Example usage

import { MapContainer } from "react-leaflet";
import HeatmapLayer from "react-leaflet-heat-layer";
import { addressPoints } from "./realworld";
import "leaflet/dist/leaflet.css";

const Demo = () => {
    return (
        <MapContainer center={[51.505, -0.09]} zoom={13}>
            <HeatmapLayer latlngs={addressPoints.map((p) => [p[0], p[1]])} />
        </MapContainer>
    );
};

Reference

See: https://leaflet.github.io/Leaflet.heat/#reference

See the license