mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 01:32:13 +08:00
Geomap: Fix tooltip bug (#69773)
This commit is contained in:
@ -32,9 +32,12 @@ export const pointerMoveListener = (evt: MapBrowserEvent<MouseEvent>, panel: Geo
|
||||
if (panel.state.measureMenuActive) {
|
||||
return true;
|
||||
}
|
||||
if (!panel.map || panel.state.ttipOpen) {
|
||||
|
||||
// Eject out of this function if map is not loaded or valid tooltip is already open
|
||||
if (!panel.map || (panel.state.ttipOpen && panel.state?.ttip?.layers?.length)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const mouse = evt.originalEvent;
|
||||
const pixel = panel.map.getEventPixel(mouse);
|
||||
const hover = toLonLat(panel.map.getCoordinateFromPixel(pixel));
|
||||
|
Reference in New Issue
Block a user