The relation between ice composition in the nucleus of comet 67P/Churyumov-Gerasimenko on the one hand and relative abundances of volatiles in the coma on the other hand is important for the interpretation of density measurements in the environment of the cometary nucleus. For the 2015 apparition, in situ measurements from the two ROSINA (Rosetta Orbiter Spectrometer for Ion and Neutral Analysis) sensors COPS (COmet Pressure Sensor) and DFMS (Double Focusing Mass Spectrometer) determined gas densities at the spacecraft position for the 14 gas species H2O, CO2, CO, H2S, O2, C2H6, CH3OH, H2CO, CH4, NH3, HCN, C2H5OH, OCS, and CS2. We derive the spatial distribution of the gas emissions on the complex shape of the nucleus separately for 50 subintervals of the two-year mission time. The most active patches of gas emission are identified on the surface. We retrieve the relation between solar irradiation and observed emissions from these patches. The emission rates are compared to a minimal thermophysical model to infer the surface active fraction of H2O and CO2. We obtain characteristic differences in the ice composition close to the surface between the two hemispheres with a reduced abundance of CO2 ice on the northern hemisphere (locations with positive latitude). We do not see significant differences for the ice composition on the two lobes of 67P/C-G.