title: How to have multiple data layers in Google Maps?
body: <p>Is it possible to have multiple data layers using Google Maps API? The only existing related question I could find was <a href="https://stackoverflow.com/questions/24275265/interact-with-geojson-layers-independently-in-google-maps-api-v3">this</a>.</p>
  
  <p>Here's my problem.</p>
  
  <p>I want to have a data layer for showcasing polygons on map that are being drawn by the user. At the same time I want to have another data layer that displays polygons that already exist in a database.</p>
  
  <p>I figured I would do this by creating 2 data layers:</p>
  
  <pre><code>drawLayer = new google.maps.Data();
  savedLayer = new google.maps.Data();
  </code></pre>
  
  <p>But when I initialize the drawing tools using <code>drawLayer.setControls(['Polygon'])</code>, it doesn't work. If I replace the <code>drawLayer</code> with <code>map.data</code>, then the drawing tools works fine. Why is that?</p>
  
  <p><strong>JSFiddle:</strong> <a href="http://jsfiddle.net/pjaLdz6w/" rel="noreferrer">http://jsfiddle.net/pjaLdz6w/</a></p>