Use layerId instead.
Use defaultVisibility instead.
No direct replacement. You can use mapLayers to access the layers.
Use layerDelegate, touchDelegate and calloutDelegate.