|
1 year ago | |
---|---|---|
fonts/OpenSans | 2 years ago | |
src | 1 year ago | |
.gitignore | 3 years ago | |
.prettierrc | 3 years ago | |
README.md | 1 year ago | |
example.png | 2 years ago | |
jestconfig.json | 3 years ago | |
package.json | 1 year ago | |
tsconfig.json | 3 years ago | |
tslint.json | 3 years ago | |
yarn.lock | 1 year ago |
Generate pdf with OpenStreetMap tiles.
sudo yarn global add osm2pdf
# or
sudo npm install -g osm2pdf
You need to provide a route in gpx format. You can download it on graphhopper website. Find your route and click GPX export button.
osm2pdf --route --zoom=10 --input=path/to/route.gpx --output=path/to/output --tile-server=1
You need to provide boundaries of the area you want to download.
osm2pdf -n=70.923 -w=-4.373 -s=55.756 -e=27.872 --zoom=9 --output=path/to/output --tile-server=2
osm2pdf -h
# or
osm2pdf --help
We use ECMAScript Modules which are supported since Node v8.
OpenStreetMap is run by a not-for-profit foundation. This application uses resources provided by them. Please read the OSM Tile Usage Policy and follow it. Use osm2pdf responsibly and consider donating to OSM Foundation.
The authors are not affiliated with OSM Foundation.