buildFeature
Builds a Feature using a DSL with both geometry and properties provided upfront.
Providing values upfront allows them to have non-nullable types.
Return
The constructed Feature.
Parameters
The type of Geometry for the feature.
The type of properties. This can be any type that serializes to a JSON object. For dynamic or unknown property schemas, use JsonObject. For known schemas, use a Serializable data class.
The geometry associated with the feature.
The properties associated with the feature.
See also
Builds a Feature using a DSL with Geometry provided upfront.
Properties default to null but can be set in the builder block. Providing geometry upfront allows it to have a non-nullable type.
Return
The constructed Feature.
Parameters
The type of Geometry for the feature.
The type of properties. This can be any type that serializes to a JSON object. For dynamic or unknown property schemas, use JsonObject. For known schemas, use a Serializable data class.
The geometry associated with the feature.
The builder configuration block where properties, id, and bbox can be set.
See also
Builds a Feature using a DSL.
Both geometry and properties default to null but can be set in the builder block.
Return
The constructed Feature.
Parameters
The type of Geometry for the feature.
The type of properties. This can be any type that serializes to a JSON object. For dynamic or unknown property schemas, use JsonObject. For known schemas, use a Serializable data class.
The builder configuration block where geometry, properties, id, and bbox can be set.