Merge pull request #3217 from akauppi/two-small-typos
two small typos I spotted during code read-through
This commit is contained in:
commit
a998f9b6c8
@ -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) {
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user