Google Maps V3: How to disable "street view"?
The answer is actually in the 2nd paragraph you linked to, but your code should look something like this:
var mapOptions = {
center: mapCenter,
zoom: 10,
streetViewControl: false,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
I'd like to add to the chosen answer and say that if you want to remove the zoom controls (plus-minus buttons) too, then change
streetViewControl: false,
with
disableDefaultUI: true,
It was more useful for a mobile touchscreen, since you can zoom in with two fingers.