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

Function processAppearance

static/js/statistics.js:398–410  ·  view source on GitHub ↗
(i, item)

Source from the content-addressed store, hash-verified

396}
397
398function processAppearance (i, item) {
399 var spawnpointId = item['spawnpoint_id']
400 if (!((spawnpointId) in mapData.appearances)) {
401 if (item['marker']) {
402 item['marker'].setMap(null)
403 }
404 item['marker'] = setupPokemonMarker(item, map, true)
405 addListeners(item['marker'])
406 item['marker'].spawnpointId = spawnpointId
407 mapData.appearances[spawnpointId] = item
408 }
409 heatmapPoints.push({location: new google.maps.LatLng(item['latitude'], item['longitude']), weight: parseFloat(item['count'])})
410}
411
412function redrawAppearances (appearances) {
413 $.each(appearances, function (key, value) {

Callers

nothing calls this directly

Calls 2

setupPokemonMarkerFunction · 0.85
addListenersFunction · 0.70

Tested by

no test coverage detected