Skip to content

openzim/maps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maps2zim

Create a ZIM with a map from OpenStreetMap inside.

Prerequisites

How it was built

Create a Node.JS Vite app with ol package:

npm create ol-app ol-app

Tweak few things:

  • adjust CSS + HTML to display a title with the map
  • adjust JS to load tiles locally instead of OSM online tile server
  • adjust vite.config.js to specify base directory

Python setup

Create your venv and install requirements

python -m venv venv
source venv/bin/activate
pip install -r requirements

Usage

Build Vite app:

cd ol-app
npm run build
cd ..

Create the ZIM

python create-zim.py

Example

An example of ZIM is available for download here.

About

Create a ZIM file from an OpenStreetMap subset

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •