When running a build using a custom bbike export from extract.bbike.org, the park layer is missing, resulting in broken rendering of affected areas and the following errors in browser console:
Error: Source layer "park" does not exist on source "openmaptiles" as specified by style layer "park".
Error: Source layer "park" does not exist on source "openmaptiles" as specified by style layer "park_outline".
Reproduction
- Create custom area
- Put
builds/MyArea/.env in place with custom vars
- Put
MyArea.osm.pbf in place
- Build docker images as in GHA workflow
- Build data assets
cd builds/MyArea && bin/build builds/MyArea
- I see the planetiler container pull some endpoints of the format
https://onthegomap.github.io/planetiler-demo/#{z}/{lat}/{lon}/ during this step
- Start local app
cd builds/MyArea && docker-compose up -f ../../docker-compose.yaml --env-file .env up -d
- (Run
docker exec -it -u0 headway-pelias-elasticsearch-1 chown 1000:1000 /usr/share/elasticsearch/data to fix elasticsearch crashlooping on missing permissions)
Env vars to use locally mirrored/forked sources for all assets are set both in builds/MyArea/.env and the local environment:
HEADWAY_PLANETILER_FIXTURES_URL=...
HEADWAY_IMAGE_REPO=...
HEADWAY_TILES_URL=...
HEADWAY_PBF_URL=...
HEADWAY_AREA=MyArea
planetiler log snip:
INF [archive] - Starting...
INF [archive] - Unable to load tile weights from data/tile_weights.tsv.gz, falling back to top 100k
[...]
INF [archive:write] - Shallow tiles written: 411
INF [archive:write] - Tile data written: 411 (0% omitted)
INF [archive:write] - Unique tile hashes: 0
[...]
last tile: ../..../... (z14 95%) https://onthegomap.github.io/planetiler-demo/#...
DEB [archive] - Tile stats:
DEB [archive] - Biggest tiles (gzipped)
[...]
DEB [archive] - Max tile sizes
#[list of water,boundary,aeroway,... but not park]
DEB [archive] - # tiles: 411
DEB [archive] - # features: 233,036
[...]
FINISHED!
----------------------------
data errors:
osm_multipolygon_missing_way 201
render_snap_fix_input 160
osm_boundary_missing_way 142
feature_polygon_osm_invalid_multipolygon_empty_after_fix 2
omt_park_area_osm_invalid_multipolygon_empty_after_fix 1
merge_snap_fix_input 1
Observations
- The issue is not present for the same area on https://maps.earth, where it renders with parks as expected
/tileserver/styles/basic/style.json
/tileserver/data/default.json
- On
maps.earth, vector_layers contains park and park_outline
- On local app,
vector_layers does not contain park or park_outline. Otherwise the field looks identical to the maps.earth one.
- It is not clear to me yet exactly at which point in the lifecycle
default.json gets created (or if part of it's still somehow sourced externally)
version is 3.15.0 on local app; 3.14.0 on maps.earth
planetiler:version is the same (0.7.0)
- Using a newer planetiler version (
0.8.4) does not make a difference wrt the issue
Not clear if this is due to an application bug, misconfiguration, or broken data. I did redo the whole pipe on separate machines and exports with identical results.
Similar issue:
When running a build using a custom bbike export from extract.bbike.org, the
parklayer is missing, resulting in broken rendering of affected areas and the following errors in browser console:Reproduction
builds/MyArea/.envin place with custom varsMyArea.osm.pbfin placecd builds/MyArea && bin/build builds/MyAreahttps://onthegomap.github.io/planetiler-demo/#{z}/{lat}/{lon}/during this stepcd builds/MyArea && docker-compose up -f ../../docker-compose.yaml --env-file .env up -ddocker exec -it -u0 headway-pelias-elasticsearch-1 chown 1000:1000 /usr/share/elasticsearch/datato fix elasticsearch crashlooping on missing permissions)Env vars to use locally mirrored/forked sources for all assets are set both in
builds/MyArea/.envand the local environment:planetiler log snip:
Observations
/tileserver/styles/basic/style.jsonmaps.earthand the local app,layerscontainspark.services/tileserver/styles/basic/style.json/tileserver/data/default.jsonmaps.earth,vector_layerscontainsparkandpark_outlinevector_layersdoes not containparkorpark_outline. Otherwise the field looks identical to themaps.earthone.default.jsongets created (or if part of it's still somehow sourced externally)versionis3.15.0on local app;3.14.0on maps.earthplanetiler:versionis the same (0.7.0)0.8.4) does not make a difference wrt the issueNot clear if this is due to an application bug, misconfiguration, or broken data. I did redo the whole pipe on separate machines and exports with identical results.
Similar issue:
parkandpark_outlinefromstyle.jsonas suggested by one comment removes the entries from the/tileserver/styles/basic/style.jsonresult but does seem not change behavior otherwise.