Moving EE maptype creation intoits own function.