mapBounds was null after one of my last changes. I changed the transform so it's just passed in directly as I don't think there was an easy way around it.
I checked magnet + roomfills still work.
(cherry picked from commit 34525210210627ee61c13357ecd8fec06735c9d6)