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 merge multiple PBF files using osmium (the merged file can then be imported):
osmium merge file1.osm.pbf file2.osm.pbf -o merged.osm.pbf
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. It is recommend to only import 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.
You can view your Map at {MAP_VIEWER_URI}
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.You may need to give permission to access the page: {MAP_VIEWER_URI}
Map startup is delayed on boot, if you have just started your WROLPi try again in a few minutes.
If the above does not work, try starting the service:
sudo systemctl start renderd
sudo systemctl start apache2
Check the logs
journalctl -u renderd
sudo tail -f /var/log/apache2/*log