This commit is contained in:
15
node_modules/@mapbox/mapbox-gl-style-spec/util/properties.js
generated
vendored
Normal file
15
node_modules/@mapbox/mapbox-gl-style-spec/util/properties.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// @flow
|
||||
|
||||
import type {StylePropertySpecification} from '../style-spec.js';
|
||||
|
||||
export function supportsPropertyExpression(spec: StylePropertySpecification): boolean {
|
||||
return spec['property-type'] === 'data-driven';
|
||||
}
|
||||
|
||||
export function supportsZoomExpression(spec: StylePropertySpecification): boolean {
|
||||
return !!spec.expression && spec.expression.parameters.indexOf('zoom') > -1;
|
||||
}
|
||||
|
||||
export function supportsInterpolation(spec: StylePropertySpecification): boolean {
|
||||
return !!spec.expression && spec.expression.interpolated;
|
||||
}
|
||||
Reference in New Issue
Block a user