diff --git a/src/edit/handler/Edit.Circle.js b/src/edit/handler/Edit.Circle.js index 9a14f5224..f7b3d5888 100644 --- a/src/edit/handler/Edit.Circle.js +++ b/src/edit/handler/Edit.Circle.js @@ -24,6 +24,7 @@ L.Edit.Circle = L.Edit.CircleMarker.extend({ _resize: function (latlng) { var moveLatLng = this._moveMarker.getLatLng(); + var radius = 0; // Calculate the radius based on the version if (L.GeometryUtil.isVersion07x()) { radius = moveLatLng.distanceTo(latlng); diff --git a/src/ext/GeometryUtil.js b/src/ext/GeometryUtil.js index 5a95cfaf3..5efae3985 100755 --- a/src/ext/GeometryUtil.js +++ b/src/ext/GeometryUtil.js @@ -70,7 +70,7 @@ if (isMetric) { units = ['ha', 'm']; - type = typeof isMetric; + var type = typeof isMetric; if (type === 'string') { units = [isMetric]; } else if (type !== 'boolean') {