Createmapdata now returns the object created