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

Function showOverlay

static/js/statistics.js:377–389  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

375}
376
377function 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
391function closeOverlay () { // eslint-disable-line no-unused-vars
392 $('#location_details').hide()

Callers 1

statistics.jsFile · 0.85

Calls 3

resetMapFunction · 0.85
updateDetailsFunction · 0.85
initMapFunction · 0.70

Tested by

no test coverage detected