Display Geometry as formatted JSON #7879
Replies: 2 comments 1 reply
-
Wanna open a PR for that?? Should be as simple as adding geometry to the supported types here: https://github.com/directus/directus/blob/main/app/src/displays/formatted-json-value/index.ts#L8 |
Beta Was this translation helpful? Give feedback.
1 reply
-
has been implemented |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems like the geometry type returns GeoJSON (which is just standardised JSON) when displayed in a Layout. The only option now is "Raw Value", but it could be possible to use the "Formatted JSON value" display to extract information.
Example value for Point:
{"coordinates": [5.9974, 58.4625], "type": "Point"}
Display Template:
{{ coordinates[0] }}° east, {{ coordinates[1] }}° north
Beta Was this translation helpful? Give feedback.
All reactions