Adding map by code