Companion

Factory methods for creating and serializing Feature objects.

Functions

Link copied to clipboard

Checks if a property exists in the feature's JsonObject properties.

Link copied to clipboard
@JvmName(name = "inlineFromJson")
inline fun <G : Geometry?, P> fromJson(@Language(value = "json") json: String): Feature<G, P>

Deserializes a Feature from a JSON string.

Link copied to clipboard
@JvmName(name = "inlineFromJsonOrNull")
inline fun <G : Geometry?, P> fromJsonOrNull(@Language(value = "json") json: String): Feature<G, P>?

Deserializes a Feature from a JSON string, or returns null on failure.

Link copied to clipboard

Gets a boolean property from the feature's JsonObject properties.

Link copied to clipboard

Gets a double property from the feature's JsonObject properties.

Link copied to clipboard

Gets an integer property from the feature's JsonObject properties.

Link copied to clipboard

Gets a string property from the feature's JsonObject properties.