Skip to content

Instantly share code, notes, and snippets.

@amanjeetsingh150
Last active August 28, 2019 11:28
Show Gist options
  • Save amanjeetsingh150/cfd6d3931bc5f093921df8e44561e6aa to your computer and use it in GitHub Desktop.
Save amanjeetsingh150/cfd6d3931bc5f093921df8e44561e6aa to your computer and use it in GitHub Desktop.
marker.setPosition(newPos);
marker.setAnchor(0.5f, 0.5f);
marker.setRotation(getBearing(startPosition, newPos));
mMap.animateCamera(CameraUpdateFactory
.newCameraPosition(new CameraPosition.Builder().target(newPos).zoom(15.5f).build()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment