open-forms
open-forms copied to clipboard
Handle object types with no geometry allowed
I will probably close this PR at some point, as I think it's better to handle it as sergei said:
instead of handling the mapping as everything inside
data
and special casinggeometry
, can't we just implicitly add thedata
path prefix to everything so then you get a list of targets:
geometry
data.firstName
data.lastName
data.country
but the end user never needs to worry about thedata.
prefix (of course keeping the types in mind here) the reason I'm asking this is also because you can have a second map in the form which goes todata.additionalGeometry
, and that thing also needs to be pre-processed to produce geo-json
With this solution in my mind, we would just have to remove geometry
if allowGeometry
is False
in the objecttypes API