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

Function processGyms

static/js/map.js:948–959  ·  view source on GitHub ↗
(i, item)

Source from the content-addressed store, hash-verified

946}
947
948function processGyms (i, item) {
949 if (!Store.get('showGyms')) {
950 return false // in case the checkbox was unchecked in the meantime.
951 }
952
953 if (item['gym_id'] in mapData.gyms) {
954 item.marker = updateGymMarker(item, mapData.gyms[item['gym_id']].marker)
955 } else { // add marker to map and item to dict
956 item.marker = setupGymMarker(item)
957 }
958 mapData.gyms[item['gym_id']] = item
959}
960
961function processScanned (i, item) {
962 if (!Store.get('showScanned')) {

Callers

nothing calls this directly

Calls 2

updateGymMarkerFunction · 0.85
setupGymMarkerFunction · 0.85

Tested by

no test coverage detected