code: def visible_tile_layers(self):
          
          return (i for (i, l) in enumerate(self.layers)
                  if l.visible and isinstance(l, TiledTileLayer))
docs: Return iterator of layer indexes that are set 'visible'
  
          :rtype: Iterator