()
| 363 | } |
| 364 | |
| 365 | function resetMap () { |
| 366 | $.each(mapData.appearances, function (key, value) { |
| 367 | mapData.appearances[key].marker.setMap(null) |
| 368 | delete mapData.appearances[key] |
| 369 | }) |
| 370 | |
| 371 | heatmapPoints = [] |
| 372 | if (heatmap) { |
| 373 | heatmap.setMap(null) |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | function showOverlay (id) { |
| 378 | // Only load google maps once, and only if requested |