From 1fbc05b864dafbc8a96b100a1f5adff3a61d0fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Zolnai?= Date: Thu, 22 Nov 2018 18:05:26 +0100 Subject: [PATCH] Avoid moving the shape by rotation Change-Id: I67c737b1712c4702d28cafe13942fda2634f8526 --- loleaflet/src/layer/tile/TileLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index 52b45e3c4..29904f613 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -1770,7 +1770,7 @@ L.TileLayer = L.GridLayer.extend({ this._graphicMarker.isDragged = true; } else if (e.type === 'rotateend') { - var center = this._graphicSelectionTwips.getCenter().add(this._graphicSelectionTwips.min); + var center = this._graphicSelectionTwips.getCenter(); var param = { TransformRotationDeltaAngle: { type: 'long',