Open jmbeach opened 8 years ago
Did you find the solution?
@ZuzooVn no I didn't
Could you please update your status?
You should implement that into models/pokemons.js
take inspiration of https://github.com/iam4x/pokemongo-webspoof/blob/master/src/models/pokemons.js#L82-L114
@ZuzooVn No progress. @iam4x Any ideas on the refresh though?
@iam4x Oh I see it. I bet I could get it, but I haven't really been pokemon going. I'll see this weekend maybe
I am working on trying to integrate pokemongo-map with the spoofer and I have success with the initial load, but after that I can't get it to reload. I tried using a setInterval function to run the initial load process again, but that just caused all of the pokemon that were already on the map to turn into different pokemon...
Here's what the map looks like after first load:
But then after the set timeout function executes, all of the pokemon just get swapped out with new ones instead of appearing in the correct locations.
The code I've added:
View Pokemon.js:
View Pokestop.js
map/index.js:
I've never used react and have no clue what I'm doing... So if anyone has any suggestions I'd appreciate it!!!