diff options
author | Anand Thakker <github@anandthakker.net> | 2018-02-05 13:06:46 -0500 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-02-07 02:14:09 -0800 |
commit | 1bceeeeef5cf25f50c8660ca2ccff5478c083e0b (patch) | |
tree | 591963a8f69d03bda022df6a4feadfa7e6c69b00 | |
parent | d2d6877f63e3aa9e65796dea6352b5833e37bdae (diff) | |
download | qtlocation-mapboxgl-1bceeeeef5cf25f50c8660ca2ccff5478c083e0b.tar.gz |
Add style-spec doc override for `heatmap-color`
-rw-r--r-- | platform/darwin/scripts/style-spec-overrides-v8.json | 7 | ||||
-rw-r--r-- | platform/darwin/src/MGLHeatmapStyleLayer.h | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/platform/darwin/scripts/style-spec-overrides-v8.json b/platform/darwin/scripts/style-spec-overrides-v8.json index 07ab7e330b..68fa9fa9f2 100644 --- a/platform/darwin/scripts/style-spec-overrides-v8.json +++ b/platform/darwin/scripts/style-spec-overrides-v8.json @@ -82,6 +82,11 @@ "doc": "The base color of this layer. The extrusion's surfaces will be shaded differently based on this color in combination with the `light` settings. If this color is specified with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacityco." } }, + "paint_heatmap": { + "heatmap-color": { + "doc": "Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `$heatmapDensity` as input." + } + }, "paint_line": { "line-pattern": { "doc": "Name of image in style images to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512)." @@ -117,4 +122,4 @@ "doc": "Distance that the text's anchor is moved from its original placement." } } -}
\ No newline at end of file +} diff --git a/platform/darwin/src/MGLHeatmapStyleLayer.h b/platform/darwin/src/MGLHeatmapStyleLayer.h index ebb7461455..8f971da85b 100644 --- a/platform/darwin/src/MGLHeatmapStyleLayer.h +++ b/platform/darwin/src/MGLHeatmapStyleLayer.h @@ -66,7 +66,7 @@ MGL_EXPORT /** Defines the color of each point based on its density value in a heatmap. - Should be an expression that uses `["heatmapDensity"]` as input. + Should be an expression that uses `$heatmapDensity` as input. The default value of this property is an expression that evaluates to a rainbow color scale from blue to red. Set this property to `nil` to reset it to the |