Skip to content

Commit 422b363

Browse files
author
Aaron Caldwell
committed
Merge remote-tracking branch 'upstream/master' into remove-task-logic-from-maps-telemetry
2 parents 756707b + 6669111 commit 422b363

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

  • x-pack/legacy/plugins/maps

x-pack/legacy/plugins/maps/mappings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@
2626
},
2727
"maps-telemetry": {
2828
"properties": {
29+
"settings": {
30+
"properties": {
31+
"showMapVisualizationTypes": {
32+
"type": "boolean"
33+
}
34+
}
35+
},
36+
"indexPatternsWithGeoFieldCount": {
37+
"type": "long"
38+
},
2939
"mapsTotalCount": {
3040
"type": "long"
3141
},

x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/layer_control/layer_toc/toc_entry/view.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ export class TOCEntry extends React.Component {
4646
};
4747

4848
async _loadHasLegendDetails() {
49-
const hasLegendDetails = await this.props.layer.hasLegendDetails();
49+
const hasLegendDetails =
50+
(await this.props.layer.hasLegendDetails()) &&
51+
this.props.layer.isVisible() &&
52+
this.props.layer.showAtZoomLevel(this.props.zoom);
5053
if (this._isMounted && hasLegendDetails !== this.state.hasLegendDetails) {
5154
this.setState({ hasLegendDetails });
5255
}

0 commit comments

Comments
 (0)