summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand Thakker <github@anandthakker.net>2018-02-05 13:06:46 -0500
committerAnand Thakker <github@anandthakker.net>2018-02-05 13:06:46 -0500
commitb68a8cbc36289ddfc12e82d883bb435db5f6c8c2 (patch)
treea87f24be742304d49c1f2a9ee113404f26ead6ab
parent31dbf15a7f4420a4eac1c50955f9ba7687bff531 (diff)
downloadqtlocation-mapboxgl-b68a8cbc36289ddfc12e82d883bb435db5f6c8c2.tar.gz
Add style-spec doc override for `heatmap-color`
-rw-r--r--platform/darwin/scripts/style-spec-overrides-v8.json7
-rw-r--r--platform/darwin/src/MGLHeatmapStyleLayer.h2
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 6a32b0f446..723c856048 100644
--- a/platform/darwin/scripts/style-spec-overrides-v8.json
+++ b/platform/darwin/scripts/style-spec-overrides-v8.json
@@ -79,6 +79,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)."
@@ -114,4 +119,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