Skip to content

Commit

Permalink
open legend for region and tile map
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Apr 29, 2024
1 parent 3c3b53c commit a526688
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/plugins/maps/public/embeddable/map_component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface Props {
layerList: LayerDescriptor[];
mapSettings?: Partial<MapSettings>;
hideFilterActions?: boolean;
isLayerTOCOpen?: boolean;
mapCenter?: MapCenterAndZoom;
onInitialRenderComplete?: () => void;
/*
Expand Down Expand Up @@ -50,7 +51,8 @@ export class MapComponent extends Component<Props> {
},
hidePanelTitles: !Boolean(this.props.title),
viewMode: ViewMode.VIEW,
isLayerTOCOpen: false,
isLayerTOCOpen:
typeof this.props.isLayerTOCOpen === 'boolean' ? this.props.isLayerTOCOpen : false,
hideFilterActions:
typeof this.props.hideFilterActions === 'boolean' ? this.props.hideFilterActions : false,
mapCenter: this.props.mapCenter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function RegionMapVisualization(props: Props) {
query={props.query}
timeRange={props.timeRange}
mapCenter={initialMapCenter}
isLayerTOCOpen={true}
layerList={initialLayerList}
onInitialRenderComplete={props.onInitialRenderComplete}
isSharable={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function TileMapVisualization(props: Props) {
query={props.query}
timeRange={props.timeRange}
mapCenter={initialMapCenter}
isLayerTOCOpen={true}
layerList={initialLayerList}
onInitialRenderComplete={props.onInitialRenderComplete}
isSharable={false}
Expand Down

0 comments on commit a526688

Please sign in to comment.