Normalize spherical coordinates in layout.