strapi-plugin-postgis
strapi-plugin-postgis copied to clipboard
Admin Display Issues
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:
- How do I specify location? Shouldn't there be a UI map to choose a location?
- How do I query by location using REST or better GraphQL?