@raruto/leaflet-elevation 2.0.8 → 2.2.0

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 CHANGED
@@ -23,9 +23,10 @@ _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
- - [using .gpx extensions (cadence + heart)](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_extended-ui.html)
29
+ - [using .gpx extensions (cadence, heart, pace)](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_extended-ui.html)
29
30
  - [using .gpx waypoint icons](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_gpx-waypoints.html)
30
31
  - [using .geojson waypoint icons](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_geojson-waypoints.html)
31
32
 
@@ -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.1/dist/leaflet-ui.js"></script>
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" />
@@ -123,15 +124,15 @@ _For a working example see one of the following demos:_
123
124
  // Speed chart profile: true || "summary" || "disabled" || false
124
125
  speed: false,
125
126
 
127
+ // Altitude chart profile: true || "summary" || "disabled" || false
128
+ altitude: true,
129
+
126
130
  // Display time info: true || "summary" || false
127
- time: false,
131
+ time: true,
128
132
 
129
- // Display distance info: true || "summary"
133
+ // Display distance info: true || "summary" || false
130
134
  distance: true,
131
135
 
132
- // Display altitude info: true || "summary"
133
- altitude: true,
134
-
135
136
  // Summary track info style: "inline" || "multiline" || false
136
137
  summary: 'multiline',
137
138
 
@@ -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
- Check out [CONTRIBUTING.md](.github/CONTRIBUTING.md) file for more information on supporting the development of this library.
285
+ **License:** GPL-3.0+