pub fn add_data(map: &mut RawMap) -> Result<()>