Skip to content

Instantly share code, notes, and snippets.

@blackxored
Created March 30, 2014 22:29
Show Gist options
  • Save blackxored/9881014 to your computer and use it in GitHub Desktop.
Save blackxored/9881014 to your computer and use it in GitHub Desktop.
$interval(function() {
if ($scope.markers[1].lat - $scope.markers[3].lat < 0.00100) {
$scope.markers[3].lat -= 0.00100;
}
if ($scope.markers[3].lng - $scope.markers[1].lng < 0.00050) {
$scope.markers[3].lng += 0.00050;
}
}, 200);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment