The nucleation of superconductivity is sensitive to the spatial stray field configuration in superconducting/ferromagnetic heterostructures. We fabricated a Nb/FePt heterostructure by pulsed laser deposition and polishing so that the superconductor is confined geometrically between the ferromagnetic islands. The superconducting/normal phase boundary of the hybrid was studied in detail, offering information on the mean stray field strength of the FePt islands revealed by the compensation effect and the spatial arrangement of the magnetic islands evaluated by the Little-Parks oscillation frequency.