Code example for Marker

Methods: getPosition, remove

0
	} 
 
	@Override 
	public void onDialogSetMarkClick(DialogFragment dialog) {
		option = SelectedOption.MARK;
		map.addMarker(new MarkerOptions().position(crosshairMarker.getPosition()));
		crosshairMarker.remove();
	} 
 
	@Override 
	public void onDialogSetRouteClick(DialogFragment dialog) {
		option = SelectedOption.ROUTE;
		if(route != null) {
			route = null;
 
		} 
		map.addMarker(new MarkerOptions().
				position(crosshairMarker.getPosition()).
				icon(BitmapDescriptorFactory.fromResource(R.drawable.ann_route)));
 
		route = map.addPolyline(new PolylineOptions().