Skip to content

Admin ui not displays the map on the field #14

@g-nardiello

Description

@g-nardiello

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions