layerFilter can no longer be undefined here
Make addLayer and removeLayer methods private