Resampling the spherical surface to 2D flat-map/grid representation

I am finding a ready-to-run solution to resample HCP resting fmri .gii.gz representations to 2d flat-map/grid mercator. The presented on the following image:
Screenshot 2020-11-30 at 13.33.29

Does anyone have an idea of this conversion?