You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CONFIGURATION.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,8 @@ It also includes these global settings:
31
31
*`minzoom` - the minimum zoom level at which any tiles will be generated
32
32
*`maxzoom` - the maximum zoom level at which any tiles will be generated
33
33
*`basezoom` - the zoom level for which tilemaker will generate tiles internally (should usually be the same as `maxzoom`)
34
-
*`include_ids` - whether you want to store the OpenStreetMap IDs for each way/node within your vector tiles
35
-
*`compress` - whether to compress vector tiles (Any of "gzip","deflate" or "none"(default))
34
+
*`include_ids` - whether you want to store the OpenStreetMap IDs for each way/node within your vector tiles. This option is not compatible with the merging options defined by the `combine_xxx` settings (see the dedicated paragraph below)
35
+
*`compress` - for mbtiles output, whether to compress vector tiles (Any of "gzip","deflate" or "none"(default)). For pmtiles output, compression is hardcoded to gzip
36
36
*`combine_below` - whether to merge adjacent linestrings of the same type: will be done at zoom levels below that specified here (e.g. `"combine_below": 14` to merge at z1-13)
37
37
*`name`, `version` and `description` - about your project (these are written into the MBTiles file)
38
38
*`high_resolution` (optional) - whether to use extra coordinate precision at the maximum zoom level (makes tiles a bit bigger)
@@ -115,7 +115,16 @@ For example:
115
115
}
116
116
}
117
117
}
118
-
118
+
119
+
### Including IDs
120
+
121
+
Be careful when using both the `include_ids: true` setting to include IDs and the `combine_xxx` settings to lighten tiles : they are not compatible. During the merging process, items with identical tags are combined in a collection, with only 1 ID being retained for all the merged items. If you need to have the exact ID for each item (for example, for a clickable map), you need to remove the merging settings in the target levels and layers:
122
+
123
+
* set `combine_points: false` (`true` is the default value) in the target layers
124
+
* set `combine_below` and `combine_polygons_below` below the target zoom level (or remove them)
125
+
126
+
If you need the include OSM types as well, you will need to modify the `process.lua` script, check issue [#740](https://github.com/systemed/tilemaker/issues/740) for more information.
127
+
119
128
## Lua processing reference
120
129
121
130
Your Lua file can supply these functions for tilemaker to call:
0 commit comments