# olhoneycomb

> Openlayers honeycomb layer source extension

Latest version **0.1.1** (published 2020-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install olhoneycomb
pnpm add olhoneycomb
yarn add olhoneycomb
bun add olhoneycomb
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2020-07-26 |
| First published | 2020-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | zxyao |
| Maintainers | zxyao |
| Keywords | Openlayers, ol, honeycomb |

## Links

- npm: https://www.npmjs.com/package/olhoneycomb
- Repository: https://github.com/zxyao145/OlHoneycomb
- Homepage: https://github.com/zxyao145/OlHoneycomb#readme
- Issues: https://github.com/zxyao145/OlHoneycomb/issues
- npm.io page: https://npm.io/package/olhoneycomb

## Dependencies (1)

- [ol](https://npm.io/package/ol.md) ^6.3.1

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2020-07-26
- 0.1.0 — 2020-07-26

## README

# OlHoneycomb

Openlayers honeycomb layer source extension.

[Live Demo](https://zxyao145.github.io/OlHoneycomb/)



# Effect

![effect](https://github.com/zxyao145/OlHoneycomb/raw/main/images/OlHoneycomb.png)



# Usage

Like using cluster：

**install**

``` bash
npm i olhoneycomb
```

&nbsp; 

**import and using** 

```typescript
import Honeycomb from "olhoneycomb"

const source = new VectorSource({ features: features });

let honeycombSource = new Honeycomb({
  radius: 40,
  source: source,
});

let honeycombLayer = new VectorLayer({
  source: honeycombSource,
  style: function(fe) {        
    var size = fe.get('features').length;
    //Perform style calculation
    
    //rerurn style
});
```

For example, see **demo/src/index.js**



# Implementation principle

See my post: https://www.zxyao.net/Essays/Details/ZhengLiuBianXingKongJianJuLei

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