I made some progress, I created this style by adding element after element but I have found a few issues with the tiles I generated:
- there are some missing elements like [“spring”, “waterfall”, “drinking_water”] man_made=tower,mast,antenna,communications_tower
I think these elements should be in the pbf files I downloaded from geofabrick.de
- I want to modify a few elements min_zoom value, some small tracks dissapear to quick, some are hidden from z 13, others from z12 .. I think I ill adjust these one increment lower, instead of 13 it should be 12, instead of 12 it should be 11
I used this script to generate the tiles, it took a few minutes for the whole country (Romania)
~/osm-station/scripts/generate_map.sh romania 24g
#!/bin/bash
Move to the project root
cd “$(dirname “$0”)/..”
Area
AREA=${1:-romania}
MEMORY=${2:-4g}
echo “Building map for: $AREA with $MEMORY RAM…”
java -Xmx$MEMORY -jar bin/planetiler.jar
–osm-path=data/$AREA-latest.osm.pbf
–output=data/$AREA.pmtiles
–area=$AREA
–force “$@”
echo “Done! Output saved to data/$AREA.pmtiles”
Are there any attributes I can add to this script, or to planetiler, so it exports even more elements, and to adjust the min_zoom level of some categories?
or should I use a different tool for this ?
I also used tippecanoe to generate contours. I love the map so far, I still have many things to style, but now I think the most important things are to find out the easiest / best way to generate all the elements I want (general outdor topo map schema)
cd ~/osm-station/data/elevation/
#We use -i 50 to create a line every 50 meters
gdal_contour -a elev -i 50 romania_elevation.vrt romania_full.json
#Generate PMTiles
tippecanoe -o ~/osm-station/data/romania_full_contours.pmtiles
–maximum-zoom=14 --minimum-zoom=9
–layer=contours --force --simplify-only-low-zooms
romania_full.json
I haven’t setup the cloudflare tunel yet, so the map is local only for now, but here are a few screenshots:
Zoom level 12.99:
Zoom level 13 bellow. I know the rivers/streams seem to thick but that can be easily style out, the problem is I need these and also all the trails visible even in zoom 12, I will style them to be less visible, but I need them in my tiles at z12.
So can these settings be changed when I run planetile.jar ?
Thanks.