MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / processPokemons

Function processPokemons

static/js/map.js:890–907  ·  view source on GitHub ↗
(i, item)

Source from the content-addressed store, hash-verified

888}
889
890function 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
909function processPokestops (i, item) {
910 if (!Store.get('showPokestops')) {

Callers

nothing calls this directly

Calls 2

setupPokemonMarkerFunction · 0.85
customizePokemonMarkerFunction · 0.85

Tested by

no test coverage detected