Skip to content

Instantly share code, notes, and snippets.

@VhMuzini
Created May 24, 2018 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VhMuzini/737a9fdb7b59b53f6a2bbbbe78061335 to your computer and use it in GitHub Desktop.
Save VhMuzini/737a9fdb7b59b53f6a2bbbbe78061335 to your computer and use it in GitHub Desktop.
google map typeControl
let mapOptions = {
center : new google.maps.LatLng(this.device.lat, this.device.lng),
zoom : this.mapDefaultsZoom,
// maxZoom: 15,
mapTypeId: google.maps.MapTypeId.HYBRID,
mapTypeControl: true,
mapTypeControlOptions:
{
style: google.maps.MapTypeControlStyle.DROPDOWN_MENU, // Possible Values: DEFAULT, DROPDOWN_MENU and HORIZONTAL_BAR
},
streetViewControl: false,
scrollwheel: true,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment