Option to hide pokemon from the map

This map is pretty hard to read without having to zoom really far in. It would be a lot more clear if there was an option to hide pokemon icons from the map.
I think they should be removed after 30 sec or something.
I was gonna suggest the same but I just kept on using refresh for now, so I'd rather they work on something else right now; like the eggs windows.
Refresh isn't really a solution, since it resets other stuff like the path.
where did you even get this map from... I feel like im missing something from this program lol. I just run mine in cmd and have no map
With the latest code, pull up http://localhost:8000/ while it's running.
You can change that port in the config file.
all i got when i went there was a CMD prompt print out and 2 check boxes for notifications
To add a clear map button run this in your browser console:
//create btn
var btn = document.createElement("BUTTON");
var t = document.createTextNode("Clear map");
btn.appendChild(t);
//add btn action
btn.onclick=function(){clearMap();};
//append btn
var windowMap = document.getElementById("window-map");
var contentDiv = windowMap.getElementsByClassName("content")[0];
var optionsDiv = contentDiv.getElementsByTagName("div")[0];
optionsDiv.appendChild(btn);
//Clear functions
function clearMap(){
deleteCaughtPokemonMarkers();
deletePokestopMarkers();
deletePolyLine();
}
function deleteCaughtPokemonMarkers(){
caughtPokemonMarkers.forEach(
function(marker) {
marker.setMap(null);
}
);
caughtPokemonMarkers = [];
}
function deletePokestopMarkers(){
for (key in pokestopMarkers) {
pokestopMarkers[key].setMap(null);
}
pokestopMarkers = {};
}
function deletePolyLine(){
polyLine.clear();
}
Could you post a SS @langerhans where it goes, The cmd window wont let my add anything while the bots running.
In Chrome, press F12, go to the Console tab, paste the snippet into the input field at the bottom and press enter.
There it is. I like it, could be two buttons to clear pokemon and pokestops maybe? @ursalame Maybe you want to put in a PR with this?
im not seeing any stops or pokes on the map?
and the "guy" on the map isnt moving...
28 Jul 20:52:01: Error running loop ProfileLoop! com.pokegoapi.exceptions.RemoteServerException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.api.inventory.Hatchery.queryHatchedEggs(Hatchery.java:73) at ink.abb.pogo.scraper.tasks.HatchEggs.run(HatchEggs.kt:22) at ink.abb.pogo.scraper.Bot.task(Bot.kt:177) at ink.abb.pogo.scraper.Bot$start$3.invoke(Bot.kt:106) at ink.abb.pogo.scraper.Bot$start$3.invoke(Bot.kt:32) at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:139) at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:32) at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18) Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:66) at com.pokegoapi.api.inventory.Hatchery.queryHatchedEggs(Hatchery.java:71) ... 7 more
@russr You should create a new issue for your error, since it's not related to this issue.
The build-in webserver has been removed and replaced with some external GUI's.
We do not maintain their repositories, but you can ask on their issue trackers for extra functionality :)