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
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,8 @@ Note that this is not compatible with the `combine_xxx` settings to reduce tiles
128
128
129
129
If you need to include OSM object types as well, you can use the `OsmType()` function in your `process.lua` script.
130
130
131
+
It is possible to override the original OSM ID using the function `ModifyId(newId)`.
132
+
131
133
## Lua processing reference
132
134
133
135
Your Lua file can supply these functions for tilemaker to call:
@@ -163,6 +165,7 @@ To do that, you use these methods:
163
165
*`Attribute(key,value,minzoom)`: add an attribute to the most recently written layer. Argument `minzoom` is optional, use it if you do not want to write the attribute on lower zoom levels.
164
166
*`AttributeNumeric(key,value,minzoom)`, `AttributeInteger(key,value,minzoom)`, `AttributeBoolean(key,value,minzoom)`: for numeric (floating-point), integer and boolean columns.
165
167
*`Id()`: get the OSM ID of the current object.
168
+
*`ModifyId(newId)`: replace the ID of the current object with newId.
166
169
*`OsmType()`: get the OSM type of the current object.
167
170
*`IsClosed()`: returns true if the current object is a closed area.
168
171
*`IsMultiPolygon()`: returns true if the current object is a multipolygon.
0 commit comments