(id)
| 375 | } |
| 376 | |
| 377 | function showOverlay (id) { |
| 378 | // Only load google maps once, and only if requested |
| 379 | if (!mapLoaded) { |
| 380 | initMap() |
| 381 | } |
| 382 | resetMap() |
| 383 | pokemonid = id |
| 384 | $('#location_details').show() |
| 385 | location.hash = 'overlay_' + pokemonid |
| 386 | updateDetails() |
| 387 | |
| 388 | return false |
| 389 | } |
| 390 | |
| 391 | function closeOverlay () { // eslint-disable-line no-unused-vars |
| 392 | $('#location_details').hide() |
no test coverage detected