Skip to content

Instantly share code, notes, and snippets.

@marcelosantos
Last active March 23, 2017 19:42
Show Gist options
  • Save marcelosantos/f7228f6bfb0abf976a168295db9f5ad7 to your computer and use it in GitHub Desktop.
Save marcelosantos/f7228f6bfb0abf976a168295db9f5ad7 to your computer and use it in GitHub Desktop.

Angular Google Maps Options

Hide controll

$scope.map = {
        center: {
            latitude: -3.7718620,
            longitude: -38.5266700
        },
        control : {},
        zoom: 6,
        options: {
            mapTypeId: google.maps.MapTypeId.ROADMAP,
            mapTypeControl: false,
            mapTypeControlOptions: {
                style: google.maps.MapTypeControlStyle.DROPDOWN_MENU,
                position: google.maps.ControlPosition.BOTTOM_CENTER
            },
            minZoom: 2,
            maxZoom: 20,
            panControlOptions: {
                position: google.maps.ControlPosition.RIGHT_BOTTOM
            },
            disableDefaultUI: true,
            styles: [{
                featureType: "poi",
                stylers: [{
                    visibility: "off"
                }]
            },
            {
                elementType : 'labels',
                stylers : [{
                  visibility : 'off'
                }]
            }],
            panControl: true,
            zoomControl: true,
            scaleControl: false,
            streetViewControl: false,
            overviewMapControl: false
        },
        enableCluster : true,
        rebuildMarkers : false
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment