diff --git a/src/components/modals/SettingsModal.jsx b/src/components/modals/SettingsModal.jsx index 44dbf26..e6aa890 100644 --- a/src/components/modals/SettingsModal.jsx +++ b/src/components/modals/SettingsModal.jsx @@ -7,6 +7,8 @@ import ArrayInput from '../inputs/ArrayInput' import NumberInput from '../inputs/NumberInput' import StringInput from '../inputs/StringInput' import SelectInput from '../inputs/SelectInput' +import EnumInput from '../inputs/EnumInput' +import ColorField from '../fields/ColorField' import Modal from './Modal' class SettingsModal extends React.Component { @@ -18,6 +20,17 @@ class SettingsModal extends React.Component { onOpenToggle: PropTypes.func.isRequired, } + changeLightProperty(property, value) { + const changedStyle = { + ...this.props.mapStyle, + light: { + ...this.props.mapStyle.light, + [property]: value + } + } + this.props.onStyleChanged(changedStyle) + } + changeStyleProperty(property, value) { const changedStyle = { ...this.props.mapStyle, @@ -30,6 +43,9 @@ class SettingsModal extends React.Component { const metadata = this.props.mapStyle.metadata || {} const {onChangeMetadataProperty, mapStyle} = this.props; const inputProps = { } + + const light = this.props.mapStyle.light || {}; + return + + + + + + + + + + + + + + + + + }