Huge Google Maps Controls (Possible Bug?)

Looks like google have now acknowledged this and have provided a (currently un-documented) feature to change the UI scaling by passing in a “controlSize” when creating the map.

See comment from Google here.

JSFiddle here (from comment above).

Sample code:

var map;
function initMap() {
  map = new google.maps.Map(document.getElementById('map'), {
    center: {lat: -34.397, lng: 150.644},
    zoom: 8,
    controlSize: 32,
  });
}

Note: 40 is the default currently (and corresponds to the large controls that this question is about). I’ve found 25 to be about the same as the previous controls.

Update:

As of v3.36 this is a documented feature, see here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)