Skip to content

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

License

Notifications You must be signed in to change notification settings

Fradeet/OSM-tiles-splice-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages