Skip to content

[New Feature]: DrawTool - Feature Property Templates #352

@tariqksoliman

Description

@tariqksoliman

Checked for duplicates

Yes - I've already checked

Alternatives considered

Yes - and alternatives don't suffice

Related problems

No response

Describe the feature request

This feature will add support for feature property templating in the DrawTool. This will enable DrawTool users to, per file, select a preset template or make their own and apply that to all their file's feature's properties. A template defines checkboxes, dropdowns, input boxes, limits, &c of fields. One in JSON format may look like:

[
    {"title": "ex1", "type": "range", "min": 0, "max": 100, "step": 1, "required": true},
    {"title": "ex2","type": "checkbox", "checked": true},
    {"title": "ex3", "type": "dropdown", "items": ["Yes", "No"]}
]
  • Admin can write preset templates within the DrawTool's /configure Raw Variables
  • When users go to create a new file, a modal pops up allowing them to choose a file name, a file template or make their own file template
  • When features are saved, the filled out form is validated first
  • Support group editing with templates
  • Might be some odd edge cases when changing an existing file's template or when copying features between templates

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFor making an existing feature better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions