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

Function changeLocation

static/js/map.js:1177–1183  ·  view source on GitHub ↗
(lat, lng)

Source from the content-addressed store, hash-verified

1175}
1176
1177function changeLocation (lat, lng) {
1178 var loc = new google.maps.LatLng(lat, lng)
1179 changeSearchLocation(lat, lng).done(function () {
1180 map.setCenter(loc)
1181 searchMarker.setPosition(loc)
1182 })
1183}
1184
1185function changeSearchLocation (lat, lng) {
1186 return $.post('next_loc?lat=' + lat + '&lon=' + lng, {})

Callers 1

initSidebarFunction · 0.85

Calls 1

changeSearchLocationFunction · 0.85

Tested by

no test coverage detected