[Maps] Coerce property value to string to match mapbox-gl spec (#54928)

This commit is contained in:
Thomas Neirynck 2020-01-15 16:43:16 -05:00 committed by GitHub
parent 6b35b97e96
commit 8ee7ed9a06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,7 +227,7 @@ export class DynamicColorProperty extends DynamicStyleProperty {
}
mbStops.push(defaultColor); //last color is default color
return ['match', ['get', this._options.field.name], ...mbStops];
return ['match', ['to-string', ['get', this._options.field.name]], ...mbStops];
}
_getMbOrdinalColorStops() {