Question about rendering static map that has pitch
Platform: linux
Mapbox SDK version: nodejs "@mapbox/mapbox-gl-native" "^4.1.0"
Hello,
I am implementing solution that allows user to select a region in the map that is then printed to a high resolution image. So the frontend stores information of the visible bounding box and zoom level.
This is then used in the backend to render tiles that are in the bounding box, stitches them together in the full image.
I am using mapbox-gl-js for the frontend and node-mapbox-gl-native for the high resolution rendering.
So my algorithm walks trough the bounding box and renders each unique tile using node-mapbox-gl-native. This is working great when the map is without pitch. I am having trouble understanding how to properly get the unique tiles when pitch is more than 0.
For more clarification here is an image of the map in the front end, this region consists of 6 512x512 vector tiles. In the backend I render each of these tiles and then combine them in the final image

Also I have read your great article on Coordinate systems https://github.com/mapbox/mapbox-gl-native/wiki/Coordinate-Systems but it unfortunately doesnt cover the case when the pitch is not 0 :(
When the pitch is not 0 the adjacent tiles dont line up at all. For example I am testing in a situation where the pitch = 60, bearing = 0. In this case I move from one tile to another (on the x axis) by multiplying the resolution of the zoom level and the pixels to the next tiles center (256) along the x axis.
Would appreciate help from you guys!
Ok, I solved the problem. The issue was that I was rendering each tile with the map but it is possible to scale the maps size which in a way removes the needed logic to stitch the tiles together