title: Custom GMapTypeControl buttons (Google Maps V2 API)
body: <p>A <a href="https://stackoverflow.com/questions/4237022/customize-look-of-the-google-maps-maptype-controls">similar question</a> was already asked, but does not have a satisfying answer.</p>
  
  <p>I want to change the CSS style for the map type selection buttons (which are actually DIVs that don't have a CSS class). The links in the referenced question show how to <a href="https://code.google.com/apis/maps/documentation/javascript/v2/controls.html#Custom_Controls" rel="nofollow noreferrer">subclass controls</a>, but the examples don't seem to work for <a href="https://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMapTypeControl" rel="nofollow noreferrer"><code>GMapTypeControl</code></a>. Tried the following</p>
  
  <pre><code>function CustomGMapTypeControl() {}
  CustomGMapTypeControl.prototype = new GMapTypeControl()
  CustomGMapTypeControl.prototype.setButtonStyle_ = function(button) {
      button.style.backgroundColor = "red";
  }
  </code></pre>
  
  <p>but the <code>setButtonStyle_</code> function doesn't even get called.</p>
  
  <p>Any solutions for this?</p>