@raruto/leaflet-elevation 2.0.7 → 2.1.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 +23 -2
- package/dist/leaflet-elevation.js +1631 -1686
- package/dist/leaflet-elevation.js.map +1 -1
- package/dist/leaflet-elevation.min.js +1 -1
- package/dist/leaflet-elevation.min.js.map +1 -1
- package/package.json +10 -7
- package/spec/index.js +2 -0
- package/spec/index.min.js +1 -0
- package/spec/mock.js +26 -0
- package/spec/mock.min.js +1 -0
- package/spec/utils.test.js +41 -0
- package/spec/utils.test.min.js +1 -0
- package/src/components/d3.js +1 -1
- package/src/control.js +90 -94
- package/src/handlers/heart.js +52 -52
- package/src/index.js +0 -12
- package/src/utils.js +6 -6
package/README.md
CHANGED
|
@@ -23,6 +23,7 @@ _For a working example see one of the following demos:_
|
|
|
23
23
|
- [loading individual .gpx tracks](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_toggable-tracks.html)
|
|
24
24
|
- [loading multiple .gpx tracks (hover to toggle)](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_hoverable-tracks.html)
|
|
25
25
|
- [loading multiple .gpx tracks (click to toggle)](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_toggable-charts.html)
|
|
26
|
+
- [loading multiple maps](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_multiple-maps.html)
|
|
26
27
|
- [translating plugin labels](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_i18n-strings.html)
|
|
27
28
|
- [using custom colors](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_custom-theme.html)
|
|
28
29
|
- [using .gpx extensions (cadence + heart)](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_extended-ui.html)
|
|
@@ -62,7 +63,7 @@ _For a working example see one of the following demos:_
|
|
|
62
63
|
|
|
63
64
|
<!-- leaflet-ui -->
|
|
64
65
|
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
|
|
65
|
-
<script src="https://unpkg.com/leaflet-ui@0.5.
|
|
66
|
+
<script src="https://unpkg.com/leaflet-ui@0.5.4/dist/leaflet-ui.js"></script>
|
|
66
67
|
|
|
67
68
|
<!-- leaflet-elevation -->
|
|
68
69
|
<link rel="stylesheet" href="https://unpkg.com/@raruto/leaflet-elevation/dist/leaflet-elevation.css" />
|
|
@@ -186,6 +187,22 @@ _For a working example see one of the following demos:_
|
|
|
186
187
|
</script>
|
|
187
188
|
```
|
|
188
189
|
|
|
190
|
+
### Build Guide
|
|
191
|
+
|
|
192
|
+
For those wishing to try cloning this repository into a local development folder (eg. /var/www):
|
|
193
|
+
|
|
194
|
+
```shell
|
|
195
|
+
git clone git@github.com:Raruto/leaflet-elevation.git
|
|
196
|
+
cd ./leaflet-elevation
|
|
197
|
+
|
|
198
|
+
npm i # install dependencies
|
|
199
|
+
npm run dev # auto-generate "dist" files
|
|
200
|
+
npm run build # generate "dist" files (once)
|
|
201
|
+
npm run test # test "spec" files (once)
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
After that you can start developing inside the `src` and `test` folders (eg. open "http://localhost/leaflet-elevation/test" in your browser to preview changes). Check also [CONTRIBUTING.md](.github/CONTRIBUTING.md) file for some information about it.
|
|
205
|
+
|
|
189
206
|
### FAQ
|
|
190
207
|
|
|
191
208
|
<details>
|
|
@@ -247,6 +264,10 @@ var map = L.map('map', {
|
|
|
247
264
|
|
|
248
265
|
_Related: [Leaflet-UI presets](https://github.com/raruto/leaflet-ui), [QGIS Integration](https://github.com/faunalia/trackprofile2web)_
|
|
249
266
|
|
|
267
|
+
### Changelog
|
|
268
|
+
|
|
269
|
+
All notable changes to this project are documented in the [releases](https://github.com/Raruto/leaflet-elevation/releases) page.
|
|
270
|
+
|
|
250
271
|
---
|
|
251
272
|
|
|
252
273
|
**Compatibile with:**
|
|
@@ -261,4 +282,4 @@ _Related: [Leaflet-UI presets](https://github.com/raruto/leaflet-ui), [QGIS Inte
|
|
|
261
282
|
|
|
262
283
|
---
|
|
263
284
|
|
|
264
|
-
|
|
285
|
+
**License:** GPL-3.0+
|