Leaflet

Leaflet

Leaflet is an open-source JavaScript library for rendering interactive maps on web pages. It loads map tiles from configured tile servers and handles user interactions like panning and zooming. It does not set cookies, collect personal data, or make tracking requests, operating purely as a client-side rendering library.

Overview

Leaflet is an open-source JavaScript mapping library maintained by Volodymyr Agafonkin and a community of contributors under the BSD 2-Clause license. It renders interactive maps in the browser using tile layers sourced from configurable tile servers. The library itself contains no tracking code, no telemetry, and no network requests to Leaflet-controlled servers — all network activity is determined by which tile provider the operator configures (such as OpenStreetMap, Mapbox, or a self-hosted tile server).

What This Script Does

Leaflet's own code is a pure rendering library with no data collection behavior:

  • No cookies set: Leaflet itself does not set any cookies. It does not read browser storage for tracking purposes.
  • No tracking requests: The library makes no requests to Leaflet.js servers. There are no analytics, telemetry, or usage reporting calls embedded in the library.
  • Tile requests: When a map loads, the browser fetches map tile images from whichever tile provider the operator has configured. These requests expose the visitor's IP address to the tile server operator. For OpenStreetMap tiles, this means IP addresses are visible to the OSMF infrastructure. For Mapbox tiles (api.mapbox.com), Mapbox's privacy policy applies.
  • User interactions: Panning, zooming, and clicking are processed entirely client-side. Coordinates are not transmitted anywhere unless the operator has added a custom interaction handler that sends data to their own or a third-party server.
  • GeoJSON loading: If the operator loads overlay data from a third-party URL, the visitor's IP address is exposed to that third-party server, but this is a configuration choice, not Leaflet behavior.

The privacy footprint of a Leaflet integration is determined almost entirely by tile provider choice, not by the library itself.

Consent & Compliance

GDPR and ePrivacy: Leaflet's own code requires no consent. However, if the operator uses a third-party tile provider that processes visitor IP addresses (such as Mapbox, Google, or HERE Maps), those providers become data processors and their data handling must be addressed in the operator's privacy notices. Tile requests to Mapbox or commercial providers are network requests that expose personal data (IP address) to a third party, which under strict GDPR interpretation may require a legitimate interest assessment or consent.

CCPA/CPRA: Leaflet itself does not collect or share personal information. Tile provider integrations may involve disclosure of IP addresses to third-party services, which operators should disclose in their privacy policies.

This vendor falls in the functional category. It is a rendering utility with no tracking behavior. The consent question applies to the tile provider, not the library.

Should You Block This Without Consent?

No.

Leaflet itself does not require consent blocking — it contains no tracking code, sets no cookies, and makes no requests to Leaflet-controlled servers. Operators using third-party tile providers (particularly commercial ones like Mapbox) should consider whether tile provider requests require disclosure or consent under their applicable privacy framework, but the Leaflet library itself is safe to load without consent gating.

Is Leaflet GDPR compliant?

Leaflet typically loads functional trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Leaflet can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Leaflet, not on Leaflet itself.

Visit website

Consent Categories

Also Known As

leafletleafletjsleaflet mapsopen source map libraryleaflet consent

Industries

Computers Electronics and TechnologyProgramming and Developer SoftwareBusiness and Consumer ServicesMarketing and Advertising

Tracked Domains (1)

leafletjs.comFunctional

leafletjs.com is a functional domain operated by Leaflet, used to run site features like chat, video, embeds, and preferences.

Frequently Asked Questions

Related Vendors

Adwerx
Adwerx
Adwerx is a digital advertising platform serving the real estate and financial services industries. Its scripts place retargeting pixels on websites, set tracking cookies to build audience segments, and monitor user interactions to attribute ad conversions and measure campaign effectiveness.
Nexxen
Nexxen
Nexxen is a connected TV and programmatic advertising platform, formerly known as Tremor Video and Unruly. Its scripts serve video ad creatives, measure viewability metrics, and collect audience data including device information and viewing behavior. These tags set tracking cookies and make bid requests to programmatic ad exchanges.
10to8
10to8
10to8 is an appointment scheduling platform that embeds booking widgets on websites. Its scripts render interactive calendar interfaces, collect visitor information for appointment reservations, and may set cookies to maintain booking session state and pre-fill returning visitor details.
Better Uptime
Better Uptime
Better Uptime is an uptime monitoring and status page platform. Its scripts embed status page widgets on websites that display real-time service availability and incident updates. These widgets make periodic network requests to Better Uptime servers and may set cookies to remember visitor notification preferences.
Albato
Albato
Albato is a no-code automation platform for connecting and synchronizing data between SaaS applications via pre-built integrations. It operates as a backend workflow engine and does not embed scripts on third-party websites or interact with end-user browsers directly.
Bugsnag
Bugsnag
Error monitoring platform that captures unhandled exceptions and crashes in JavaScript applications. The Bugsnag notifier sends error reports including stack traces, browser environment, and user breadcrumbs to Bugsnag's dashboard. Does not set advertising cookies or build behavioral profiles.

Manage consent for Leaflet

ConsentStack automatically detects and manages Leaflet trackers so your site stays compliant with global privacy regulations.