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

Function updateGymMarker

static/js/map.js:586–590  ·  view source on GitHub ↗
(item, marker)

Source from the content-addressed store, hash-verified

584}
585
586function updateGymMarker (item, marker) {
587 marker.setIcon('static/forts/' + gymTypes[item['team_id']] + '.png')
588 marker.infoWindow.setContent(gymLabel(gymTypes[item['team_id']], item['team_id'], item['gym_points'], item['latitude'], item['longitude'], item['last_scanned'], item['name'], item['pokemon']))
589 return marker
590}
591
592function setupPokestopMarker (item) {
593 var imagename = item['lure_expiration'] ? 'PstopLured' : 'Pstop'

Callers 1

processGymsFunction · 0.85

Calls 1

gymLabelFunction · 0.85

Tested by

no test coverage detected