Strapi plugin that provides a MapLibre custom field
released November 14, 2026
npm install @premiate/strapi-plugin-maplibre-field
Add a location field to your Strapi v5 content types. Editors pick a point on a MapLibre map or search for an address; you get a standard GeoJSON Feature. Works out of the box with free OpenStreetMap maps, no API key or account.

# Using npm
npm install @premiate/strapi-plugin-maplibre-field
# Using Yarn
yarn add @premiate/strapi-plugin-maplibre-fieldCreate or update config/plugins.ts:
export default {
"maplibre-field": {
enabled: true,
config: {
mapStyles: [
{
id: "ofm",
name: "OpenFreeMap",
url: "https://tiles.openfreemap.org/styles/liberty",
isDefault: true,
},
],
defaultCenter: [9.19, 45.46], // [longitude, latitude]
defaultZoom: 13,
},
},
};Open config/middlewares.ts and add 'worker-src': ["'self'", 'blob:']:
export default [
"strapi::errors",
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
"connect-src": ["'self'", "https:"],
"img-src": ["'self'", "data:", "blob:"],
// MapLibre parses tiles in a Web Worker. `'self'` is the part that matters: the
// plugin serves that worker from your own Strapi instance.
"worker-src": ["'self'", "blob:"],
upgradeInsecureRequests: null,
},
},
},
},
// ... other middlewares
];In the Strapi Content-Type Builder pick up your Collection Type, Single Type or Component and:

There are four ways to select a location:
45.4601, 9.1901), then press EnterThe button at the end of the coordinates field copies them as latitude, longitude, ready to paste into openstreetmap.org or Google Maps.
The plugin supports any MapLibre Style Specification compatible provider — no lock-in to a single tile service:
See the Configuration Guide for detailed setup instructions.
Locations are stored as GeoJSON Features:
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [9.1877, 45.4596]
},
"properties": {
"name": "Torre Velasca",
"address": "Piazza Velasca 5, 20122 Milano, Lombardia, Italia",
"source": "nominatim",
"inputMethod": "search"
}
}See the Data Model Guide for complete property reference.
Bug reports and pull requests are welcome on GitHub.
See CONTRIBUTING.md for development setup and guidelines.
This plugin was forked from strapi-plugin-map-field by Cédric Pontet and migrated from Mapbox to MapLibre with foundations on OpenStreetMap, Nominatim geocoding, and Protomaps.
Thanks to Enzo Brunii for initial contributions.
MIT © Claudio Bernardini / Dipartimento di Cartografia Esistenzialista in Fotta, Premiate Edizioni
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
