mirror of
https://github.com/maputnik/editor.git
synced 2026-11-28 12:54:20 +00:00
find correct zoom attribute in spec
This commit is contained in:
1 parent
988b7fca0f
commit
9a34db7008
2 files changed
+16
-16
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user