There is my example how to make the isometric tiles with multiple layers (Z): https://love2d.org/forums/viewtopic.php?p=261907#p261907
You are need the depthOffset to make the right y-on-screen offset for every Z layer.