You need to import the switchMap operator:
import 'rxjs/add/operator/switchMap';
update for rxjs >=5.5.0:
for rxjs@5.5.0 or higher it’s recommended to use the pipe operator instead of augmentation:
import { switchMap } from 'rxjs/operators';
\\...
this.route.params.pipe(switchMap((params: Params) => /*... */))
.subscribe(/*... */);
\\...
(this avoids side effects and enable better bundle size optimization)