@raruto/leaflet-elevation 1.7.5 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -2
- package/dist/leaflet-elevation.css +0 -1
- package/dist/leaflet-elevation.js +721 -885
- package/dist/leaflet-elevation.js.map +1 -1
- package/dist/leaflet-elevation.min.css +1 -1
- package/dist/leaflet-elevation.min.js +3 -1
- package/dist/leaflet-elevation.min.js.map +1 -1
- package/package.json +1 -1
- package/src/acceleration.js +11 -21
- package/src/altitude.js +21 -22
- package/src/chart.js +91 -178
- package/src/components.js +163 -115
- package/src/control.js +116 -209
- package/src/distance.js +15 -13
- package/src/index.css +0 -1
- package/src/index.js +12 -1
- package/src/marker.js +38 -98
- package/src/options.js +1 -8
- package/src/slope.js +9 -18
- package/src/speed.js +11 -21
- package/src/time.js +15 -10
- package/src/utils.js +77 -99
package/README.md
CHANGED
|
@@ -158,6 +158,9 @@ _For a working example see one of the following demos:_
|
|
|
158
158
|
// Toggle "leaflet-distance-markers" integration
|
|
159
159
|
distanceMarkers: false,
|
|
160
160
|
|
|
161
|
+
// Display track datetimes: true || false
|
|
162
|
+
timestamps: false,
|
|
163
|
+
|
|
161
164
|
// Display track waypoints: true || "markers" || "dots" || false
|
|
162
165
|
waypoints: true,
|
|
163
166
|
|
|
@@ -171,11 +174,11 @@ _For a working example see one of the following demos:_
|
|
|
171
174
|
}),
|
|
172
175
|
},
|
|
173
176
|
|
|
174
|
-
//
|
|
177
|
+
// Toggle waypoint labels: true || "markers" || "dots" || false
|
|
175
178
|
wptLabels: true,
|
|
176
179
|
|
|
177
180
|
// Render chart profiles as Canvas or SVG Paths
|
|
178
|
-
preferCanvas: true
|
|
181
|
+
preferCanvas: true,
|
|
179
182
|
|
|
180
183
|
};
|
|
181
184
|
|
|
@@ -236,6 +239,18 @@ var map = L.map('map', {
|
|
|
236
239
|
```
|
|
237
240
|
</details>
|
|
238
241
|
|
|
242
|
+
<details>
|
|
243
|
+
<summary>3. Some real world projects based on this plugin?</summary><br>
|
|
244
|
+
|
|
245
|
+
- https://parcours.scasb.org/
|
|
246
|
+
- https://velocat.ru/velo/phpBB3/map.php
|
|
247
|
+
- https://plugins.qgis.org/plugins/track_profile_2_web/
|
|
248
|
+
- https://wordpress.org/plugins/os-datahub-maps/
|
|
249
|
+
- https://wordpress.org/plugins/extensions-leaflet-map/
|
|
250
|
+
- https://github.com/der-stefan/OpenTopoMap
|
|
251
|
+
|
|
252
|
+
</details>
|
|
253
|
+
|
|
239
254
|
_Related: [Leaflet-UI presets](https://github.com/raruto/leaflet-ui), [QGIS Integration](https://github.com/faunalia/trackprofile2web)_
|
|
240
255
|
|
|
241
256
|
---
|
|
@@ -249,3 +264,5 @@ _Related: [Leaflet-UI presets](https://github.com/raruto/leaflet-ui), [QGIS Inte
|
|
|
249
264
|
---
|
|
250
265
|
|
|
251
266
|
**Contributors:** [MrMufflon](https://github.com/MrMufflon/Leaflet.Elevation), [HostedDinner](https://github.com/HostedDinner/Leaflet.Elevation), [ADoroszlai](http://ADoroszlai.github.io/joebed/), [Raruto](https://github.com/Raruto/leaflet-elevation)
|
|
267
|
+
|
|
268
|
+
---
|