Skip to content

Commit

Permalink
Update from feature state PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed May 4, 2018
1 parent 427cd07 commit 0769d52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/style/style_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from './validate_style';
import { Evented } from '../util/evented';
import { Layout, Transitionable, Transitioning, Properties, PossiblyEvaluatedPropertyValue } from './properties';
import { supportsPropertyExpression } from '../style-spec/util/properties';

import type {Bucket} from '../data/bucket';
import type Point from '@mapbox/point-geometry';
Expand Down Expand Up @@ -205,7 +206,7 @@ class StyleLayer extends Evented {
isStateDependent() {
for (const property in (this: any).paint._values) {
const value = (this: any).paint.get(property);
if (!(value instanceof PossiblyEvaluatedPropertyValue) || !value.property.specification['property-function']) {
if (!(value instanceof PossiblyEvaluatedPropertyValue) || !supportsPropertyExpression(value.property.specification)) {
continue;
}

Expand Down

0 comments on commit 0769d52

Please sign in to comment.