0.1.1 • Published 4 years ago

olhoneycomb v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

OlHoneycomb

Openlayers honeycomb layer source extension.

Live Demo

Effect

effect

Usage

Like using cluster:

install

npm i olhoneycomb

 

import and using

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

0.1.1

4 years ago

0.1.0

4 years ago