Fixed L.LatLng.toBounds docstring (#5127)

This commit is contained in:
Faheel Ahmad 2016-11-21 19:52:53 +05:30 committed by Iván Sánchez Ortega
parent 65102bc4d1
commit 520587d745

View File

@ -75,7 +75,7 @@ L.LatLng.prototype = {
}, },
// @method toBounds(sizeInMeters: Number): LatLngBounds // @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) { toBounds: function (sizeInMeters) {
var latAccuracy = 180 * sizeInMeters / 40075017, var latAccuracy = 180 * sizeInMeters / 40075017,
lngAccuracy = latAccuracy / Math.cos((Math.PI / 180) * this.lat); lngAccuracy = latAccuracy / Math.cos((Math.PI / 180) * this.lat);