(i, item)
| 888 | } |
| 889 | |
| 890 | function processPokemons (i, item) { |
| 891 | if (!Store.get('showPokemon')) { |
| 892 | return false // in case the checkbox was unchecked in the meantime. |
| 893 | } |
| 894 | |
| 895 | if (!(item['encounter_id'] in mapData.pokemons) && |
| 896 | excludedPokemon.indexOf(item['pokemon_id']) < 0) { |
| 897 | // add marker to map and item to dict |
| 898 | if (item.marker) { |
| 899 | item.marker.setMap(null) |
| 900 | } |
| 901 | if (!item.hidden) { |
| 902 | item.marker = setupPokemonMarker(item, map) |
| 903 | customizePokemonMarker(item.marker, item) |
| 904 | mapData.pokemons[item['encounter_id']] = item |
| 905 | } |
| 906 | } |
| 907 | } |
| 908 | |
| 909 | function processPokestops (i, item) { |
| 910 | if (!Store.get('showPokestops')) { |
nothing calls this directly
no test coverage detected