Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into remove-task-logic…
Browse files Browse the repository at this point in the history
…-from-maps-telemetry
  • Loading branch information
Aaron Caldwell committed Dec 26, 2019
2 parents 756707b + 6669111 commit 422b363
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions x-pack/legacy/plugins/maps/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
},
"maps-telemetry": {
"properties": {
"settings": {
"properties": {
"showMapVisualizationTypes": {
"type": "boolean"
}
}
},
"indexPatternsWithGeoFieldCount": {
"type": "long"
},
"mapsTotalCount": {
"type": "long"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export class TOCEntry extends React.Component {
};

async _loadHasLegendDetails() {
const hasLegendDetails = await this.props.layer.hasLegendDetails();
const hasLegendDetails =
(await this.props.layer.hasLegendDetails()) &&
this.props.layer.isVisible() &&
this.props.layer.showAtZoomLevel(this.props.zoom);
if (this._isMounted && hasLegendDetails !== this.state.hasLegendDetails) {
this.setState({ hasLegendDetails });
}
Expand Down

0 comments on commit 422b363

Please sign in to comment.