title: Leaflet: how to add an attribution on a GeoJSON Layer?
body: <p>I need to use a <code>GeoJSON</code> Layer on my Leaflet map. Here is a sample of my code:</p>
  
  <pre><code>function onEachFeature(feature, layer) {
   if (feature.properties &amp;&amp; feature.properties.popupContent) {
          layer.bindPopup(feature.properties.popupContent);
       }
     }
  
   myGeoJsonLayer = L.geoJson(data, {
               pointToLayer: function (feature, latlng) {
                     return L.circleMarker(latlng, geojsonMarkerOptions);
               },
        onEachFeature: onEachFeature
     });
   myGeoJsonLayer.addTo(map);                         
   TOC.addOverlay(myGeoJsonLayer, "My GeoJSON Layer");
  </code></pre>
  
  <p>All is working.</p>
  
  <p>Now I'd like to add an attribution on my layer but how?</p>
  
  <p>Any suggestions are appreciated.</p>