Giter Site home page Giter Site logo

tilemaker_config's Introduction

Example usage and config of tilemaker

This shows how to configure and use tilemaker and how to get input data. https://github.com/systemed/tilemaker

Configuration files are tailored for use with MapBox. Here is demo showing how maps rendering look like with mapbox: https://www.youtube.com/watch?v=ZuoNf171e_A&t=2s

This repo is very much WIP-state.

Also the tilemaker repo itself has improved with out-of-the-box configuration, so this repo might be obsolete.

Getting tilemaker

YOu can either build from source or download precompiled executable from GitHubs Continous Integration: https://github.com/systemed/tilemaker/actions/workflows/ci.yml

Go to last successful build, and at the bottom of the page you should see links to EXEcs (Artifacts).

Getting OSM Data

First, you need to download OSM data EXTRACT in pbf format. Get it from here:

http://download.geofabrik.de/europe/poland.html http://download.geofabrik.de/europe/poland-latest.osm.pbf

Getting boundaries shape files

https://github.com/haoliangyu/boundary.now

You need to extraxt .shp and .shx files.

Also, edit hab_admin.json file to update path to .shp file.

Converting PBF to Tiles

Tilemaker is executed from update.sh script. Take a look inside - the process is divided into layers, because tilemaker can be mem hungry. Besides, for me, it's easier to work that way ...

Example usage:

./update.sh ./poland-latest.osm.pbf ./poland_tiles

You should get a poland_tiles directory with subdirs per each layer.

Getting Fonts

Download from https://github.com/openmaptiles/fonts/releases

Serving tiles with apache

Copy/symlink tiles and fonts

    sudo mkdir /var/www/html/osm
    sudo chmod a+rwx /var/www/html/osm
    cp ./static/index.html /var/www/html/osm/
    sudo ln -s ./poland_tiles /var/www/html/osm/poland_tiles
    sudo ln -s ./fonts /var/www/html/osm/fonts

Serving tiles with python bottle

to do - but look into server.py

todo:

  • fix server to actually serve some html (and not only tiles)
  • fix html with comments and paths to OSM directiories

tilemaker_config's People

Contributors

michalfratczak 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.