Permalink
Browse files

Fixed linting errors

  • Loading branch information...
1 parent 2ab4ab8 commit a3772fbfe81790ed09a469e2c8b55c84c38e83b4 @manuelbieh committed Sep 28, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −1 geolib.elevation.js
  2. +3 −2 geolib.js
View
@@ -1,6 +1,6 @@
/* Optional elevation addon requires Googlemaps API JS */
-/*global google:true require:true module:true elevationResult*/
+/*global google:true geolib:true require:true module:true elevationResult*/
/**
* @param Array Collection of coords [{latitude: 51.510, longitude: 7.1321}, {latitude: 49.1238, longitude: "8° 30' W"}, ...]
*
View
@@ -9,6 +9,7 @@
* @license LGPL
**/
+/*global geolib:true require:true module:true window:true*/
(function (window, undefined) {
var radius = 6378137; // Earth radius
@@ -877,14 +878,14 @@ geolib.getElevationServer = function(coords, cb) {
for(var i = 0; i < coords.length; i++) {
path.push(geolib.useDecimal(coords[i][latitude]) + ',' +
- geolib.useDecimal(coords[i][longitude]));
+ geolib.useDecimal(coords[i][longitude]));
}
gm.elevationFromPath(path.join('|'), path.length, function(err, results) {
geolib.elevationHandler(results.results, results.status, coords, keys, cb);
});
-},
+};
geolib.elevationHandler = function(results, status, coords, keys, cb){
var latsLngsElevs = [];

0 comments on commit a3772fb

Please sign in to comment.