J'ai besoin d'utiliser une couche GeoJSON sur ma carte Leaflet. Voici un exemple de mon code:
function onEachFeature(feature, layer) {
    if (feature.properties && 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");
Tout fonctionne.
Maintenant, je voudrais ajouter une attribution sur ma couche, mais comment?