time4tea / gopro-dashboard-overlay

Programs to process GoPro MP4 & Generic GPX/FIT files and create video dashboards & maps
GNU General Public License v3.0
383 stars 52 forks source link

wrong size or aspect ratio in circuit_map and cairo_circuit_map #205

Open victorlysak opened 3 months ago

victorlysak commented 3 months ago

Hi.

I'm using gpx only and I use circuit_map because I need only path without anything else.

While testing the maps, I found that the aspect ratios or maybe sizing in general are wrong for circuit_map and cairo_circuit_map, but are correct for journey_map.

On the pic below, on the right, we have the route in Google Earth Pro imported from the same .gpx file as the gopro-dashboard-overlay uses.

On the left we have: red line - journey_map - correct size/aspect ration (as in google) yellow line - cairo_circuit_map - wrong aspect ratio black line (90 off normal) - circuit_map - also wrong aspect (as you see).

Where in your code shall I look to correct these?

Here is the layout file:

<layout>
   <component type="circuit_map" size="1000" fill="0,0,0" outline_width="0" fill_width="4" />
   <component type="journey_map" size="1000" corner_radius="10" opacity="0.6" />
   <component type="cairo_circuit_map" size="1000" fill="255,255,0" outline="255,0,255" line-width="0.01" loc-size="0.01" rotate="-90" />
</layout>

thank you git-wrong-aspect