Map_to_area: first working version, may be still slow. Attic part not tested