diff options
author | Anand Thakker <github@anandthakker.net> | 2018-01-26 22:16:56 -0500 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-02-07 02:14:08 -0800 |
commit | 7c4ac24c5a60cf380acf39c40dc10cefd1dc7df6 (patch) | |
tree | 2ae78f63d7892d3be97fcca16cc821a7cb95a71c /platform/darwin/test/MGLStyleLayerTests.mm.ejs | |
parent | a5f4c0649390d237143414e807dda756e719ded2 (diff) | |
download | qtlocation-mapboxgl-7c4ac24c5a60cf380acf39c40dc10cefd1dc7df6.tar.gz |
Specialize codegen for heatmap-color property
Because `heatmap-color` must be an expression depending only on the `["heatmap-density"]` (`$heatmapDensity`) variable, it's represented in core using a specialized `HeatmapColorPropertyValue` class rather than `PropertyValue<T>` or `DataDrivenPropertyValue<T>`. This change updates the darwin codegen to reflect that.
Diffstat (limited to 'platform/darwin/test/MGLStyleLayerTests.mm.ejs')
-rw-r--r-- | platform/darwin/test/MGLStyleLayerTests.mm.ejs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/darwin/test/MGLStyleLayerTests.mm.ejs b/platform/darwin/test/MGLStyleLayerTests.mm.ejs index e26c63e662..e17501ed18 100644 --- a/platform/darwin/test/MGLStyleLayerTests.mm.ejs +++ b/platform/darwin/test/MGLStyleLayerTests.mm.ejs @@ -59,6 +59,7 @@ MGLTransition transitionTest = MGLTransitionMake(5, 4); <% for (const property of properties) { -%> +<% if (property.name === 'heatmap-color') continue; -%> // <%- originalPropertyName(property) %> { @@ -151,6 +152,7 @@ - (void)testPropertyNames { <% for (const property of properties) { -%> +<% if (property.name === 'heatmap-color') continue; -%> [self testPropertyName:@"<%- property.getter || property.name %>" isBoolean:<%- property.type === 'boolean' ? 'YES' : 'NO' %>]; <% } -%> } |