map.zoomToLayer

Allows you to zoom to the layer extent