changed addLayer by addTo