title: Stamen Map Toner substr error Google Maps Api
body: <p>I've been using this Toner Map by Stamen for a while. I built it using Google Maps. Its been working on multiple sites for the last 5-6 months.</p>
  
  <p>I just checked today as a client complained and they are all broken. </p>
  
  <p>Stamen: 
  <a href="http://maps.stamen.com/#watercolor/12/37.7706/-122.3782" rel="nofollow">http://maps.stamen.com/#watercolor/12/37.7706/-122.3782</a></p>
  
  <p>Error:</p>
  
  <pre><code>Uncaught TypeError: Object [object Array] has no method 'substr' 
  </code></pre>
  
  <p>JS Fiddle:
  <a href="http://jsfiddle.net/hnuTt/12/" rel="nofollow">http://jsfiddle.net/hnuTt/12/</a></p>
  
  <p>Javascript:</p>
  
  <pre><code>var layer = 'toner';
  var map = new google.maps.Map(document.getElementById('map'),{
      center: new google.maps.LatLng(51.514635,-0.092992),
      zoom: 15,
      mapTypeId: layer,
      scrollwheel: false,
      disableDefaultUI: true,
      mapTypeControlOptions: {
          mapTypeIds: [layer]
      }
  });
  map.mapTypes.set(layer, new google.maps.StamenMapType(layer));
  var marker = new google.maps.Marker({
      position: new google.maps.LatLng(51.499405,-0.390596),
      map: map
  });
  </code></pre>