From 520587d745849179f08571e0716b679a3c77119f Mon Sep 17 00:00:00 2001 From: Faheel Ahmad Date: Mon, 21 Nov 2016 19:52:53 +0530 Subject: [PATCH] Fixed L.LatLng.toBounds docstring (#5127) --- src/geo/LatLng.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geo/LatLng.js b/src/geo/LatLng.js index 08645398..b2000bf1 100644 --- a/src/geo/LatLng.js +++ b/src/geo/LatLng.js @@ -75,7 +75,7 @@ L.LatLng.prototype = { }, // @method toBounds(sizeInMeters: Number): LatLngBounds - // Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters` meters apart from the `LatLng`. + // Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`. toBounds: function (sizeInMeters) { var latAccuracy = 180 * sizeInMeters / 40075017, lngAccuracy = latAccuracy / Math.cos((Math.PI / 180) * this.lat);