Skip to content

Commit

Permalink
Merge pull request #1062 from oterral/patch-1
Browse files Browse the repository at this point in the history
Fix calculation of extent around a point when a buffer is used
  • Loading branch information
Viglino authored May 17, 2024
2 parents 26bb8e8 + 4104018 commit 905a48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interaction/Transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 905a48a

Please sign in to comment.