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

Function updateMap

static/js/map.js:1002–1021  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1000}
1001
1002function 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
1023function drawScanPath (points) { // eslint-disable-line no-unused-vars
1024 var scanPathPoints = []

Callers 2

map.jsFile · 0.85

Calls 4

showInBoundsMarkersFunction · 0.85
clearStaleMarkersFunction · 0.85
countMarkersFunction · 0.85
loadRawDataFunction · 0.70

Tested by

no test coverage detected