Ideals of the core of C*-algebras associated with self-similar maps