Add ol.layer.Heatmap class and example

This commit is contained in:
Frederic Junod
2014-02-19 12:06:13 +01:00
parent 9d05e08b49
commit c32d8a2e53
6 changed files with 311 additions and 1 deletions

View File

@@ -540,6 +540,26 @@
* @todo stability experimental
*/
/**
* @typedef {Object} olx.layer.HeatmapOptions
* @property {number|undefined} brightness Brightness.
* @property {number|undefined} contrast Contrast.
* @property {number|undefined} hue Hue.
* @property {Array.<string>|undefined} gradient The color gradient of the heatmap,
* specified as an array of CSS color strings. Default is `['#00f', '#0ff', '#0f0', '#ff0', '#f00']`.
* @property {number|undefined} minResolution The minimum resolution
* (inclusive) at which this layer will be visible.
* @property {number|undefined} maxResolution The maximum resolution
* (exclusive) below which this layer will be visible.
* @property {number|undefined} opacity Opacity. 0-1. Default is `1`.
* @property {number|undefined} saturation Saturation.
* @property {ol.source.Vector} source Source.
* @property {ol.style.Style|Array.<ol.style.Style>|ol.feature.StyleFunction|undefined} style Layer style.
* @property {boolean|undefined} visible Visibility. Default is `true` (visible).
* @todo stability experimental
*/
/**
* @typedef {Object} olx.layer.TileOptions
* @property {number|undefined} brightness Brightness. Default is `0`.