-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Maps] Enable borders for icon symbols #43066
Changes from 5 commits
cee4186
6f7e3e8
831cf3f
048837f
e2dad1e
27cbed2
3c87135
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ import { VectorStyleSymbolEditor } from './vector_style_symbol_editor'; | |
import { OrientationEditor } from './orientation/orientation_editor'; | ||
import { getDefaultDynamicProperties, getDefaultStaticProperties } from '../../vector_style_defaults'; | ||
import { VECTOR_SHAPE_TYPES } from '../../../sources/vector_feature_types'; | ||
import { SYMBOLIZE_AS_CIRCLE } from '../../vector_constants'; | ||
import { SYMBOLIZE_AS_ICON } from '../../vector_constants'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { SYMBOL_OPTIONS } from '../../symbol_utils'; | ||
|
||
|
@@ -140,23 +140,8 @@ export class VectorStyleEditor extends Component { | |
} | ||
|
||
_renderPointProperties() { | ||
let lineColor; | ||
let lineWidth; | ||
let iconOrientation; | ||
if (this.props.styleProperties.symbol.options.symbolizeAs === SYMBOLIZE_AS_CIRCLE) { | ||
lineColor = ( | ||
<Fragment> | ||
{this._renderLineColor()} | ||
<EuiSpacer size="m" /> | ||
</Fragment> | ||
); | ||
lineWidth = ( | ||
<Fragment> | ||
{this._renderLineWidth()} | ||
<EuiSpacer size="m" /> | ||
</Fragment> | ||
); | ||
} else { | ||
if (this.props.styleProperties.symbol.options.symbolizeAs === SYMBOLIZE_AS_ICON) { | ||
iconOrientation = ( | ||
<Fragment> | ||
<OrientationEditor | ||
|
@@ -185,9 +170,15 @@ export class VectorStyleEditor extends Component { | |
{this._renderFillColor()} | ||
<EuiSpacer size="m" /> | ||
|
||
{lineColor} | ||
<Fragment> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fragment wrapper is not needed here |
||
{this._renderLineColor()} | ||
<EuiSpacer size="m" /> | ||
</Fragment> | ||
|
||
{lineWidth} | ||
<Fragment> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fragment wrapper is not needed here |
||
{this._renderLineWidth()} | ||
<EuiSpacer size="m" /> | ||
</Fragment> | ||
|
||
{iconOrientation} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update
SymbolIcon.propTypes
definition at end of file to includestroke
andstrokeWidth