find correct zoom attribute in spec

This commit is contained in:
Chris Whong
2018-08-03 15:25:05 -04:00
parent 988b7fca0f
commit 9a34db7008
2 changed files with 16 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ export default class FunctionButtons extends React.Component {
render() {
let makeZoomButton, makeDataButton
if (this.props.fieldSpec['zoom-function']) {
if (this.props.fieldSpec.expression.parameters.includes('zoom')) {
makeZoomButton = <Button
className="maputnik-make-zoom-function"
onClick={this.props.onZoomClick}