35 comments

[ 3.2 ms ] story [ 52.6 ms ] thread
(comment deleted)
Why are big chunks of Sam Francisco missing (eg around the bridge) missing from the example?
It says there are examples but I can't see them?
I believe (from a quick code check on my phone) it should be possible to output the images to SVG with a little tweak, thanks to your use of matplotlib?

Is there a reason you’ve defaulted to PNG that I’m missing?

That's splendid. I've long wanted to make a jigsaw puzzle out of Sydney's road map, so I can familiarise myself with the layout of roads while having fun. That way I can reduce my reliance on nav app and become one of those old-school drivers.
The map of Venice seems to be the only one whose image is "squeezed" horizontally. Wondering why.
I tried it in a python3 venv, but the download data step is stuck at 0% unfortunately.
This repo is fantastic. The README should be the gold standard for OSS. Not to mention how stunning the outputs are. Thanks for sharing.
Pretty cool! It would be great if there was a way to set coordinates manually, since Nominatim can sometimes produce mediocre results. Also, would be nice to have a way to render the same map in all themes, not just one.
what are the blue dots? (not water bodies i think?)
I was curious about this too and it’s actually a bug— these blue dots are random parks or park features. Most parks are polygons, but less than 5% or them are points from volunteer mappers who didn’t make them polygons and so these stray points seem to slip through and get plotted as the matplotlib default color…

If only I knew this before I printed it out and attached it all together with rasterbator lol

San Francisco looks nice, but there seems to be a problem with the projection in some of the sample images. It looks as if it isn't UTM but a global sphere projection, which isn't suitable for local renders. It's suspicious that the word 'projection' isn't mentioned in the Readme.
Looks amazing ! In my free time, i play with my laser cutting machine. It will save me some design time. Thanks
What happens if there are multiple cities with the same name. Maybe this is a US specific problem, but there are many states with cities of the same name from another state. As a few examples:

Salem, OR and Salem, MA

Portland, OR and Portland, ME

Springfield, IL and Springfield, MO

Dallas, TX and Dallas, GA

If you just type "Salem" for the city, it just picks one and goes with it. If you type "Salem, Oregon" vs "Salem, MA", it gives the desired result (at least for the cases I've tried), and then uses your input text as the caption.
There is a related project which I used several times:

https://github.com/anvaka/city-roads

Edit: it outputs SVGs and you can try it online. Anvaka (author) has other really cool dataviz projects.

Kinda sad that maptoposter uses png. SVG is so much better in this case, if you want to actually print a poster!
It does support SVG, --format=svg
Awesome! After I generate, where can I take that super res image and get a high quality photo print to frame?
Really depends on country you live in. Just google local printers and email them.
These demonstrate just how car-obsessed our society is. Depressing.
Are you using a coding package or graph-based approach for this, or is it standard image generation? I’ve seen very similar results on https://picxstudio.com —it’s an AI image generation platform.
This really needs to be `uvx` runnable.
Great project! It takes a bit of fiddling to get the distance parameter right in some cases, and two possible improvements would be to allow for coordinate input rather than city name so I can point it at a specific spot as the center of the map. Another one would be to output all styles simultaneously so I can visually select from the generated images.

Anyhow, nice work. Thanks!