diff --git a/here-naksha-lib-model/src/commonMain/kotlin/naksha/model/request/PropertyFilter.kt b/here-naksha-lib-model/src/commonMain/kotlin/naksha/model/request/PropertyFilter.kt index 2ff8f942a..b4cbce34a 100644 --- a/here-naksha-lib-model/src/commonMain/kotlin/naksha/model/request/PropertyFilter.kt +++ b/here-naksha-lib-model/src/commonMain/kotlin/naksha/model/request/PropertyFilter.kt @@ -11,6 +11,11 @@ class PropertyFilter(val req: ReadFeatures) : ResultFilter { const val PROPERTIES = "properties" } + /** + * Check if the feature matches the query + * @param resultTuple the tuple containing the feature + * @return the tuple back if matches, else return null + */ override fun filter(resultTuple: ResultTuple): ResultTuple? { val pSearch = req.query.properties ?: return resultTuple if (resultTuple.tuple == null) return null