favll / pogom

The fastest Pokémon Go Map available.
MIT License
551 stars 199 forks source link

[REQUEST] Improve heatmap loading. #289

Open Coalado opened 8 years ago

Coalado commented 8 years ago

Checklist

The heatmap can become pretty big. It's already a few MB in my case. It would be good to load it only when required. Example:

...

nborrmann commented 8 years ago

Protip: Setup an actual webserver (nginx) in front of flask and let the webserver gzip all responses.

Coalado commented 8 years ago

Good idea.

Koire commented 8 years ago

Yeah, sorry about that, I only made a working heat map. To do it quickly, I made it generate all the heat maps, then allow you to choose which one you want. To do what you want, you have to reverse the current function to generate a heat map when you add a mon to the heat map list. (if you notice, the heat maps don't do well layering on top of each other, but that's an easy fix)

Edit: I'll fix it.

Second Edit: @nborrmann Does it make sense to be able to select multiple pokemon? It will end up strengthening the areas with overlapping mons, but you won't really be able to tell what mon goes where. It is possible to give a heatmap a palette, but, I don't think that helps visualising.