We study basic geometric properties of Kottwitz–Viehmann varieties, which are certain generalizations of affine Springer fibers that encode orbital integrals of spherical Hecke functions. Based on the previous work of A. Bouthier and the author, we show that these varieties are equidimensional and give a precise formula for their dimension. Also we give a conjectural description of their number of irreducible components in terms of certain weight multiplicities of the Langlands dual group and we prove the conjecture in the case of unramified conjugacy class.