propertyNames
Returns the set of all custom property names attached to this feature.
This extension property provides convenient access to the keys of Feature.customProperties. Useful for checking property existence or iterating over available properties.
Example:
// Check if property exists before retrieving
if ("maxRetries" in feature.propertyNames) {
val retries = feature.getProperty<Int>("maxRetries")
}
// List all properties
feature.propertyNames.forEach { name ->
println("Property: $name")
}Content copied to clipboard
Return
set of property names, or empty set if no custom properties exist