Geomap: Fix tooltip offset bug (#52627)

pull/52631/head
Drew Slobodnjak 3 years ago committed by GitHub
parent cf86c696e0
commit 3c2ef54e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      public/app/plugins/panel/geomap/GeomapPanel.tsx

@ -369,8 +369,8 @@ export class GeomapPanel extends Component<Props, State> {
const hover = toLonLat(this.map.getCoordinateFromPixel(pixel));
const { hoverPayload } = this;
hoverPayload.pageX = mouse.pageX;
hoverPayload.pageY = mouse.pageY;
hoverPayload.pageX = mouse.offsetX;
hoverPayload.pageY = mouse.offsetY;
hoverPayload.point = {
lat: hover[1],
lon: hover[0],

Loading…
Cancel
Save