From 143bb649a2df7a89fe2587051087b998f65afeaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20Emre=20Cava=C3=A7?= Date: Wed, 10 Feb 2016 15:42:52 +0200 Subject: [PATCH] incompatible latLng arrays Shown area and 'draw:created' area was not the same because of calling updateContent function before drawShape. --- dist/leaflet.draw-src.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/leaflet.draw-src.js b/dist/leaflet.draw-src.js index 80f202862..3fa8e61cf 100644 --- a/dist/leaflet.draw-src.js +++ b/dist/leaflet.draw-src.js @@ -803,8 +803,8 @@ L.Draw.SimpleShape = L.Draw.Feature.extend({ this._tooltip.updatePosition(latlng); if (this._isDrawing) { - this._tooltip.updateContent(this._getTooltipText()); this._drawShape(latlng); + this._tooltip.updateContent(this._getTooltipText()); } }, @@ -2939,4 +2939,4 @@ L.EditToolbar.Delete = L.Handler.extend({ }); -}(window, document)); \ No newline at end of file +}(window, document));