1.0.3 • Published 4 years ago

ee-max-value-heatmap v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Heatmap based on max value

This is the heatmap library on top of deck .gl. It decides color based on max value of nearest points.

Installation

Using npm.

npm install ee-max-value-heatmap

Usage

import MaxValueHeatmap from 'ee-max-value-heatmap';
import { Deck } from '@deck.gl/core';

let deck = new Deck({
                canvas: 'deck-canvas',
                width: '100%',
                height: '100%',
                initialViewState: INITIAL_VIEW_STATE,
                controller: true
});
const HEATMAP_LAYER = new MaxValueHeatmap({
                id: 'heatmap',
                data,
                opacity: 0.9,
                getPosition: d => d.geometry.coordinates,
                getWeight: d => d.properties.value
            });
deck.setProps({
                layers: [HEATMAP_LAYER]
            });

License

ISC

1.0.3

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago