update other libs

This commit is contained in:
Norbert Renner 2014-05-14 16:01:20 +02:00
parent e4ae9b5533
commit aa1e051cfd
31 changed files with 679 additions and 719 deletions

View file

@ -1,3 +1,4 @@
/* global console: true */
L.Control.Distance = L.Control.extend({
options: {
position: 'topleft',
@ -95,15 +96,15 @@ L.Control.Distance = L.Control.extend({
},
_update: function(e) {
console.info("Update");
console.info('Update');
this._text.textContent = this._d2txt(this._distance_calc());
},
_d2txt: function(d) {
if (d < 2000)
return d.toFixed(0) + " m";
return d.toFixed(0) + ' m';
else
return (d/1000).toFixed(1) + " km";
return (d/1000).toFixed(1) + ' km';
},
_distance_calc: function(e) {