Permalink
Browse files

Re-added support for negative lat/lng

  • Loading branch information...
1 parent 38eea13 commit 2189417c87a6a56d28f30cd4d021e58a066798bc @manuelbieh committed Dec 11, 2013
Showing with 11 additions and 11 deletions.
  1. +1 −1 bower.json
  2. +4 −4 geolib.js
  3. +3 −3 geolib.min.js
  4. +1 −1 package.json
  5. +2 −2 src/geolib.js
View
@@ -1,7 +1,7 @@
{
"name": "Geolib",
"main": "geolib.js",
- "version": "1.3.4",
+ "version": "1.3.5",
"homepage": "https://github.com/manuelbieh/Geolib",
"authors": [
"Manuel Bieh <github@manuelbieh.de>"
View
@@ -1,11 +1,11 @@
-/*! geolib 1.3.4 by Manuel Bieh
+/*! geolib 1.3.5 by Manuel Bieh
* A growing library to provide some basic geo functions like distance calculation,
* conversion of decimal coordinates to sexagesimal and vice versa, etc.
* WGS 84 (World Geodetic System 1984)
*
* @author Manuel Bieh
* @url http://www.manuelbieh.com/
-* @version 1.3.4
+* @version 1.3.5
* @license LGPL
**//*global console:true geolib:true require:true module:true window:true global:true define:true*/
(function (global, undefined) {
@@ -344,9 +344,9 @@
var useElevation = coords[0].hasOwnProperty(elevation);
var stats = {
- maxLat: 0,
+ maxLat: -Infinity,
minLat: Infinity,
- maxLng: 0,
+ maxLng: -Infinity,
minLng: Infinity
};
View
Oops, something went wrong.
View
@@ -43,6 +43,6 @@
"scripts": {
"test": "grunt travis --verbose"
},
- "version": "1.3.4",
+ "version": "1.3.5",
"main": "./geolib"
}
Oops, something went wrong.

0 comments on commit 2189417

Please sign in to comment.