[build] Special case heatmap-color so it doesn't crash make style-code
This commit is contained in:
@@ -413,7 +413,11 @@ global.describeValue = function (value, property, layerType) {
|
||||
};
|
||||
|
||||
global.propertyDefault = function (property, layerType) {
|
||||
return 'an `MGLStyleValue` object containing ' + describeValue(property.default, property, layerType);
|
||||
if (property.name === 'heatmap-color') {
|
||||
return 'a rainbow color scale from blue to red';
|
||||
} else {
|
||||
return 'an `MGLStyleValue` object containing ' + describeValue(property.default, property, layerType);
|
||||
}
|
||||
};
|
||||
|
||||
global.originalPropertyName = function (property) {
|
||||
|
||||
@@ -111,6 +111,10 @@ global.defaultValue = function (property) {
|
||||
return '{}';
|
||||
}
|
||||
|
||||
if (property.name === 'heatmap-color') {
|
||||
return '{}';
|
||||
}
|
||||
|
||||
switch (property.type) {
|
||||
case 'number':
|
||||
return property.default;
|
||||
|
||||
Reference in New Issue
Block a user