diff --git a/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/color/vector_style_color_editor.js b/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/color/vector_style_color_editor.js index c38c2054860ad..98b20cb3ad62e 100644 --- a/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/color/vector_style_color_editor.js +++ b/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/color/vector_style_color_editor.js @@ -9,15 +9,12 @@ import React from 'react'; import { StaticDynamicStyleRow } from '../static_dynamic_style_row'; import { DynamicColorSelection } from './dynamic_color_selection'; import { StaticColorSelection } from './static_color_selection'; -import { getVectorStyleLabel } from '../get_vector_style_label'; export function VectorStyleColorEditor(props) { return ( { @@ -37,7 +34,7 @@ export class StaticDynamicStyleRow extends React.Component { type: VectorStyle.STYLE_TYPE.STATIC, options, }; - this.props.handlePropertyChange(this.props.property, styleDescriptor); + this.props.handlePropertyChange(this.props.styleProperty.getStyleName(), styleDescriptor); }; _onDynamicStyleChange = options => { @@ -45,7 +42,7 @@ export class StaticDynamicStyleRow extends React.Component { type: VectorStyle.STYLE_TYPE.DYNAMIC, options, }; - this.props.handlePropertyChange(this.props.property, styleDescriptor); + this.props.handlePropertyChange(this.props.styleProperty.getStyleName(), styleDescriptor); }; _onTypeToggle = () => { @@ -100,7 +97,10 @@ export class StaticDynamicStyleRow extends React.Component { - + {this._renderStyleSelector()} diff --git a/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/vector_style_editor.js b/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/vector_style_editor.js index c8e4150fd2c26..3043d57c04037 100644 --- a/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/vector_style_editor.js +++ b/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/vector_style_editor.js @@ -15,7 +15,6 @@ import { OrientationEditor } from './orientation/orientation_editor'; import { getDefaultDynamicProperties, getDefaultStaticProperties, - vectorStyles, } from '../vector_style_defaults'; import { DEFAULT_FILL_COLORS, DEFAULT_LINE_COLORS } from '../../color_utils'; import { VECTOR_SHAPE_TYPES } from '../../../sources/vector_feature_types'; @@ -121,10 +120,9 @@ export class VectorStyleEditor extends Component { _renderFillColor() { return (