Skip to content

Commit 162962f

Browse files
committed
Update leaflet.locatecontrol to 0.83.0
1 parent 2cd20af commit 162962f

File tree

3 files changed

+23
-25
lines changed

3 files changed

+23
-25
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"dependencies": {
2424
"leaflet": "^1.9.4",
2525
"leaflet-control-geocoder": "^3.1.0",
26-
"leaflet.locatecontrol": "^0.72.0"
26+
"leaflet.locatecontrol": "^0.83.0"
2727
},
2828
"devDependencies": {
29-
"@types/leaflet": "^1.9.3",
30-
"@types/leaflet.locatecontrol": "^0.74.0",
29+
"@types/leaflet": "^1.9.15",
30+
"@types/leaflet.locatecontrol": "^0.74.6",
3131
"prettier": "^3.4.2",
3232
"pretty-quick": "^4.0.0",
3333
"vite": "^6.0.5"

src/app.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as L from 'leaflet';
22
import 'leaflet/dist/leaflet.css';
33
import {Geocoder as GeocoderControl} from 'leaflet-control-geocoder';
44
import 'leaflet-control-geocoder/style.css';
5-
import 'leaflet.locatecontrol';
5+
import {LocateControl} from 'leaflet.locatecontrol';
66
import 'leaflet.locatecontrol/dist/L.Control.Locate.min.css';
77
import LeafletHash from './leaflet-fullHash';
88
import {CollapsableLayerControl} from './leaflet-collapsable-layer-control';
@@ -28,12 +28,10 @@ new GeocoderControl({
2828
position: 'topleft',
2929
}).addTo(map);
3030

31-
L.control
32-
.locate({
33-
icon: 'tm-marker',
34-
iconLoading: 'tm-marker',
35-
})
36-
.addTo(map);
31+
new LocateControl({
32+
icon: 'tm-marker',
33+
iconLoading: 'tm-marker',
34+
}).addTo(map);
3735

3836
const attribution = [
3937
'<a href="https://github.com/simon04/tyrolean-map">Tyrolean Map</a> (Simon Legner)',

yarn.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -363,21 +363,21 @@ __metadata:
363363
languageName: node
364364
linkType: hard
365365

366-
"@types/leaflet.locatecontrol@npm:^0.74.0":
367-
version: 0.74.0
368-
resolution: "@types/leaflet.locatecontrol@npm:0.74.0"
366+
"@types/leaflet.locatecontrol@npm:^0.74.6":
367+
version: 0.74.6
368+
resolution: "@types/leaflet.locatecontrol@npm:0.74.6"
369369
dependencies:
370370
"@types/leaflet": "npm:*"
371-
checksum: 10c0/7bc84e430d05a206829068c18f1ef4eb29a9f109ca640a6bac38408c5bff95e5dd36eb3856d7157ae8a1790e7c937bfd544388898185d19d581b9575741e9034
371+
checksum: 10c0/4969ee6238ed797f4a269d9b603af9fc78d49ecd1ce8f074b996010ae3658030569aeca028d9c210b97095f97bd2acf7b6bc39bdbb507b6b186eb46fc8c7c5b7
372372
languageName: node
373373
linkType: hard
374374

375-
"@types/leaflet@npm:*, @types/leaflet@npm:^1.9.3":
376-
version: 1.9.3
377-
resolution: "@types/leaflet@npm:1.9.3"
375+
"@types/leaflet@npm:*, @types/leaflet@npm:^1.9.15":
376+
version: 1.9.15
377+
resolution: "@types/leaflet@npm:1.9.15"
378378
dependencies:
379379
"@types/geojson": "npm:*"
380-
checksum: 10c0/c18ae40e30bd94d71e0adb57f76d3a66f38eb399e025646d524b11b9a4a0d106886da32663ec551e8f86cceb48bb23ef48a816a8a1ad1bc9224635ca57cd8dc7
380+
checksum: 10c0/6537da4107f833e38359ca9e98e2c161d686af58ff8873c65c102e146b881761ca6212b08fae4e755380ee001073f856ee46c5ea25592a53f39e2b9e5d934d42
381381
languageName: node
382382
linkType: hard
383383

@@ -907,10 +907,10 @@ __metadata:
907907
languageName: node
908908
linkType: hard
909909

910-
"leaflet.locatecontrol@npm:^0.72.0":
911-
version: 0.72.0
912-
resolution: "leaflet.locatecontrol@npm:0.72.0"
913-
checksum: 10c0/fd334b3199d5b1f76e6c8a00858879cfcae0e0b1a36d36e712ef19e11f647f6838396decbc376a0903ddc4f687d0d75102656a69d6435936df79a394ae9d6bbc
910+
"leaflet.locatecontrol@npm:^0.83.0":
911+
version: 0.83.0
912+
resolution: "leaflet.locatecontrol@npm:0.83.0"
913+
checksum: 10c0/b03aa0a74bc4af25c54f0167501a18f24e6d91abbca2cb60ca240ca5c5b938d88d84e1866ce91e2b563dc7cad5a8382c86fad2609759a5ecd3f5dd71bd9c8035
914914
languageName: node
915915
linkType: hard
916916

@@ -1542,11 +1542,11 @@ __metadata:
15421542
version: 0.0.0-use.local
15431543
resolution: "tyrolean-map@workspace:."
15441544
dependencies:
1545-
"@types/leaflet": "npm:^1.9.3"
1546-
"@types/leaflet.locatecontrol": "npm:^0.74.0"
1545+
"@types/leaflet": "npm:^1.9.15"
1546+
"@types/leaflet.locatecontrol": "npm:^0.74.6"
15471547
leaflet: "npm:^1.9.4"
15481548
leaflet-control-geocoder: "npm:^3.1.0"
1549-
leaflet.locatecontrol: "npm:^0.72.0"
1549+
leaflet.locatecontrol: "npm:^0.83.0"
15501550
prettier: "npm:^3.4.2"
15511551
pretty-quick: "npm:^4.0.0"
15521552
vite: "npm:^6.0.5"

0 commit comments

Comments
 (0)