Lack of earth layer #584
-
I'd like to add an 'earth' layer (similar to what is done here: https://protomaps.github.io/PMTiles/?url=https%3A%2F%2Fr2-public.protomaps.com%2Fprotomaps-sample-datasets%2Fprotomaps-basemap-opensource-20230408.pmtiles#map=0.52/0/0). However, after adding this item to config.json and adding this to process.lua
The 'earth' layer is empty - could someone help me with this? I am not uploading the entire files because I am based on . |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Your code will look for nodes in the source OSM data with an "earth" tag, and write them out to your vector tiles. That's probably not going to work - nodes tagged as "earth" are not a thing in OSM. To add a new layer, generally you'll need to identify your source data (which may be something tagged in OSM or external shapefiles), then write the Lua script to recognise this and write out vector data accordingly. I'm not sure what the Protomaps earth layer contains but that should be your starting point. |
Beta Was this translation helpful? Give feedback.
-
Hi @pkaminski2108 , have you found a decent setting for When I run that current setting (from config-openmaptiles), on a small country (NZ) i end up with a 5gb mbtiles. |
Beta Was this translation helpful? Give feedback.
If you create a map with tilemaker using the default (OpenMapTiles-compatible) schema, and the default style, country boundaries are included.
You don't appear to have the ocean layer in your map - possibly you haven't included the water shapefiles as described in the readme?