Zoom to min/max zoom if any when changing layer