Issue #380 - fix for data functions

This commit is contained in:
Robin Summerhill
2018-10-03 20:11:53 +01:00
parent 63a2495c68
commit 4c13350c14
3 changed files with 20 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ export default class FunctionButtons extends React.Component {
/>
</Button>
if (this.props.fieldSpec['property-function'] && ['piecewise-constant', 'interpolated'].indexOf(this.props.fieldSpec['function']) !== -1) {
if (this.props.fieldSpec['property-type'] === 'data-driven') {
makeDataButton = <Button
className="maputnik-make-data-function"
onClick={this.props.onDataClick}