Skip to content

fix(geo): respect tooltip.show=false in geo region tooltip config (Fixes #20232) - #21719

Open
waterWang wants to merge 1 commit into
apache:masterfrom
waterWang:fix/geo-tooltip-show-false
Open

fix(geo): respect tooltip.show=false in geo region tooltip config (Fixes #20232)#21719
waterWang wants to merge 1 commit into
apache:masterfrom
waterWang:fix/geo-tooltip-show-false

Conversation

@waterWang

Copy link
Copy Markdown

Problem

When geo.tooltip.show is set to false, the tooltip still shows when hovering over geo regions because resetTooltipForRegion unconditionally sets the tooltip config on each region element.

Root Cause

In src/component/helper/MapDraw.ts, the resetTooltipForRegion function always calls graphic.setTooltipConfig() with the region's tooltip option, without checking whether show: false is explicitly set.

Fix

Added a guard in resetTooltipForRegion to check if the tooltip option has show: false before setting the tooltip config. If the tooltip is explicitly disabled, the function returns early without setting the config, so the tooltip component will not show a tooltip for that region.

Related Issue

Fixes #20232

@echarts-bot

echarts-bot Bot commented Aug 9, 2026

Copy link
Copy Markdown

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

Please DO NOT commit the files in dist, i18n, and ssr/client/dist folders in a non-release pull request. These folders are for release use only.

To reviewers: If this PR is going to be described in the changelog in the future release, please make sure this PR has one of the following labels: PR: doc ready, PR: awaiting doc, PR: doc unchanged

This message is shown because the PR description doesn't contain the document related template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] geo散点图tooltip隐藏bug

1 participant