Features Templating - allow specifying root @type in the JSON-LD output and a different name for features array

Description

JSON-LD mandates that each JSON object has an @type attribute. Currently the root object writes only a "type":"FeatureCollection" and there is no way to specify an @type attribute.
Moreover the array is always named as features and there is no possibility to change it to a different name that user might want to use to match a term in a vocabulary.
Two new $options will be added in order to allow such customization.

Environment

None

Activity

Marco Volpini November 23, 2021 at 9:42 AM
Edited

main pr

2.20.x pr

2.19.x

Fixed

Details

Assignee

Reporter

Components

Priority

Created November 23, 2021 at 8:42 AM
Updated January 24, 2022 at 2:08 AM
Resolved November 24, 2021 at 4:11 PM