(i, item)
| 396 | } |
| 397 | |
| 398 | function 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 | |
| 412 | function redrawAppearances (appearances) { |
| 413 | $.each(appearances, function (key, value) { |
nothing calls this directly
no test coverage detected