setFilter

open fun setFilter(    @NonNull filter: MPFilter,     @NonNull behavior: MPFilterBehavior,     @Nullable successListener: MPSuccessListener)

Use this method to display temporary locations, not points of interests location. Use clearFilter to exit this state

Parameters

filter

A MPFilter object, on what to filter the locations on.

behavior

An MPFilterBehavior that dictates how the map presents the filtered locations

successListener

A MPSuccessListener that informs when the filter operation succeeds/fails


open fun setFilter(@NonNull locations: List<MPLocation>, @NonNull behavior: MPFilterBehavior): Boolean

Use this method to display temporary locations, not points of interests location. Use clearFilter to exit this state

Return

False if any of these errors happened: no context, no map, no locations to show. True otherwise

Parameters

locations

The temporary locations.

behavior

An MPFilterBehavior that dictates how the map presents the filtered locations