MCPcopy Index your code
hub / github.com/PokemonGoF/PokemonGo-Bot / onPositionUpdate

Function onPositionUpdate

map-chat/javascript/map.js:90–96  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

88}
89
90function onPositionUpdate(position) {
91 if (markersMap[mySessionId]) { //update user marker position
92 setUserLocation(position.coords.latitude, position.coords.longitude);
93 var userMarker = markersMap[mySessionId].marker;
94 userMarker.setPosition(shareAccurateLocation ? userLocation : fuzzyUserLocation);
95 }
96}
97
98function onPositionError(err) {
99 // try fallback location provider ipinfo.io or generate random location

Callers

nothing calls this directly

Calls 1

setUserLocationFunction · 0.85

Tested by

no test coverage detected