diff --git a/src/components/modals/SettingsModal.jsx b/src/components/modals/SettingsModal.jsx index 4f94b2a..2b9fdee 100644 --- a/src/components/modals/SettingsModal.jsx +++ b/src/components/modals/SettingsModal.jsx @@ -20,6 +20,17 @@ class SettingsModal extends React.Component { onOpenToggle: PropTypes.func.isRequired, } + changeTransitionProperty(property, value) { + const changedStyle = { + ...this.props.mapStyle, + transition: { + ...this.props.mapStyle.transition, + [property]: value + } + } + this.props.onStyleChanged(changedStyle) + } + changeLightProperty(property, value) { const changedStyle = { ...this.props.mapStyle, @@ -45,6 +56,7 @@ class SettingsModal extends React.Component { const inputProps = { } const light = this.props.mapStyle.light || {}; + const transition = this.props.mapStyle.transition || {}; return + + + + + + + +