Subset a layer to a polygon selection
select_withinCreate a new layer containing the source layer's features that lie within the supplied polygon. The source layer is untouched. Useful for "show me only the X inside this country/bbox/hand-drawn shape."
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_id | Yes | ||
| rationale | No | Optional short label (≤300 chars) for the map edit history, e.g. "add wildfire layer". Omit it to send nothing beyond the tool arguments. | |
| selection | Yes | GeoJSON Polygon or MultiPolygon in [lng,lat] coordinate order. | |
| newLayerId | Yes | Id for the new layer. Must not already be in use in this workspace. | |
| inheritStyle | No | Default true. false emits a new layer with minimal default styling. | |
| sourceLayerId | Yes |