Implementation of zoomToExtent for multiple layers