FlowConsent
ServicesBlogExtensionSolutionsPricingTry FlowConsent
FlowConsent

FlowConsent is a GDPR-compliant cookie consent management platform.

Product

  • Services
  • Extension
  • Extension support
  • Solutions
  • Pricing
  • FlowConsent App

Legal

  • Privacy Policy
  • Terms of Service
  • Legal notice

© 2026 FlowConsent by BeBranded. All rights reserved.

FrancaisDeutschEspanol

Does your website use third-party services? Get GDPR compliant in minutes.

Try FlowConsent
  1. Home
  2. Services
  3. Other
  4. Leaflet
L

Leaflet

Preferences

Related services

AccuWeather

AccuWeather is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. AccuWeather supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, AccuWeather ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.

Other
A

Acuity Scheduling

Acuity Scheduling is a user preference and personalization service that helps websites deliver customized experiences based on individual visitor settings and choices. It manages preferences for content display, communication channels, and interaction styles. Acuity Scheduling integrates with website platforms to remember and apply user choices consistently across sessions. With privacy-compliant preference storage, Acuity Scheduling enhances satisfaction by ensuring tailored browsing experiences for every visitor.

Preferences

Affirm

Affirm is a versatile web technology that supports digital platforms with specialized functionality and enhanced capabilities. It provides robust tools and services that integrate with modern websites and applications seamlessly. Affirm is designed to improve operational efficiency, user experience, and digital performance. Trusted by developers and businesses alike, Affirm offers reliable solutions that scale with organizational needs and evolving web standards.

Other

Algolia

Algolia is a versatile web technology that supports digital platforms with specialized functionality and enhanced capabilities. It provides robust tools and services that integrate with modern websites and applications seamlessly. Algolia is designed to improve operational efficiency, user experience, and digital performance. Trusted by developers and businesses alike, Algolia offers reliable solutions that scale with organizational needs and evolving web standards.

Other
A

AppDynamics

AppDynamics is an analytics and measurement platform providing deep insights into digital ecosystem performance. It tracks user interactions, measures campaign effectiveness, and identifies optimization opportunities across web and mobile. AppDynamics offers customizable dashboards, automated alerts, and data export capabilities. By transforming raw data into actionable intelligence, AppDynamics empowers organizations to optimize strategy and maximize return on investment.

Analytics
A

Apple App Store

Apple App Store is a comprehensive e-commerce platform that provides businesses with all the tools needed to build, manage, and grow an online store. From product catalog management and secure payment processing to inventory tracking and order fulfillment, Apple App Store delivers a complete commerce solution. It features responsive storefront themes, SEO-optimized product pages, and powerful marketing tools to help merchants increase visibility and drive sales across channels.

Other
Get compliant — Try FlowConsent free

Free plan · 10-min setup

What does Leaflet do?

Leaflet is the leading open source JavaScript library for interactive web maps. The library itself sets no cookies. The privacy impact depends on the tile provider chosen by the publisher (OpenStreetMap, Stadia Maps, MapTiler, CARTO, Mapbox).

What Leaflet is

Leaflet is the most widely used open source JavaScript library for interactive web maps. It is lightweight (around 40 KB gzipped), mobile friendly, and powers thousands of map deployments across news sites, ecommerce, governments and tourism. Leaflet itself only renders map tiles, markers, popups, polygons and overlays; it does not provide the geographic data. The publisher chooses a tile provider and a geocoder separately, which determines the privacy posture of the map.

Leaflet sets no cookies

The Leaflet library runs entirely client side. It does not write cookies, does not use local storage and does not collect any telemetry. The library can be loaded from a public CDN (unpkg, jsDelivr) or bundled with the publisher own assets. The only network calls happen when the map fetches tiles from the configured tile URL, which is the responsibility of the chosen tile provider.

Tile provider choice drives the GDPR analysis

EU friendly options include the OpenStreetMap tile server (operated by the OSM Foundation in the UK with European mirrors), Stadia Maps (Sweden), MapTiler (Switzerland with EU hosting), Geoapify (Germany) and CARTO with EU residency in Madrid. US options include Mapbox, CARTO with US backend, Mapquest and Bing Maps tiles. With an EU provider no consent is required because the tile request is necessary to render the requested map and stays inside the EU. With a US provider the publisher must rely on consent or document a legitimate interest test plus the EU US Data Privacy Framework.

Get GDPR compliant in 10 minutes

Free plan available · No credit card required

Try FlowConsent free

Self hosting tiles

For full data control, the publisher can self host tiles using OpenMapTiles, TileServer GL or Protomaps PMTiles served from a CDN like Bunny.net. Self hosting removes any third party transfer and any consent requirement; the tiles are delivered from the publisher own domain alongside the rest of the site. Storage cost is the trade off (a global vector tileset is about 80 GB compressed).

Compliance checklist

Choose an EU tile provider whenever possible, document the chosen provider in the privacy notice as a sub processor, sign the DPA with the tile provider if it offers one (most EU providers do), gate the map behind consent only if the tile provider is in the United States, add the integrity attribute (SRI) to the Leaflet script tag, and consider Protomaps PMTiles for fully self hosted vector tiles.

