Skip to content

Instantly share code, notes, and snippets.

@pratamawijaya
Created February 20, 2015 14:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pratamawijaya/240d7c55b14698d9e87d to your computer and use it in GitHub Desktop.
@Override
public void onMapClick(LatLng latLng) {
mMap.clear();
mMap.addMarker(new MarkerOptions()
.position(new LatLng(latLng.latitude, latLng.longitude))
.title("Starting Point")
.icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_marker))
);
lat = latLng.latitude;
lng = latLng.longitude;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment