# leaflet-fuzzy

> Made with create-react-library

Latest version **1.0.3** (published 2021-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install leaflet-fuzzy
pnpm add leaflet-fuzzy
yarn add leaflet-fuzzy
bun add leaflet-fuzzy
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-03-21 |
| First published | 2021-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 68.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | madeleinehill |
| Maintainers | henryhill1999 |

## Links

- npm: https://www.npmjs.com/package/leaflet-fuzzy
- Repository: https://github.com/madeleinehill/leaflet-fuzzy
- Homepage: https://github.com/madeleinehill/leaflet-fuzzy#readme
- Issues: https://github.com/madeleinehill/leaflet-fuzzy/issues
- npm.io page: https://npm.io/package/leaflet-fuzzy

## Dependencies (3)

- [pixi.js](https://npm.io/package/pixi.js.md) ^5.3.7
- [react-jss](https://npm.io/package/react-jss.md) ^10.5.0
- [leaflet-pixi-overlay](https://npm.io/package/leaflet-pixi-overlay.md) ^1.8.1

## Recent versions

- 1.0.3 (latest) — 2021-03-21
- 1.0.2 — 2021-03-21

## README

# leaflet-fuzzy

Leaflet-Fuzzy ([demo](https://www.scrapethepast.com/leafletfuzzy)) allows for the encoding of fuzziness into polygons on Leaflet. Fuzziness can represent a transitional element or uncertainty in the extent of a geographic entity. Leaflet-Fuzzy provides a layer which can display geojson, with special properties including `blurIntensity`. A properties object can be added to any JSON object and will be inherited by its children. 

## Install

```bash
npm install --save leaflet-fuzzy
```

## Usage

```jsx
import React, { Component } from 'react'

import { FuzzyLayer } from 'leaflet-fuzzy'

class Example extends Component {
  render() {
    return <FuzzyLayer
              data={[
                {
                  "type": "FeatureCollection",
                  "features": [
                    {
                      "type": "Feature",
                      "properties": {
                        "blurIntensity": 40,
                        "fill": "0x0000ff",
                      },
                      "geometry": {
                        "type": "Polygon",
                        "coordinates": [
                          [
                            [
                              -103.095703125,
                              39.40224434029275
                            ],
                            [
                              -105.732421875,
                              37.19533058280065
                            ],
                            [
                              -103.095703125,
                              39.40224434029275
                            ]
                          ]
                        ]
                      }
                    },
                    {
                      "type": "Feature",
                      "properties": {
                        "blurIntensity": 20,
                        "fill": "0xff0000"
                      },
                      "geometry": {
                        "type": "Polygon",
                        "coordinates": [
                          [
                            [
                              -92.5048828125,
                              32.62087018318113
                            ],
                            [
                              -92.5048828125,
                              32.62087018318113
                            ]
                          ]
                        ]
                      }
                    }
                  ]
                }
              ]}
            ></FuzzyLayer>
  }
}
```

## License

MIT © [madeleinehill](https://github.com/madeleinehill)

---
_Source: https://npm.io/package/leaflet-fuzzy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
