
Strapi plugin that provides a MapLibre custom field
released August 26, 2026
npm install @premiate/strapi-plugin-maplibre-field
A Strapi v5 plugin providing a MapLibre map custom field with POI support, geocoding and multi base maps.

# 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:
The selected location is saved as a GeoJSON Feature with coordinates, name, address, and metadata.
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.
Integrate custom Points of Interest from a GeoJSON URL (static file or API) or a PMTiles vector tile archive:
See the POI Integration Guide for setup and examples.
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
