strapi-plugin-postgis
strapi-plugin-postgis copied to clipboard
Admin ui not displays the map on the field
Issue
I've installed the strapi-plugin-postgis on a clean version of strapi 4.11.5 instance.
I created a field "Posizione" on a collection, but when I create an item, only a black text area is available and not the interactive map to edit the field.
I'm expecting the map is available to edit the value of the field. How could I solve this?
Thank you!
Configurations
My schema.json
contains the following:
"Posizione": {
"columnType": {
"type": "specificType",
"args": [
"geometry(POINT,4326)"
]
},
"type": "customField",
"customField": "plugin::postgis.map",
"pluginOptions": {
"i18n": {
"localized": false
}
}
}
My `middlewares.ts' is the following
export default [
'strapi::errors',
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'img-src': ["'self'", 'data:', 'blob:', '*.tile.openstreetmap.org'],
upgradeInsecureRequests: null,
},
},
},
},
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];