Skip to content

Commit

Permalink
fix min_tile_cover_size docs (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry authored Jul 30, 2024
1 parent 19a42de commit 84a185d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions planetiler-custommap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,6 @@ A feature is a defined set of objects that meet a specified filter criteria.
- `point_on_line` to match on lines, and emit a point somewhere along the line
- `polygon_centroid_if_convex` to match on polygons, and if the polygon is convex emit the centroid, otherwise emit an
interior point
- `min_tile_cover_size` - Include objects of a certain geometry size, where 1.0 means "is
the same size as a tile at this zoom"
- `include_when` - A [Boolean Expression](#boolean-expression) which determines the features to include.
If unspecified, all features from the specified sources are included.
- `exclude_when` - A [Boolean Expression](#boolean-expression) which determines if a feature that matched the include
Expand Down Expand Up @@ -268,6 +266,8 @@ Defines an attribute to include on an output vector tile feature and how to comp
minimum zoom for each output value.
- `type` - The [Data Type](#data-type) to coerce the value to, or `match_key` to set this attribute to the key that
triggered the match in the include expression, or `match_value` to set it to the value for the matching key.
- `min_tile_cover_size` - Include this attribute only on geometries over a certain size at a given zoom level, where 1.0
means the entire width of a tile for lines, or area of a tile for polygons.

To define the value, use one of:

Expand Down
12 changes: 6 additions & 6 deletions planetiler-custommap/planetiler.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,6 @@
}
]
},
"min_tile_cover_size": {
"description": "include objects of a certain geometry size, where 1.0 means \"is the same size as a tile at this zoom\"",
"type": "number",
"minimum": 0,
"maximum": 1
},
"include_when": {
"description": "A tag specification which determines the features to include. If unspecified, all features from the specified sources are included",
"$ref": "#/$defs/boolean_expression"
Expand Down Expand Up @@ -487,6 +481,12 @@
"additionalProperties": {
"$ref": "#/$defs/zoom_level"
}
},
"min_tile_cover_size": {
"description": "Include this attribute only on geometries over a certain size at a given zoom level, where 1.0 means the entire width of a tile for lines, or area of a tile for polygons.",
"type": "number",
"minimum": 0,
"maximum": 1
}
}
}
Expand Down

0 comments on commit 84a185d

Please sign in to comment.