Map To Poster – Create Art of your favourite city

(github.com)

55 points | by originalankur 3 hours ago ago

23 comments

  • mft_ 2 hours ago ago

    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?

    • originalankur 2 hours ago ago

      Valid Point @mft_ plt.savefig(output_file, format='svg', facecolor=THEME['bg']) should do it. I will add a --format parameter and make the change.

  • stephenlf 22 minutes ago ago

    This repo is fantastic. The README should be the gold standard for OSS. Not to mention how stunning the outputs are. Thanks for sharing.

  • tomashubelbauer an hour ago ago

    Three random themes for anyone who's Czech or likes Prague and doesn't want to set up the script locally: https://imgur.com/a/Ovg8mDW

    • xixixao 17 minutes ago ago

      What’s up with the Zizkovska tower highlight?

    • originalankur an hour ago ago

      Looks beautiful. The gold+dark color does justice.

  • hyperific 43 minutes ago ago

    Also check out prettymapp

    https://prettymapp.streamlit.app/

  • tianqi 2 hours ago ago

    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.

    • bobnamob 2 hours ago ago

      There's a reason Where 2 -> Google Maps happened in Sydney. The sheer number of one-way roads combined with the imposition of the harbour and the messy tunnel system make internalising Sydney navigation a life-long endeavour

  • simonebrunozzi 2 hours ago ago

    The map of Venice seems to be the only one whose image is "squeezed" horizontally. Wondering why.

  • emaro 2 hours ago ago

    I tried it in a python3 venv, but the download data step is stuck at 0% unfortunately.

    • originalankur 2 hours ago ago

      It will work, give it time. Also default distance is 29000. Give distance of 10000 to see faster results. It certainly is working as many users have generated maps.

      • originalankur 2 hours ago ago

        Also note that as per their terms and conditions I need to give a user agent, so multiple users will be sharing same user agent right now.

  • doophus 2 hours ago ago

    Why are big chunks of Sam Francisco missing (eg around the bridge) missing from the example?

    • Sajarin 2 hours ago ago

      Those smooth chunks are all (mostly) public park land. Known as Presidio and part of the Golden Gate National Recreation Area.

    • originalankur 2 hours ago ago

      python create_map_poster.py -c "San Francisco" -C "USA" -t sunset -d 10000

      -d should be approx. 10k to 14k given the size of the city. You can give it a shot.

  • cinntaile 2 hours ago ago

    It says there are examples but I can't see them?

  • giuliomagnifico 3 hours ago ago

    Nice! Thanks