update other libs
This commit is contained in:
parent
e4ae9b5533
commit
aa1e051cfd
31 changed files with 679 additions and 719 deletions
25
bower_components/leaflet-gpx/README.md
vendored
25
bower_components/leaflet-gpx/README.md
vendored
|
|
@ -60,6 +60,7 @@ so in the 'loaded' event handler, calling one of the following methods on the
|
|||
* `get_moving_time()`: returns the moving time, in milliseconds
|
||||
* `get_total_time()`: returns the total track time, in milliseconds
|
||||
* `get_moving_pace()`: returns the average moving pace in milliseconds per km
|
||||
* `get_moving_speed()`: returns the average moving speed in km per hour
|
||||
* `get_elevation_gain()`: returns the cumulative elevation gain, in meters
|
||||
* `get_elevation_loss()`: returns the cumulative elevation loss, in meters
|
||||
* `get_average_hr()`: returns the average heart rate (if available)
|
||||
|
|
@ -68,8 +69,10 @@ If you're not a fan of the metric system, you also have the following methods
|
|||
at your disposal:
|
||||
|
||||
* `get_distance_imp()`: returns the total track distance in miles
|
||||
* `get_moving_pace_imp()`: returns the average moving pace in milliseconds per
|
||||
mile
|
||||
* `get_moving_pace_imp()`: returns the average moving pace in milliseconds per
|
||||
hour
|
||||
* `get_moving_speed()`: returns the average moving pace in miles per
|
||||
hour
|
||||
|
||||
The reason why these methods return milliseconds is that you have at your
|
||||
disposal a nice helper method to format a duration in milliseconds into a cool
|
||||
|
|
@ -89,6 +92,15 @@ the distance is either in kilometers or in miles and the elevation in meters of
|
|||
feet, depending on whether you use the `_imp` variant or not. Heart rate,
|
||||
obviously, doesn't change.
|
||||
|
||||
You can reload remote gpx file every 5 seconds with:
|
||||
```javascript
|
||||
var gpxLayer = new L.GPX(gpxFile);
|
||||
|
||||
setInterval(function() {
|
||||
gpxLayer.reload();
|
||||
},5000);
|
||||
```
|
||||
|
||||
|
||||
About marker icons
|
||||
------------------
|
||||
|
|
@ -124,3 +136,12 @@ new L.GPX(url, {
|
|||
map.fitBounds(e.target.getBounds());
|
||||
}).addTo(map);
|
||||
```
|
||||
|
||||
Caveats
|
||||
-------
|
||||
|
||||
* Distance calculation is relatively accurate, but elevation change
|
||||
calculation is not topographically adjusted, so the total elevation
|
||||
gain/loss/change might appear inaccurate in some situations.
|
||||
* Currently doesn't seem to work in IE8/9. See #9 and #11 for
|
||||
discussion.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue