From 41040180e7552e066effde3abf349845faf9b00c Mon Sep 17 00:00:00 2001 From: oterral Date: Fri, 17 May 2024 13:54:59 +0200 Subject: [PATCH] Fix calculation of extent around point when a buffer is used --- src/interaction/Transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interaction/Transform.js b/src/interaction/Transform.js index c65ea85b..d2145382 100644 --- a/src/interaction/Transform.js +++ b/src/interaction/Transform.js @@ -382,7 +382,7 @@ var ol_interaction_Transform = class olinteractionTransform extends ol_interacti } else { if (this.ispt_) { // Calculate extent arround the point - var p = this.getMap().getPixelFromCoordinate([ext[0], ext[1]]) + var p = this.getMap().getPixelFromCoordinate(ol_extent_getCenter(ext)) if (p) { var dx = ptRadius ? ptRadius[0] || 10 : 10 var dy = ptRadius ? ptRadius[1] || 10 : 10