Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.66 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.66 KB

OSM-tiles-splice-tool

A simple Python script to splice the OpenStreetMap tiles, and can convert tile to dark.

Features

You can collect the osm server(or host yourself) tiles, and make a big tiles. Dark Mode can convert tile to dark. (has example in below)

Tutorial

You need install the Python module first.

pip install pillow
pip install requests

Basic

Open your web browser, visit OpenStreetMap Wesite, and open the DevTool (Press F12 by default). Turn 'Network' tab, that list the pictures which browser loaded. (If you can't see the image files, just move the map)

On the map, find the start point what you want, you can choose one and preview the tile. Then look URL, it have 3 numbers, it represents 'Zoom', 'X', 'Y'. Write it down.

Tips: You also can host the map tiles server, visit Switch2OSM.

Repeat the above operation, find the end point. The area to be generated is a rectangle ,like below.

Run the script, enter the info.

Notice: There have some limit from the official server, visit the OSM Tiles Usage Policy

Dark Mode

Inspired by Leaflet CSS render.

(This feature is convert pixel by pixel. It may very slow which process large files. Planning muti-threads.)

Contribute

Welcome PR.

RoadMap

  • Update the Dark Mode
    • Update the Muti-threads
  • Split the big tiles, easy painting to A4 paper

About the project

this project was born in my playground. I love map, i want to make a paper-map.