We build things that work. Seriously.

Back to the plugin Help & documentation

Mignuti Maps: help & documentation

OpenStreetMap maps with a two-click solution: no map tile before consent.

Installing in WordPress #

  1. Upload the folder mignuti-maps to /wp-content/plugins/ or install the plugin under Plugins → Add New.
  2. Activate the plugin.
  3. Recommended: activate Mignuti Consent so consent is managed centrally.
  4. Add your privacy policy link under Settings → Mignuti Maps.
  5. Insert maps with the “Mignuti Map” block or the shortcode [mignuti_map].

Requirements: WordPress 6.4 or later, PHP 8.1 or later.

Settings #

Under Settings → Mignuti Maps a status card shows whether nothing loads before consent, Leaflet is served locally, Mignuti Consent is active and the privacy policy is linked. Next to it you see a live preview of the placeholder.

  • Privacy: consent category (recommended: External media), provider name on the placeholder, placeholder notice, privacy policy link.
  • Map service: tile URL, attribution, maximum zoom (default 19), default zoom (13), default height in pixels (400).
  • Usage: block and shortcode to copy.

“Mignuti Map” block #

Insert the Mignuti Map block in the block editor.

  1. Type an address into the search and pick a result. Latitude and longitude are filled in.
  2. Give the map a title. It then also outputs structured data.
  3. Adjust zoom and height if needed.

The address search queries Nominatim (OpenStreetMap Foundation) through your server. Visitors trigger no request. Results are cached for one week.

Shortcode [mignuti_map] #

Example:

[mignuti_map lat="50.3066" lng="7.5996" zoom="14" title="Mignuti Media" address="Pfarrer-Mengesstr. 5, 56112 Lahnstein"]

Attributes:

  • lat – latitude (required, −90 to 90).
  • lng – longitude (required, −180 to 180).
  • zoom – zoom level from 1 to the maximum zoom. Without it, the default zoom from the settings applies.
  • title – name of the place. Enables the structured data.
  • height – height in pixels, 150 to 1200. Without it, the default height applies.
  • label – provider name on the placeholder, overrides the setting for this map.
  • address – address. Shown below the map with the “View location on OpenStreetMap” link and used in the structured data.

If lat or lng is missing, the page shows a notice instead of the map.

Your own map service #

By default the public OpenStreetMap tile server is used. Its usage policy does not allow heavy use. For busy sites, enter your own or a commercial tile server under Map service.

  • The URL must start with https and contain the placeholders {z}, {x} and {y}.
  • Adjust the attribution to the provider.
  • Change the provider name and notice on the placeholder and name the provider in your privacy policy.

Structured data #

Maps with a title output Place and GeoCoordinates data as JSON-LD, with the address if given. This helps search engines understand the location.

Developers can suppress the output with the filter mignuti/maps/schema, for example if an SEO plugin already marks up the place.

Privacy policy text #

The plugin adds a suggestion to the WordPress privacy policy guide under Settings → Privacy. You can also use this text. Adapt it to your map service. It is not legal advice.

Maps (OpenStreetMap)

On some pages we embed interactive maps. We use OpenStreetMap as the map service (OpenStreetMap Foundation, St John’s Innovation Centre, Cowley Road, Cambridge, CB4 0WS, United Kingdom).

The map is not loaded automatically. At first you only see a local placeholder; no connection to the map service’s servers is made. Only when you click “Load map” or consent to the corresponding category are map tiles loaded from the map service’s server.

In the process your IP address is transmitted to the map service. This is technically necessary to deliver the map to your browser. We have no influence on the extent of the processing there.

The legal basis is your consent (Art. 6(1)(a) GDPR). It is voluntary and can be withdrawn at any time with effect for the future; after a withdrawal the placeholder appears again. Depending on the map service, data may be transferred to a third country.

The address search in the editor only concerns editors of the website, not visitors. It usually does not need to be in the privacy policy.

Troubleshooting #

The map doesn’t load after consent. Check that the selected consent category is active in the Mignuti Consent banner. Both settings must match.

A notice appears instead of the map. Latitude or longitude is missing or invalid. Pick an address in the block or check lat and lng in the shortcode.

The status card warns about the OSM usage policy. For busy sites, enter your own tile server.

The address search in the editor finds nothing. Your server must be able to reach nominatim.openstreetmap.org. Some hosts block outgoing requests. Enter the coordinates by hand instead.

Default texts stay in the old language after a language switch. Since version 1.0.1, unchanged default texts follow the site language. Update edited texts yourself.