MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / onFirstPosition

Function onFirstPosition

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

Source from the content-addressed store, hash-verified

77}
78
79function onFirstPosition(position) {
80 setUserLocation(position.coords.latitude, position.coords.longitude);
81 map.panTo(userLocation);
82 var message = {};
83 message.lat = position.coords.latitude;
84 message.lng = position.coords.longitude;
85 message.text = "I just connected to the map!"
86
87 client.publish("pgochat/chat", JSON.stringify(message));
88}
89
90function onPositionUpdate(position) {
91 if (markersMap[mySessionId]) { //update user marker position

Callers 4

initializeFunction · 0.85
onPositionErrorFunction · 0.85
useRandomLocationFunction · 0.85

Calls 2

setUserLocationFunction · 0.85
publishMethod · 0.80

Tested by

no test coverage detected