def draw_raw_layer(self, surf, from_obs, name, color):
    """Draw a raw layer."""
    if from_obs:
      layer = getattr(self._obs.observation.raw_data.map_state, name)
    else:
      layer = getattr(self._game_info.start_raw, name)
    layer = features.Feature.unpack_layer(layer)
    if layer is not None:
      surf.blit_np_array(color[layer])
    else:  # Ignore layers that aren't in this version of SC2.
      surf.surf.fill(colors.black)