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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With