title: how to set shape editabe from kml
body: <p>Im loading a kml file in my maps api and im using this code af a click event.</p>
  
  <pre><code>google.maps.event.addListener(ctaLayer, 'click', function (kmlEvent) {
      setSelection(kmlEvent.featureData.name);                            
      //alert(kmlEvent.featureData.name);
      //showInContentWindow(text);
  });
  </code></pre>
  
  <p>Thats calls a function </p>
  
  <pre><code>function setSelection(shape) {
      clearSelection();
      selectedShape = shape;
      shape.setEditable(true);
  }
  </code></pre>
  
  <p>No i have 2 problems with it, the KML file gives me 2 polygons with each a different name.
  <code>Tester</code> and <code>jahoor</code>. But when i click on <code>jahoor</code> it always gives me the polygon <code>Tester</code>.
  Why cant i select them different from each other?</p>
  
  <p>The second problem is, i cant set the polygon from the kml editable again.
  It gives me the error: <code>Uncaught TypeError: Object Tester has no method 'setEditable'</code></p>
  
  <p>Does somebody know what im doing wrong? Can find it on stack or in the documents from the google api </p>
  
  <p>Piece of the kml file:</p>
  
  <pre><code>&lt;Placemark id="Tester"&gt;
      &lt;styleUrl&gt;#transYellowPolyActive&lt;/styleUrl&gt;
      &lt;name&gt;Tester&lt;/name&gt;
      &lt;Polygon&gt;
          &lt;outerBoundaryIs&gt;
              &lt;LinearRing&gt;
              &lt;tessellate&gt;0&lt;/tessellate&gt;
              &lt;coordinates&gt;                                           6.30889892578125,53.28820543193896 6.29791259765625,53.28410053532493 6.233367919921875,53.21096737507053 6.5093994140625,53.19698389904798 6.50390625,53.27096221595853
              &lt;/coordinates&gt;
              &lt;/LinearRing&gt;
          &lt;/outerBoundaryIs&gt;
      &lt;/Polygon&gt;
  &lt;/Placemark&gt;
  &lt;Placemark id="jahoor"&gt;
      &lt;styleUrl&gt;#transYellowPolyActive&lt;/styleUrl&gt;
          &lt;name&gt;jahoor&lt;/name&gt;
              &lt;Polygon&gt;
              &lt;outerBoundaryIs&gt;
                  &lt;LinearRing&gt;
                  &lt;tessellate&gt;0&lt;/tessellate&gt;
                  &lt;coordinates&gt;                                           6.168479919433594,53.30318495818702 6.143760681152344,53.29579845109269 6.138267517089844,53.27281003615208 6.195259094238281,53.2707568976735 6.2010955810546875,53.29867113343524
                  &lt;/coordinates&gt;
                      &lt;/LinearRing&gt;
              &lt;/outerBoundaryIs&gt;
          &lt;/Polygon&gt;
      &lt;/Placemark&gt;
  </code></pre>