Moved add_object function from IsoMap to ObjectLayer.