Skip to content

Commit 08980be

Browse files
committed
enable map drilldown
1 parent 22d6f09 commit 08980be

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

x-pack/plugins/maps/public/embeddable/map_embeddable.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ import { render, unmountComponentAtNode } from 'react-dom';
1111
import { Subscription } from 'rxjs';
1212
import { Unsubscribe } from 'redux';
1313
import { Embeddable, IContainer } from '../../../../../src/plugins/embeddable/public';
14-
import { APPLY_FILTER_TRIGGER } from '../../../../../src/plugins/ui_actions/public';
14+
import {
15+
APPLY_FILTER_TRIGGER,
16+
TriggerContextMapping,
17+
} from '../../../../../src/plugins/ui_actions/public';
1518
import {
1619
esFilters,
1720
TimeRange,
@@ -99,6 +102,10 @@ export class MapEmbeddable extends Embeddable<MapEmbeddableInput, MapEmbeddableO
99102
this._subscription = this.getInput$().subscribe((input) => this.onContainerStateChanged(input));
100103
}
101104

105+
supportedTriggers(): Array<keyof TriggerContextMapping> {
106+
return [APPLY_FILTER_TRIGGER];
107+
}
108+
102109
setRenderTooltipContent = (renderTooltipContent: RenderToolTipContent) => {
103110
this._renderTooltipContent = renderTooltipContent;
104111
};

0 commit comments

Comments
 (0)