• Converts a feature into a javascript feature filter function, that can be used to filter features on the client side.

    The returned function takes a single argument, a Feature. It returns true when the argument satisfies the condition. It returns false when the argument does not satisfy the condition.

    The condition may not contain function expressions.

      var filter = FilterFactory.gte(
    FilterFactory.property("total_population"),
    FilterFactory.literal(10000)
    );

    aFeatureLayer.filter = FilterFactory.toFeaturePredicate( filter );

    Parameters

    Returns ((feature) => boolean)

    A predicate function.

      • (feature): boolean
      • Parameters

        Returns boolean