@raruto/leaflet-elevation 2.3.1 → 2.3.2

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
@@ -65,7 +65,7 @@ _For a working example see one of the following demos:_
65
65
 
66
66
  <!-- leaflet-ui -->
67
67
  <script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
68
- <script src="https://unpkg.com/leaflet-ui@0.5.9/dist/leaflet-ui.js"></script>
68
+ <script src="https://unpkg.com/leaflet-ui@0.6.0/dist/leaflet-ui.js"></script>
69
69
 
70
70
  <!-- leaflet-elevation -->
71
71
  <link rel="stylesheet" href="https://unpkg.com/@raruto/leaflet-elevation/dist/leaflet-elevation.css" />
@@ -271,12 +271,13 @@ import '@raruto/leaflet-elevation/src/index.js';
271
271
  import '@raruto/leaflet-elevation/src/index.css';
272
272
 
273
273
  const map = L.map('map', {
274
- center: [35.681, 139.767],
275
- zoom: 11,
274
+ center: [41.4583, 12.7059]
275
+ zoom: 5,
276
276
  });
277
277
 
278
278
  const controlElevation = L.control.elevation({
279
- srcFolder: 'http://unpkg.com/@raruto/leaflet-elevation/src/' // CHANGE ME: with your own http server custom "src" folder
279
+ // CHANGE ME: with your own http server folder (eg. "http://custom-server/public/path/to/leaflet-elevation/src/")
280
+ srcFolder: 'http://unpkg.com/@raruto/leaflet-elevation/src/'
280
281
  }).addTo(map);
281
282
 
282
283
  // Load track from url (allowed data types: "*.geojson", "*.gpx", "*.tcx")
@@ -304,9 +304,9 @@
304
304
  options: Options,
305
305
  __mileFactor: 0.621371, // 1 km = (0.621371 mi)
306
306
  __footFactor: 3.28084, // 1 m = (3.28084 ft)
307
- __D3: 'https://unpkg.com/d3@6.5.0/dist/d3.min.js',
308
- __TOGEOJSON: 'https://unpkg.com/@tmcw/togeojson@4.6.0/dist/togeojson.umd.js',
309
- __LGEOMUTIL: 'https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js',
307
+ __D3: 'https://unpkg.com/d3@7.8.4/dist/d3.min.js',
308
+ __TOGEOJSON: 'https://unpkg.com/@tmcw/togeojson@5.6.0/dist/togeojson.umd.js',
309
+ __LGEOMUTIL: 'https://unpkg.com/leaflet-geometryutil@0.10.1/src/leaflet.geometryutil.js',
310
310
  __LALMOSTOVER: 'https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js',
311
311
  __LHOTLINE: '../libs/leaflet-hotline.min.js',
312
312
  __LDISTANCEM: '../libs/leaflet-distance-marker.min.js',