Skip to content
JS
Package

leaflet.locatecontrol

A useful control to geolocate the user with many options. Used by osm.org and mapbox among many others.

v0.90.1, 12 Aug 2026MITESM + CommonJSTypes: BundledMaps and geolocation
$ npm install leaflet.locatecontrol

Key numbers

As of 25 Sept 2026
Weekly downloads
35.9k
+83% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 month ago
v0.90.1
GitHub stars
875
266 forks
Open issues / PRs
2 / 0
Contributors
-
Commits, last 52 weeks
64

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60kSept 2025Mar 2026Sept 2026High 43.3k (4 Aug 2026)Low 8k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

35,921 downloads last week, 144,868 in the last month. The 12-month change of +83% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
0.90.1, 12 Aug 20261 month ago
First published
-
Last push to GitHub
12 Aug 202643 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
0
Commits, last 52 weeks
64
Dependents on npm
32

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
190 kB
Dependencies (0)
None
Peer dependencies (1)
leaflet
npm install leaflet.locatecontrol

CDN

jsDelivr: 19.5m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/leaflet.locatecontrol@0.90.1/
  • unpkghttps://unpkg.com/leaflet.locatecontrol@0.90.1/
  • esm.shhttps://esm.sh/leaflet.locatecontrol@0.90.1
PackageWeekly downloadsGzipLast releaseModuleComparison
leaflet-defaulticon-compatibility37.9k-3 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.