title: Does gMaps APIv3 allow you to use two overlay map types and how?
body: <p>I've been looking for the solution to make two (or more) layers visible using informations from WMS servers. I am using <strong>overlayMapTypes</strong>  array to make it work (you can read about it <a href="https://developers.google.com/maps/documentation/javascript/reference#MVCArray" rel="nofollow">here</a> ) pushing overlays onto it. The issue is - even when I push two layers there, only the latter (on highest position number) layer is visible. Here's the code I use (I've cut not-important info).</p>
  
  <pre><code>function addLayer(layers, serverUrl){
  
  mapPref.currentLayers = layers;
  mapPref.layersServerUrl = serverUrl;    
  
    var wmsOptions = {
    //here I am initializing layer object - its max/min zoom, gettile function, size of
    //tile, alternative text, etc.
    };
  
    wmsMapType = new google.maps.ImageMapType(wmsOptions);
  
    mapPref.cmsMap.overlayMapTypes.push(wmsMapType);
    };
  </code></pre>
  
  <p>Is there any way to deal with it that way? Or should I look somewhere else?
  Thanks in advance!</p>