GDPR consent category

Preferences

Websites using Leaflet must obtain user consent under GDPR regulations.

Legal basisLeaflet sets no cookies. The library itself is exempt from ePrivacy art. 5(3). Tile loading from the chosen provider requires the legal basis of that provider: legitimate interest (GDPR art. 6(1)(f)) and ePrivacy exemption when the tile request is necessary to render a map the visitor requested, or consent (art. 6(1)(a)) when an EU based map provider is replaced by a US one that introduces tracking. Self hosted tiles do not require consent.
Risk levellow
Applicable regulationsGDPR, ePrivacy Directive, CNIL guidance on web maps, EU US Data Privacy Framework (only if a US tile provider is used), Munich Google Fonts ruling logic applied to map tiles from US servers

DPIA considerations

A DPIA is not required for Leaflet itself. It is recommended when a US tile provider (Mapbox, CARTO US) is used because of the IP transfer to the United States. With EU tile providers (OpenStreetMap, Stadia Maps, MapTiler, CARTO Madrid) no DPIA is needed for the standard map use case. The DPIA, when needed, should document the tile provider, the IP transfer mechanism (Data Privacy Framework or SCCs), the volume of tile requests and the use of any GeoJSON overlay containing personal data.

Sample consent text

Our website displays maps powered by Leaflet, an open source JavaScript mapping library. Leaflet itself sets no cookie. The map tiles are loaded from {provider}, which receives your IP address to deliver the requested tiles. Replace {provider} with the actual tile source you use (OpenStreetMap, Stadia Maps, MapTiler, CARTO, Mapbox, self hosted). If the tile provider is in the United States, the transfer is documented in our privacy notice.

Technical details

Tracking methodopen_source_javascript_mapping_library_with_tile_loading_from_chosen_provider
Server locationLeaflet is an open source JavaScript library distributed via the Leaflet.js project on GitHub and through public CDNs (unpkg, jsDelivr, CDNJS). The library itself runs entirely client side in the visitor browser. The data and tile servers depend on the publisher choice: OpenStreetMap tiles (operated by the OpenStreetMap Foundation in the United Kingdom, with European mirrors), Stadia Maps (Sweden), MapTiler (Switzerland), Stamen Maps, CARTO (Madrid and US), Mapbox (United States) or self hosted tiles served from the publisher own server.
Cookieless tracking availableYes

Third-party domains contacted

unpkg.comcdn.jsdelivr.netcdnjs.cloudflare.comtile.openstreetmap.orgleafletjs.com

Cookies placed

NameTypeDurationPurpose
noneN/AN/AThe Leaflet JavaScript library does not set any cookies, local storage or telemetry. Any cookies seen on a Leaflet powered map come from the tile provider chosen by the publisher (OpenStreetMap, Stadia Maps, MapTiler, Mapbox).

Leaflet uses cookies for user preferences — inform visitors with a consent banner.

Get started freeScan your site

Frequently asked questions

What cookies does Leaflet set?

None. Leaflet is a client side JavaScript library that sets no cookies, no local storage and no telemetry. The tile provider chosen by the publisher may set its own cookies.

Is consent required for Leaflet?

For Leaflet itself, no. Consent depends on the tile provider: not required for EU providers (OpenStreetMap, Stadia Maps, MapTiler, Geoapify, CARTO Madrid); required when a US tile provider (Mapbox, CARTO US) is used because the IP is transferred to the United States.

What is the legal basis for Leaflet?

Legitimate interest of the publisher (GDPR art. 6(1)(f)) to render the map. For the tile provider: legitimate interest plus ePrivacy exemption for EU providers, consent for US providers under GDPR art. 6(1)(a).

Are data transferred outside the EU?

Only if the chosen tile provider is in the United States. EU providers like OpenStreetMap, Stadia Maps, MapTiler keep the tile requests inside the EU or under EEA equivalence. Self hosting eliminates third party transfers entirely.

Do I need a DPIA for Leaflet?

Not for Leaflet itself. Recommended only when a US tile provider is used and the map is heavily used (high frequency of IP transfers).

How do I implement Leaflet compliantly?

Pick an EU tile provider, sign the DPA with the provider, list the provider in the privacy notice as a sub processor, add SRI integrity attribute to the Leaflet script, self host tiles for maximum control, gate the map behind consent only if you stick with a US provider.

What are the alternatives to Leaflet?

OpenLayers (open source, similar functionality), MapLibre GL JS (vector tile rendering, open source fork of Mapbox GL JS), Mapbox GL JS (Mapbox specific), Apple MapKit JS, Google Maps JavaScript API. Leaflet remains the lightest and the most ecosystem rich choice with the broadest provider compatibility.

How do I update my cookie policy after adding Leaflet?

State that Leaflet itself sets no cookies. List the tile provider as a sub processor with its country and data flow. Mention the IP transfer if the provider is in the United States. Describe any geocoder or routing API separately if used.