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

Admin Display Issues

Open mruknowme opened this issue 2 years ago • 1 comments

Installed the plugin and added:

"location": {
      "columnType": {
        "type": "specificType",
        "args": [
          "geometry(POINT,4326)"
        ]
      },
      "type": "json",
      "fieldRenderer": "postgis"
    }

In the admin UI it was showing error in place of this field "no permission to see this field"

Then, just out of curiosity I added normal JSON location2 field using the Admin UI. When saved it changed schema.json record to this:

"location": {
      "columnType": {
        "type": "specificType",
        "args": [
          "geometry(POINT,4326)"
        ]
      },
      "type": "json",
      "fieldRenderer": "postgis",
      "isSpatial": true,
      "srid": 4326,
      "coord_dimension": 2,
      "f_table_schema": "public",
      "geoType": "POINT"
    }

The Admin UI now just shows textarea with null.

Questions:

  1. How do I specify location? Shouldn't there be a UI map to choose a location?
  2. How do I query by location using REST or better GraphQL?

mruknowme avatar Jan 28 '23 03:01 mruknowme