strapi-plugin-postgis icon indicating copy to clipboard operation
strapi-plugin-postgis copied to clipboard

Admin ui not displays the map on the field

Open g-nardiello opened this issue 1 year ago • 4 comments

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',
];

g-nardiello avatar Jul 16 '23 17:07 g-nardiello