From d302a6a93662384574728c98e3f77f9bc7c90230 Mon Sep 17 00:00:00 2001 From: bshenkd Date: Wed, 13 Apr 2016 13:31:00 -0400 Subject: [PATCH] fixed circle drawing bug --- src/draw/handler/Draw.Circle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/draw/handler/Draw.Circle.js b/src/draw/handler/Draw.Circle.js index 6e234c847..6d98919cd 100644 --- a/src/draw/handler/Draw.Circle.js +++ b/src/draw/handler/Draw.Circle.js @@ -30,7 +30,7 @@ L.Draw.Circle = L.Draw.SimpleShape.extend({ _drawShape: function (latlng) { if (!this._shape) { - this._shape = new L.Circle(this._startLatLng, this._startLatLng.distanceTo(latlng), this.options.shapeOptions); + this._shape = new L.circle(this._startLatLng, this._startLatLng.distanceTo(latlng), this.options.shapeOptions); this._map.addLayer(this._shape); } else { this._shape.setRadius(this._startLatLng.distanceTo(latlng)); @@ -38,7 +38,7 @@ L.Draw.Circle = L.Draw.SimpleShape.extend({ }, _fireCreatedEvent: function () { - var circle = new L.Circle(this._startLatLng, this._shape.getRadius(), this.options.shapeOptions); + var circle = new L.circle(this._startLatLng, this._shape.getRadius(), this.options.shapeOptions); L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this, circle); },