Skip to content

Implementation of filter function #21

@johartl

Description

@johartl

Your map needs to implement the filter function. Specification from PokemonGoers/Catch-em-all#24

  • filter({ pokemonIds, sightingsSince, predictionsUntil }) applies filter options to the map.
    • pokemonIds Array of Pokemon IDs which are shown (applies to predictions and sightings) on the map. If null show all 151 Pokemon.
    • sightingsSince Time in seconds for which sightings (includes mobs) in the past are shown. If 0 don't show any sightings.
    • predictionsUntil Time in seconds for which predictions are shown. If 0 don't show any predictions.

The filter function will make your updateTimeRange function obsolete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions