Merge pull request #3217 from akauppi/two-small-typos

two small typos I spotted during code read-through
This commit is contained in:
John Firebaugh 2015-02-08 11:10:28 -08:00
commit a998f9b6c8
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ L.Util = {
return obj.options; return obj.options;
}, },
// make an URL with GET parameters out of a set of properties/values // make a URL with GET parameters out of a set of properties/values
getParamString: function (obj, existingUrl, uppercase) { getParamString: function (obj, existingUrl, uppercase) {
var params = []; var params = [];
for (var i in obj) { for (var i in obj) {

View File

@ -7,7 +7,7 @@ L.CRS.Earth = L.extend({}, L.CRS, {
R: 6378137, R: 6378137,
// distane between two geographical points using spherical law of cosines approximation // distance between two geographical points using spherical law of cosines approximation
distance: function (latlng1, latlng2) { distance: function (latlng1, latlng2) {
var rad = Math.PI / 180, var rad = Math.PI / 180,
lat1 = latlng1.lat * rad, lat1 = latlng1.lat * rad,