Created
February 20, 2015 14:58
-
-
Save pratamawijaya/240d7c55b14698d9e87d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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