systemed / tilemaker

Make OpenStreetMap vector tiles without the stack
https://tilemaker.org/
Other
1.46k stars 230 forks source link

Making Tiles With Zoom 15 Removes Place Names #711

Closed Kobusvdwalt closed 3 months ago

Kobusvdwalt commented 5 months ago

Hi there, thanks for this excellent project !

I am trying to generate Zoom15 tiles to get a map that includes names for my small roads. This works, however when I do this I loose the bigger place names. Generating with the default config works perfectly fine, but I'd like a little more detail when you zoom in.

Here are some screenshots of the problem: Zoom 14 Tileset (With Place Names)

Screenshot 2024-04-26 at 09 50 26

Zoom 15 Tileset (Without Place Names)

Screenshot 2024-04-26 at 09 50 35

More Detailed Example of a Town: Zoom 14 Tileset:

Screenshot 2024-04-26 at 09 49 57

Zoom 15 Tileset:

Screenshot 2024-04-26 at 09 49 04

Here is the config I used for the Zoom 15 tiles:

{
    "layers": {
        "place":            { "minzoom":  0, "maxzoom": 15 },
        "boundary":         { "minzoom":  0, "maxzoom": 15, "simplify_below": 12, "simplify_level": 0.0003, "simplify_ratio": 2 },

        "poi":              { "minzoom": 12, "maxzoom": 15 },
        "poi_detail":       { "minzoom": 14, "maxzoom": 15, "write_to": "poi"},

        "housenumber":      { "minzoom": 14, "maxzoom": 15 },

        "waterway":         { "minzoom":  8,  "maxzoom": 15, "simplify_below": 12, "simplify_level": 0.0003, "simplify_ratio": 2 },
        "waterway_detail":  { "minzoom": 12,  "maxzoom": 15, "write_to": "waterway" },

        "transportation":             { "minzoom": 4,  "maxzoom": 15, "simplify_below": 13, "simplify_level": 0.0003 },
        "transportation_name":        { "minzoom": 8,  "maxzoom": 15 },

        "building":          { "minzoom": 13, "maxzoom": 15 },

        "water":             { "minzoom": 6,  "maxzoom": 15, "simplify_below": 12, "simplify_level": 0.0003, "simplify_ratio": 2},
        "ocean":             { "minzoom": 0,  "maxzoom": 15, "source": "coastline/water_polygons.shp", "filter_below": 12, "filter_area": 0.5, "simplify_below": 13, "simplify_level": 0.0001, "simplify_ratio": 2, "write_to": "water" },
        "water_name":        { "minzoom": 14, "maxzoom": 15 },
        "water_name_detail": { "minzoom": 14, "maxzoom": 15, "write_to": "water_name" },

        "aeroway":           { "minzoom": 11, "maxzoom": 14 },
        "aerodrome_label":   { "minzoom": 10, "maxzoom": 14 },
        "park":              { "minzoom": 11, "maxzoom": 14 },
        "landuse":           { "minzoom":  4, "maxzoom": 14, "simplify_below": 13, "simplify_level": 0.0003, "simplify_ratio": 2 },
        "urban_areas":       { "minzoom":  4, "maxzoom":  8, "source": "landcover/ne_10m_urban_areas/ne_10m_urban_areas.shp", "source_columns": ["featurecla"], "simplify_below": 7, "simplify_level": 0.0003, "simplify_ratio": 2, "write_to": "landuse" },
        "landcover":         { "minzoom":  0, "maxzoom": 14, "simplify_below": 13, "simplify_level": 0.0003, "simplify_ratio": 2 },
        "ice_shelf":         { "minzoom":  0, "maxzoom":  9, "source": "landcover/ne_10m_antarctic_ice_shelves_polys/ne_10m_antarctic_ice_shelves_polys.shp", "source_columns": ["featurecla"], "simplify_below": 13, "simplify_level": 0.0005, "write_to": "landcover" },
        "glacier":           { "minzoom":  2, "maxzoom":  9, "source": "landcover/ne_10m_glaciated_areas/ne_10m_glaciated_areas.shp", "source_columns": ["featurecla"], "simplify_below": 13, "simplify_level": 0.0005, "write_to": "landcover" },
        "mountain_peak":     { "minzoom": 11, "maxzoom": 15 }
    },
    "settings": {
        "minzoom": 0,
        "maxzoom": 15,
        "basezoom": 15,
        "include_ids": false,
        "combine_below": 15,
        "name": "Tilemaker to OpenMapTiles schema",
        "version": "3.0",
        "description": "Tile config based on OpenMapTiles schema",
        "compress": "gzip",
        "filemetadata": {
            "tilejson": "2.0.0", 
            "scheme": "xyz", 
            "type": "baselayer", 
            "format": "pbf", 
            "tiles": ["https://example.com/liechtenstein/{z}/{x}/{y}.pbf"]
        }
    }
}

I read through the lua code, but it was a little hard to follow, I assume we need to update something in there, or make that script work for Z 15, is there a way we could configure that as a variable somewhere ?

yhdjyyzk commented 4 months ago

I had a similar problem.

systemed commented 4 months ago

728 should fix this - have a try and let me know if it works for you.

yhdjyyzk commented 3 months ago

728 should fix this - have a try and let me know if it works for you.

It works, Thanks!

systemed commented 3 months ago

Great, thank you. Just merged into master.