The Mercator projection uses meters as its unit, but these are projected meters. The factor between real world meters and unit meters is defined by latitude.
Because of the factor (missing in the code), the scale of generated maps will be incorrect. This was found when generating a clone of another paper map with a fixed bounding box and scale.
This PR fixes the scale of generated maps by calculating the (average) factor between the Mercator projection meters and real world meters.
The Mercator projection uses meters as its unit, but these are projected meters. The factor between real world meters and unit meters is defined by latitude.
Because of the factor (missing in the code), the scale of generated maps will be incorrect. This was found when generating a clone of another paper map with a fixed bounding box and scale.
This PR fixes the scale of generated maps by calculating the (average) factor between the Mercator projection meters and real world meters.