code: def iter_data(self):
          
          for y, row in enumerate(self.data):
              for x, gid in enumerate(row):
                  yield x, y, gid
docs: Iterate over layer data
  
          Yields X, Y, GID tuples for each tile in the layer
  
          :return: Generator