Let the cookie banner hold the map back until the visitor allows the matching category, so the page fetches no file from Google before that and shows the list with a placeholder in place of the map. One console command proves it: on the eastki.ch directory, then running GEO my WP behind Complianz, it counted 0 requests to Google Maps before consent and 43 after a click on “Akzeptieren”, in Chrome on 20 November 2026.
The methodology page explains how the figures were collected. This guide sticks to the technical side. Whether a map requires consent in the first place is a legal question, and it stays open here.
How do I check that Google Maps does not load before consent?
Load the page with the map in a private window and leave the cookie banner alone. Open the developer tools, switch to the console and paste the Google Maps command from this table. The OpenFreeMap row comes up further down:
| Map service | Command for the console |
|---|---|
| Google Maps | performance.getEntriesByType('resource').filter((e) => /maps\.(googleapis|gstatic)\.com/.test(e.name)).length |
| OpenFreeMap | performance.getEntriesByType('resource').filter((e) => /tiles\.openfreemap\.org/.test(e.name)).length |
The command returns how many files the page has fetched from Google Maps up to now. Before consent, that number has to be 0. At the time of the measurement, eastki.ch ran its Google map with GEO my WP behind a Complianz cookie banner. There the command returned 0 before consent, 43 after “Akzeptieren” and 0 after “Ablehnen”. Each value comes from a fresh Chrome session with no stored data on 20 November 2026.
Which consent plugin can hold back Google Maps?
Any banner that blocks the map until consent and lets the map plugin ask for it, either through the banner’s own JavaScript or through the WP Consent API. The difference lies in that second part: Complianz and CookieYes state on their pages in the WordPress plugin directory that they pass consent to the WP Consent API, Real Cookie Banner does not, all three read on 6 December 2026. A map plugin that reads only the WP Consent API therefore misses Real Cookie Banner, and one that reads only its own list of banners misses the rest.
How does it work with Complianz?
Complianz holds the map back until the visitor accepts the category the map service is filed under, which for Google Maps on eastki.ch was marketing. The measurement above shows the result: 0 requests before consent and 0 after “Ablehnen”. According to its page in the plugin directory, last modified 26 November 2026, Complianz also shares its consent through the WP Consent API, so a map plugin can read it either way.
How does it work with CookieYes?
CookieYes shares consent states with other plugins through the WP Consent API, according to its page in the plugin directory, last modified 26 November 2026. A map plugin needs nothing specific to CookieYes, provided it reads the WP Consent API and checks that a consent type is set before it trusts a yes. Mapfolk reads CookieYes that way, and the section after next explains why that check matters.
How does it work with Real Cookie Banner?
Its page in the plugin directory, last modified 3 December 2026, does not mention the WP Consent API. A map plugin has to ask Real Cookie Banner itself for one service by that service’s ID. Mapfolk Pro does this for Google Maps and prefills the ID google-maps. The documentation on the map after consent shows where the ID goes.
Why is the WP Consent API not enough on its own?
Without a consent plugin, it allows everything. According to the README of the WP Consent API, the consent type returns false when no consent management plugin sets it, and in that case every consent category returns true. The README was read on 20 November 2026. A plugin that sets the consent type later in JavaScript opens the same gap if the page does not wait for it.
A map plugin that relies on the WP Consent API alone will therefore load Google on a site with no cookie banner, or before the banner has set the consent type. Before it treats a true as consent, it has to confirm that a consent type is set. Reviews rarely expose this bug. The guide on what goes wrong most often with WordPress map plugins counted the 31 reviews with 1 to 3 stars that eight map plugins received on wordpress.org between 20 November 2024 and 20 November 2026. None of them is about consent.
What should the page show before consent?
The full list and all filters, plus a placeholder with a button where the map goes. On eastki.ch the page HTML contained all 74 entries regardless of consent, and only the GEO my WP map scripts waited for the Complianz marketing category. That was the state at the measurement on 17 November 2026.
So a visitor who declines can still reach every entry. Once someone consents in the banner or clicks the placeholder, the map should appear without a page reload. That way the filters and the scroll position stay where they were.
Does a map with OpenStreetMap need the same check?
Swap the domain in the command and it works for any map service. For tiles from OpenFreeMap, use the second row of the table above. The Mapfolk demo at demo.getmapfolk.com loads its map without a cookie banner, and there the command returned 7 in Chrome on 20 November 2026. Whether those requests should also wait for consent is up to the site. The command only counts them.
The guide on how many locations a WordPress map can show measures how many entries such a map can display. Which services may turn addresses into coordinates is the topic of turning addresses into map coordinates.
Is OpenStreetMap in WordPress GDPR compliant?
That depends on the tile server the map loads from, not on OpenStreetMap. OpenStreetMap supplies the map data, while the visitor’s browser fetches the finished map tiles from a server and sends it the visitor’s IP address with every request. That server’s rules are what a site has to check and name in its privacy policy. Whether a particular setup meets the GDPR or the Swiss Federal Act on Data Protection is a legal question, and this guide leaves it open.
Is OpenFreeMap the same as tile.openstreetmap.org?
No. OpenFreeMap is a tile service of its own, run by Hyperknot Software Kft. in Hungary according to its terms of service, last updated 24 November 2026. It uses OpenStreetMap data, but its privacy policy covers only its own service at tiles.openfreemap.org. A plugin that loads tiles from tile.openstreetmap.org talks to a different server, and that server’s own rules apply.
OpenFreeMap’s privacy policy rules out cookies and keeps IP addresses out of its access logs. The table sums up the policy, last updated 8 October 2026 and read on 29 November 2026:
| Point | What the OpenFreeMap privacy policy says |
|---|---|
| Cookies | None, and no other tracking technologies |
| Access logs | No IP addresses |
| Error logs | May contain the IP address and the requested address, deleted after 7 days |
| Security incident | IP logging switched on for at most 30 days |
| Delivery | Cloudflare may be used as a CDN |
| Account or API key | None |
On 29 November 2026 the responses from tiles.openfreemap.org to the positron style, the tile index, a vector tile and a font file carried no Set-Cookie header. You can repeat the check for the style in the terminal with curl -sI https://tiles.openfreemap.org/styles/positron | grep -i set-cookie. It prints nothing when the server sets no cookie.
What does the Swiss data protection authority say about embedded map services?
It holds the website operator jointly responsible for what an embedded service collects. The guide on cookies and similar technologies (in German) from the Federal Data Protection and Information Commissioner, version 1.1 of 6 October 2025, describes in section 3.2.2 how an embedded third-party service makes the visitor’s browser request content from the provider and send it personal data. Because the operator decides which services are embedded, the guide says, the operator has to find out how they process data, meet every duty to inform and obtain consent where it is required.
For cookies that a site does not strictly need, section 3.7.2 of the same guide requires that visitors can always refuse them, based on Article 45c of the Telecommunications Act. The guide was read on 29 November 2026. The duty to inform applies either way: the privacy policy of getmapfolk.com names OpenFreeMap, its operator, the IP address and the 7 days for error logs, because the map on the home page loads from there.
How does Mapfolk handle consent?
When a map switches to Google, Mapfolk turns on the setting “Load map only after consent”. Until consent is given, the placeholder shows a preview with the markers and the button “Load map”, and the list and the filters already work. Mapfolk reads consent from Complianz directly and accepts a yes from the WP Consent API only when a consent type is set, which covers CookieYes. Borlabs Cookie and Real Cookie Banner it reads only for Google Maps, by the ID of the service. The OpenStreetMap map loads right away by default and can wait for consent through the same setting, with Complianz or the WP Consent API. The features on the home page list which of this needs Pro. Every map style in Mapfolk loads its tiles and fonts from tiles.openfreemap.org, and none uses tile.openstreetmap.org. Google Maps is part of Mapfolk Pro. For which map plugins need a paid version for this, see the comparison in what a directory map with filters costs.
Back to the blog