ThomasParistech / pretty-gpx

GPX to Poster: Showcase Your Mountain Cycling or Hiking Adventures
Other
19 stars 5 forks source link

London and Paris Marathon are quite heavy (25MB) #59

Open ThomasParistech opened 1 week ago

ThomasParistech commented 1 week ago

When the map is really large and centered on a dense city (like Paris or London Marathon), we could avoid drawing each tiny street, to lighten the filesize.

What do you think @JulesL2 ?

JulesL2 commented 1 week ago

Indeed, I will check the options to see how we can detect it is a large city (probably by doing a count request in overpass) and how we can fix it :)

JulesL2 commented 1 week ago

@ThomasParistech Do you speak of the download data size ? or only the vectorized image size ?

If it is the vectorized image size then I can also investigate a filtering of points/ a resampling when drawing roads.

ThomasParistech commented 1 week ago

I meant the vectorized image size When I open it on my laptop, the viewer struggles a bit ^^

ThomasParistech commented 1 week ago

But finding a way to reduce the download size would also be useful !

JulesL2 commented 1 week ago

I have included both.

One thing : To chose the priority level to download I use a function (such as an auto mode), it would be cool to be able to override the auto value with a user value in the gui if someone really wants a high res pic. Second thing : The criteria in the auto mode should be tested on a lot of maps, I have tested only 4-5 maps. Third thing : Seems that the download is still the limiting factor