Only one PBF can be imported and displayed in the docker container.
+ +To import a map file, run the following docker-compose commands:
+docker-compose stop map+
docker-compose rm map+
docker-compose run --rm -v /absolute/path/to/map.osm.pbf:/data.osm.pbf + -v openstreetmap-data:/var/lib/postgresql/12/main map import ++ +
Be sure to change /absolute/path/to/map.osm.pbf!
+ +After you have imported a new PBF file, you need to clear the rendered tile cache:
+docker volume rm openstreetmap-rendered-tiles+
docker volume create openstreetmap-rendered-tiles+ +
Start your map container:
+docker-compose up -d map+
You can download map files from + https://download.geofabrik.de/ +
+ +Download only the areas you need. Large regions like all of Asia, or the entire + planet are most likely too large and won't render quickly. I recommend only + importing files less than 1GB on a Raspberry Pi.
+ +Only *.osm.pbf files are supported!
+ +Place downloaded map files into map/pbf so they can be imported here.
+Any import may take much more time because the CPU is throttled.
+ If your import takes more time than estimated, you will need an aftermarket cooler. +Only one PBF can be imported and displayed in the docker container.
- -To import a map file, run the following docker-compose commands:
-docker-compose stop map-
docker-compose rm map-
docker-compose run --rm -v /absolute/path/to/map.osm.pbf:/data.osm.pbf - -v openstreetmap-data:/var/lib/postgresql/12/main map import -- -
Be sure to change /absolute/path/to/map.osm.pbf!
- -After you have imported a new PBF file, you need to clear the rendered tile cache:
-docker volume rm openstreetmap-rendered-tiles-
docker volume create openstreetmap-rendered-tiles- -
Start your map container:
-docker-compose up -d map-
You can download map files from - https://download.geofabrik.de/ -
- -Download only the areas you need. Large regions like all of Asia, or the entire - planet are most likely too large and won't render quickly. I recommend only - importing files less than 1GB on a Raspberry Pi.
- -Only *.osm.pbf files are supported!
- -Place downloaded map files into map/pbf so they can be imported here.
-