Giter Site home page Giter Site logo

rxwatcher / city-maps-poster-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tyalie/city-maps-poster-generator

1.0 1.0 0.0 6.07 MB

Creates beautiful posters from stylized arial views of cities or other places on earth

Shell 100.00%

city-maps-poster-generator's Introduction

City Maps

Inspiration is drawn from this.

Get all access-tokens

For this to work, you need a mapbox token (written into renderer/token.sh) and a maptiler token (should replace {key} inside of black_white.json)

Usage

  1. install mapbox-map-image-export globally using npm
    • command export-map --help should be working
  2. specify your mapbox token in renderer/token.sh using syntax:
export MAPBOX_TOKEN="YOUR-MAPBOX-TOKEN"
  1. then run renderer/render.sh with parameters run LAT,LONG RADIUS STYLE_JSON [debug]
  • LAT and LONG are the center coordinate in decimal degrees using pos./neg. numbers instead of N/E/S/W
  • RADIUS are in kilometers
  • STYLE_JSON is the relative path to the map style to be used (created using maputnik)
  • [debug] optional parameter to open export-map in debug mode
  1. insert image into Template.psd

If you need, you can create your own styles using Maputnik which can be used online or offline. Store the style as STYLE_NAME.json.

Enjoy your final poster, that could look like this:

example

city-maps-poster-generator's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.