From 66ac6229418217a19c14656182ec7121b98643cb Mon Sep 17 00:00:00 2001 From: Nathan Reese Date: Mon, 23 Sep 2024 08:04:27 -0600 Subject: [PATCH] unsaved changes --- .../public/react_embeddable/map_renderer/map_renderer.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/maps/public/react_embeddable/map_renderer/map_renderer.tsx b/x-pack/plugins/maps/public/react_embeddable/map_renderer/map_renderer.tsx index 5821fe82d6615..459c99f9d981c 100644 --- a/x-pack/plugins/maps/public/react_embeddable/map_renderer/map_renderer.tsx +++ b/x-pack/plugins/maps/public/react_embeddable/map_renderer/map_renderer.tsx @@ -37,6 +37,10 @@ export interface Props { mapCenter?: MapCenterAndZoom; getTooltipRenderer?: () => RenderToolTipContent; onApiAvailable?: (api: MapApi) => void; + /* + * Set to false to exclude sharing attributes 'data-*'. + */ + isSharable?: boolean; } export function MapRenderer(props: Props) { @@ -64,8 +68,8 @@ export function MapRenderer(props: Props) { getParentApi={() => ({ type: MAP_RENDERER_TYPE, getTooltipRenderer: props.getTooltipRenderer, - hideFilterActions: - typeof props.hideFilterActions === 'boolean' ? props.hideFilterActions : false, + hideFilterActions: props.hideFilterActions, + isSharable: props.isSharable, getSerializedStateForChild: () => { return { rawState: {