Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making Tiles With Zoom 15 Removes Place Names #711

Closed
Kobusvdwalt opened this issue Apr 26, 2024 · 4 comments · Fixed by #728
Closed

Making Tiles With Zoom 15 Removes Place Names #711

Kobusvdwalt opened this issue Apr 26, 2024 · 4 comments · Fixed by #728

Comments

@Kobusvdwalt
Copy link

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
Copy link

yhdjyyzk commented Jun 7, 2024

I had a similar problem.

@systemed
Copy link
Owner

systemed commented Jun 7, 2024

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

@yhdjyyzk
Copy link

yhdjyyzk commented Jun 9, 2024

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

It works, Thanks!

@systemed
Copy link
Owner

systemed commented Jun 9, 2024

Great, thank you. Just merged into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants