Route Map
I finally managed to create the route map that had been giving me such a headache! Here’s a video showing the expressions I used.
To center the line shape on both maps, I used rule-based symbology and added the expression "id" = attribute(@atlas_feature, 'id') to the filter. I created two different shapes: the light blue one representing the path to the street of interest, and the street of interest itself—the destination I want to reach. I assigned the same ID to both so they would appear on the same page in the atlas. To show the distance, I added the expression “round(length($geometry) / 1000, 2) || 'km' and for meters, round(length($geometry), 2) || ' m'—since you can’t have a second atlas, I adjusted the x and y settings in the “Extensions” section of Map 2 so it would center on that second shape, and then to show the length, I entered the expression for that in the text box.
To automatically switch the images, you’d need to enter the path to the folder where the images are located and name the files the same as the field the atlas is using—in my case, it was the “id” field, so the files were named 001, 002, 003, etc.
Thanks to everyone who shared tips on how to make the map! I’m not sure if I explained it very well—if you have any questions, just ask in the comments!