addFeature
inline fun <G : Geometry?, P> FeatureCollectionBuilder<in G, in P>.addFeature(geometry: G, properties: P, builderAction: FeatureBuilder<G, P>.() -> Unit = {})(source)
Adds a Feature to a FeatureCollectionBuilder with both geometry and properties provided upfront.
Providing values upfront allows them to have non-nullable types.
Parameters
geometry
The geometry associated with the feature.
properties
The properties associated with the feature.
builderAction
The builder configuration block for the feature.
inline fun <G : Geometry?, P : @Serializable Any> FeatureCollectionBuilder<in G, in P?>.addFeature(geometry: G, builderAction: FeatureBuilder<G, P?>.() -> Unit = {})(source)
Adds a Feature to a FeatureCollectionBuilder with geometry provided upfront.
Properties default to null but can be set in the builder block.
Parameters
geometry
The geometry associated with the feature.
builderAction
The builder configuration block for the feature.
inline fun <G : Geometry, P : @Serializable Any> FeatureCollectionBuilder<in G?, in P?>.addFeature(builderAction: FeatureBuilder<G?, P?>.() -> Unit = {})(source)
Adds a Feature to a FeatureCollectionBuilder.
Both geometry and properties default to null but can be set in the builder block.
Parameters
builderAction
The builder configuration block for the feature.