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

Fix min_tile_cover_size docs #967

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading