Geomap: Fix tooltip offset bug (#52627)

This commit is contained in:
Drew Slobodnjak 2022-07-21 13:16:05 -07:00 committed by GitHub
parent cf86c696e0
commit 3c2ef54e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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],