jcadima
11/2/2018 - 1:36 PM

Hide Google Map Controls


https://developers.google.com/maps/documentation/javascript/controls


var myOptions = {
	zoom: 13,  // create a custom field to let the user override this value
	scrollwheel: false, // disable scrollwheel zoom, this should always be the default  >_<
	center: latlng,
	styles:
	[ { ... } ],
	zoomControl: false,  // hide zoom controls
	mapTypeControl: false, // hide map controls
}


Additional control boolean options:

{
  zoomControl: boolean,
  mapTypeControl: boolean,
  scaleControl: boolean,
  streetViewControl: boolean,
  rotateControl: boolean,
  fullscreenControl: boolean
}


To disable the whole UI:

disableDefaultUI: true