()
| 1000 | } |
| 1001 | |
| 1002 | function updateMap () { |
| 1003 | loadRawData().done(function (result) { |
| 1004 | $.each(result.pokemons, processPokemons) |
| 1005 | $.each(result.pokestops, processPokestops) |
| 1006 | $.each(result.gyms, processGyms) |
| 1007 | $.each(result.scanned, processScanned) |
| 1008 | $.each(result.spawnpoints, processSpawnpoints) |
| 1009 | showInBoundsMarkers(mapData.pokemons, 'pokemon') |
| 1010 | showInBoundsMarkers(mapData.lurePokemons, 'pokemon') |
| 1011 | showInBoundsMarkers(mapData.gyms, 'gym') |
| 1012 | showInBoundsMarkers(mapData.pokestops, 'pokestop') |
| 1013 | showInBoundsMarkers(mapData.scanned, 'scanned') |
| 1014 | showInBoundsMarkers(mapData.spawnpoints, 'inbound') |
| 1015 | // drawScanPath(result.scanned); |
| 1016 | clearStaleMarkers() |
| 1017 | if ($('#stats').hasClass('visible')) { |
| 1018 | countMarkers() |
| 1019 | } |
| 1020 | }) |
| 1021 | } |
| 1022 | |
| 1023 | function drawScanPath (points) { // eslint-disable-line no-unused-vars |
| 1024 | var scanPathPoints = [] |
no test coverage detected