diff --git a/.changeset/fifty-humans-film.md b/.changeset/fifty-humans-film.md new file mode 100644 index 00000000..61cc56c7 --- /dev/null +++ b/.changeset/fifty-humans-film.md @@ -0,0 +1,5 @@ +--- +"@feltmaps/js-sdk": minor +--- + +Add pageSize and select to getFeatures diff --git a/docs/Layers/LayersController.md b/docs/Layers/LayersController.md index 15410372..bf6b7d4a 100644 --- a/docs/Layers/LayersController.md +++ b/docs/Layers/LayersController.md @@ -669,21 +669,23 @@ const feature = await felt.getFeature({ layerId: "layer-1", id: 123 }); ## getFeatures() -> **getFeatures**(`params`: \{ `layerId`: `string`; `filters`: [`Filters`](Filters.md); `sorting`: [`SortConfig`](../Shared/SortConfig.md); `boundary`: [`GeometryFilter`](GeometryFilter.md); `search`: `string`; `pagination`: `null` | `string`; }): `Promise`\<\{ `features`: [`LayerFeature`](LayerFeature.md)\[]; `count`: `number`; `previousPage`: `null` | `string`; `nextPage`: `null` | `string`; }> +> **getFeatures**(`params`: \{ `layerId`: `string`; `filters`: [`Filters`](Filters.md); `sorting`: [`SortConfig`](../Shared/SortConfig.md); `boundary`: [`GeometryFilter`](GeometryFilter.md); `search`: `string`; `pagination`: `null` | `string`; `pageSize`: `number`; `select`: `string`\[]; }): `Promise`\<\{ `features`: [`LayerFeature`](LayerFeature.md)\[]; `count`: `number`; `previousPage`: `null` | `string`; `nextPage`: `null` | `string`; }> Get a list of layer features. ### Parameters -| Parameter | Type | Description | -| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | -| `params` | \{ `layerId`: `string`; `filters`: [`Filters`](Filters.md); `sorting`: [`SortConfig`](../Shared/SortConfig.md); `boundary`: [`GeometryFilter`](GeometryFilter.md); `search`: `string`; `pagination`: `null` \| `string`; } | - | -| `params.layerId` | `string` | The ID of the layer to get features from. | -| `params.filters`? | [`Filters`](Filters.md) | Filters to be applied. These filters will merge with layer's own filters. | -| `params.sorting`? | [`SortConfig`](../Shared/SortConfig.md) | Attribute to sort by. | -| `params.boundary`? | [`GeometryFilter`](GeometryFilter.md) | The spatial boundary to be applied. | -| `params.search`? | `string` | Search term to search by. Search is case-insensitive and looks for matches across all feature properties. | -| `params.pagination`? | `null` \| `string` | Pagination token. It comes from either the `previousPage` or `nextPage` properties of the previous response. | +| Parameter | Type | Description | +| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `params` | \{ `layerId`: `string`; `filters`: [`Filters`](Filters.md); `sorting`: [`SortConfig`](../Shared/SortConfig.md); `boundary`: [`GeometryFilter`](GeometryFilter.md); `search`: `string`; `pagination`: `null` \| `string`; `pageSize`: `number`; `select`: `string`\[]; } | - | +| `params.layerId` | `string` | The ID of the layer to get features from. | +| `params.filters`? | [`Filters`](Filters.md) | Filters to be applied. These filters will merge with layer's own filters. | +| `params.sorting`? | [`SortConfig`](../Shared/SortConfig.md) | Attribute to sort by. | +| `params.boundary`? | [`GeometryFilter`](GeometryFilter.md) | The spatial boundary to be applied. | +| `params.search`? | `string` | Search term to search by. Search is case-insensitive and looks for matches across all feature properties. | +| `params.pagination`? | `null` \| `string` | Pagination token. It comes from either the `previousPage` or `nextPage` properties of the previous response. | +| `params.pageSize`? | `number` | The number of features to return per page. Defaults to 20. Note: The larger the page size, the longer this is likely to take to respond. | +| `params.select`? | `string`\[] | The attributes to select from the features. If not provided, all attributes will be returned. If you set this to an empty array, no attributes will be returned. | ### Returns diff --git a/docs/Main/FeltController.md b/docs/Main/FeltController.md index 4b646247..73d967c2 100644 --- a/docs/Main/FeltController.md +++ b/docs/Main/FeltController.md @@ -968,21 +968,23 @@ const feature = await felt.getFeature({ layerId: "layer-1", id: 123 }); ## getFeatures() -> **getFeatures**(`params`: \{ `layerId`: `string`; `filters`: [`Filters`](../Layers/Filters.md); `sorting`: [`SortConfig`](../Shared/SortConfig.md); `boundary`: [`GeometryFilter`](../Layers/GeometryFilter.md); `search`: `string`; `pagination`: `null` | `string`; }): `Promise`\<\{ `features`: [`LayerFeature`](../Layers/LayerFeature.md)\[]; `count`: `number`; `previousPage`: `null` | `string`; `nextPage`: `null` | `string`; }> +> **getFeatures**(`params`: \{ `layerId`: `string`; `filters`: [`Filters`](../Layers/Filters.md); `sorting`: [`SortConfig`](../Shared/SortConfig.md); `boundary`: [`GeometryFilter`](../Layers/GeometryFilter.md); `search`: `string`; `pagination`: `null` | `string`; `pageSize`: `number`; `select`: `string`\[]; }): `Promise`\<\{ `features`: [`LayerFeature`](../Layers/LayerFeature.md)\[]; `count`: `number`; `previousPage`: `null` | `string`; `nextPage`: `null` | `string`; }> Get a list of layer features. ### Parameters -| Parameter | Type | Description | -| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | -| `params` | \{ `layerId`: `string`; `filters`: [`Filters`](../Layers/Filters.md); `sorting`: [`SortConfig`](../Shared/SortConfig.md); `boundary`: [`GeometryFilter`](../Layers/GeometryFilter.md); `search`: `string`; `pagination`: `null` \| `string`; } | - | -| `params.layerId` | `string` | The ID of the layer to get features from. | -| `params.filters`? | [`Filters`](../Layers/Filters.md) | Filters to be applied. These filters will merge with layer's own filters. | -| `params.sorting`? | [`SortConfig`](../Shared/SortConfig.md) | Attribute to sort by. | -| `params.boundary`? | [`GeometryFilter`](../Layers/GeometryFilter.md) | The spatial boundary to be applied. | -| `params.search`? | `string` | Search term to search by. Search is case-insensitive and looks for matches across all feature properties. | -| `params.pagination`? | `null` \| `string` | Pagination token. It comes from either the `previousPage` or `nextPage` properties of the previous response. | +| Parameter | Type | Description | +| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `params` | \{ `layerId`: `string`; `filters`: [`Filters`](../Layers/Filters.md); `sorting`: [`SortConfig`](../Shared/SortConfig.md); `boundary`: [`GeometryFilter`](../Layers/GeometryFilter.md); `search`: `string`; `pagination`: `null` \| `string`; `pageSize`: `number`; `select`: `string`\[]; } | - | +| `params.layerId` | `string` | The ID of the layer to get features from. | +| `params.filters`? | [`Filters`](../Layers/Filters.md) | Filters to be applied. These filters will merge with layer's own filters. | +| `params.sorting`? | [`SortConfig`](../Shared/SortConfig.md) | Attribute to sort by. | +| `params.boundary`? | [`GeometryFilter`](../Layers/GeometryFilter.md) | The spatial boundary to be applied. | +| `params.search`? | `string` | Search term to search by. Search is case-insensitive and looks for matches across all feature properties. | +| `params.pagination`? | `null` \| `string` | Pagination token. It comes from either the `previousPage` or `nextPage` properties of the previous response. | +| `params.pageSize`? | `number` | The number of features to return per page. Defaults to 20. Note: The larger the page size, the longer this is likely to take to respond. | +| `params.select`? | `string`\[] | The attributes to select from the features. If not provided, all attributes will be returned. If you set this to an empty array, no attributes will be returned. | ### Returns diff --git a/docs/Tools/PinToolSettings.md b/docs/Tools/PinToolSettings.md index 1957579e..bda80094 100644 --- a/docs/Tools/PinToolSettings.md +++ b/docs/Tools/PinToolSettings.md @@ -62,7 +62,7 @@ the "Oil barrel" symbol is `oil-barrel`. ## afterCreation -> **afterCreation**: `"enter name"` | `"add another"` | `"select"` +> **afterCreation**: `"select"` | `"enter name"` | `"add another"` What to do after creating the Place element. diff --git a/etc/js-sdk.api.md b/etc/js-sdk.api.md index 5d02e792..cb0ff312 100644 --- a/etc/js-sdk.api.md +++ b/etc/js-sdk.api.md @@ -4,211 +4,211 @@ ```ts -import { av as AggregatedGridConfig } from './controller-BcZvbm-Y.js'; -import { aw as AggregationConfig } from './controller-BcZvbm-Y.js'; -import { ax as AggregationMethod } from './controller-BcZvbm-Y.js'; -import { C as CircleElementCreate } from './controller-BcZvbm-Y.js'; -import { a as CircleElementRead } from './controller-BcZvbm-Y.js'; -import { b as CircleElementUpdate } from './controller-BcZvbm-Y.js'; -import { b9 as CircleToolSettings } from './controller-BcZvbm-Y.js'; -import { ba as ConfigurableToolType } from './controller-BcZvbm-Y.js'; -import { ay as CountGridConfig } from './controller-BcZvbm-Y.js'; -import { bq as CreateActionTriggerParams } from './controller-BcZvbm-Y.js'; -import { br as CreateFeatureActionParams } from './controller-BcZvbm-Y.js'; -import { K as CreateLayersFromGeoJsonParams } from './controller-BcZvbm-Y.js'; -import { bs as CreateOrUpdatePanelParams } from './controller-BcZvbm-Y.js'; -import { bt as CreatePanelElementsParams } from './controller-BcZvbm-Y.js'; -import { O as DataOnlyLayer } from './controller-BcZvbm-Y.js'; -import { bu as DeletePanelElementsParams } from './controller-BcZvbm-Y.js'; -import { E as Element_2 } from './controller-BcZvbm-Y.js'; -import { c as ElementChangeCallbackParams } from './controller-BcZvbm-Y.js'; -import { d as ElementCreate } from './controller-BcZvbm-Y.js'; -import { e as ElementGroup } from './controller-BcZvbm-Y.js'; -import { f as ElementGroupChangeCallbackParams } from './controller-BcZvbm-Y.js'; -import { aN as ElementGroupNode } from './controller-BcZvbm-Y.js'; -import { aO as ElementNode } from './controller-BcZvbm-Y.js'; -import { B as ElementsController } from './controller-BcZvbm-Y.js'; -import { g as ElementUpdate } from './controller-BcZvbm-Y.js'; -import { aP as EntityNode } from './controller-BcZvbm-Y.js'; -import { aQ as FeatureNode } from './controller-BcZvbm-Y.js'; -import { aR as FeatureSelection } from './controller-BcZvbm-Y.js'; -import { aV as FeltBoundary } from './controller-BcZvbm-Y.js'; -import { F as FeltController } from './controller-BcZvbm-Y.js'; -import { Q as FeltTiledVectorSource } from './controller-BcZvbm-Y.js'; -import { aW as FeltZoom } from './controller-BcZvbm-Y.js'; -import { ao as FilterExpression } from './controller-BcZvbm-Y.js'; -import { ap as FilterLogicGate } from './controller-BcZvbm-Y.js'; -import { ar as Filters } from './controller-BcZvbm-Y.js'; -import { aq as FilterTernary } from './controller-BcZvbm-Y.js'; -import { R as GeoJsonDataVectorSource } from './controller-BcZvbm-Y.js'; -import { aX as GeoJsonFeature } from './controller-BcZvbm-Y.js'; -import { S as GeoJsonFileVectorSource } from './controller-BcZvbm-Y.js'; -import { aY as GeoJsonGeometry } from './controller-BcZvbm-Y.js'; -import { aZ as GeoJsonProperties } from './controller-BcZvbm-Y.js'; -import { W as GeoJsonUrlVectorSource } from './controller-BcZvbm-Y.js'; -import { as as GeometryFilter } from './controller-BcZvbm-Y.js'; -import { G as GetElementGroupsConstraint } from './controller-BcZvbm-Y.js'; -import { h as GetElementsConstraint } from './controller-BcZvbm-Y.js'; -import { az as GetLayerCalculationParams } from './controller-BcZvbm-Y.js'; -import { aA as GetLayerCategoriesGroup } from './controller-BcZvbm-Y.js'; -import { aB as GetLayerCategoriesParams } from './controller-BcZvbm-Y.js'; -import { X as GetLayerGroupsConstraint } from './controller-BcZvbm-Y.js'; -import { aC as GetLayerHistogramBin } from './controller-BcZvbm-Y.js'; -import { aD as GetLayerHistogramParams } from './controller-BcZvbm-Y.js'; -import { aE as GetLayerPrecomputedCalculationParams } from './controller-BcZvbm-Y.js'; -import { Y as GetLayersConstraint } from './controller-BcZvbm-Y.js'; -import { Z as GetRenderedFeaturesConstraint } from './controller-BcZvbm-Y.js'; -import { aF as GridConfig } from './controller-BcZvbm-Y.js'; -import { aG as GridType } from './controller-BcZvbm-Y.js'; -import { H as HighlighterElementCreate } from './controller-BcZvbm-Y.js'; -import { i as HighlighterElementRead } from './controller-BcZvbm-Y.js'; -import { j as HighlighterElementUpdate } from './controller-BcZvbm-Y.js'; -import { bb as HighlighterToolSettings } from './controller-BcZvbm-Y.js'; -import { I as ImageElementCreate } from './controller-BcZvbm-Y.js'; -import { k as ImageElementRead } from './controller-BcZvbm-Y.js'; -import { l as ImageElementUpdate } from './controller-BcZvbm-Y.js'; -import { bc as InputToolSettings } from './controller-BcZvbm-Y.js'; -import { J as InteractionsController } from './controller-BcZvbm-Y.js'; -import { a_ as LatLng } from './controller-BcZvbm-Y.js'; -import { _ as Layer } from './controller-BcZvbm-Y.js'; -import { at as LayerBoundaries } from './controller-BcZvbm-Y.js'; -import { $ as LayerChangeCallbackParams } from './controller-BcZvbm-Y.js'; -import { a0 as LayerCommon } from './controller-BcZvbm-Y.js'; -import { ae as LayerFeature } from './controller-BcZvbm-Y.js'; -import { au as LayerFilters } from './controller-BcZvbm-Y.js'; -import { a1 as LayerGroup } from './controller-BcZvbm-Y.js'; -import { a2 as LayerGroupChangeCallbackParams } from './controller-BcZvbm-Y.js'; -import { aS as LayerGroupNode } from './controller-BcZvbm-Y.js'; -import { aT as LayerNode } from './controller-BcZvbm-Y.js'; -import { a3 as LayerProcessingStatus } from './controller-BcZvbm-Y.js'; -import { ag as LayerSchema } from './controller-BcZvbm-Y.js'; -import { ah as LayerSchemaAttribute } from './controller-BcZvbm-Y.js'; -import { ai as LayerSchemaBooleanAttribute } from './controller-BcZvbm-Y.js'; -import { aj as LayerSchemaCommonAttribute } from './controller-BcZvbm-Y.js'; -import { ak as LayerSchemaDateAttribute } from './controller-BcZvbm-Y.js'; -import { al as LayerSchemaDateTimeAttribute } from './controller-BcZvbm-Y.js'; -import { am as LayerSchemaNumericAttribute } from './controller-BcZvbm-Y.js'; -import { an as LayerSchemaTextAttribute } from './controller-BcZvbm-Y.js'; -import { aK as LayersController } from './controller-BcZvbm-Y.js'; -import { a4 as LegendDisplay } from './controller-BcZvbm-Y.js'; -import { a5 as LegendItem } from './controller-BcZvbm-Y.js'; -import { a6 as LegendItemChangeCallbackParams } from './controller-BcZvbm-Y.js'; -import { a7 as LegendItemIdentifier } from './controller-BcZvbm-Y.js'; -import { a8 as LegendItemsConstraint } from './controller-BcZvbm-Y.js'; -import { a$ as LineStringGeometry } from './controller-BcZvbm-Y.js'; -import { bd as LineToolSettings } from './controller-BcZvbm-Y.js'; -import { L as LinkElementRead } from './controller-BcZvbm-Y.js'; -import { b0 as LngLatTuple } from './controller-BcZvbm-Y.js'; -import { aL as MapDetails } from './controller-BcZvbm-Y.js'; -import { D as MapInteractionEvent } from './controller-BcZvbm-Y.js'; -import { M as MarkerElementCreate } from './controller-BcZvbm-Y.js'; -import { m as MarkerElementRead } from './controller-BcZvbm-Y.js'; -import { n as MarkerElementUpdate } from './controller-BcZvbm-Y.js'; -import { be as MarkerToolSettings } from './controller-BcZvbm-Y.js'; -import { aM as MiscController } from './controller-BcZvbm-Y.js'; -import { aH as MultiAggregationConfig } from './controller-BcZvbm-Y.js'; -import { b1 as MultiLineStringGeometry } from './controller-BcZvbm-Y.js'; -import { b2 as MultiPointGeometry } from './controller-BcZvbm-Y.js'; -import { b3 as MultiPolygonGeometry } from './controller-BcZvbm-Y.js'; -import { N as NoteElementCreate } from './controller-BcZvbm-Y.js'; -import { o as NoteElementRead } from './controller-BcZvbm-Y.js'; -import { p as NoteElementUpdate } from './controller-BcZvbm-Y.js'; -import { bf as NoteToolSettings } from './controller-BcZvbm-Y.js'; -import { bv as OnMapInteractionsOptions } from './controller-BcZvbm-Y.js'; -import { P as PathElementCreate } from './controller-BcZvbm-Y.js'; -import { q as PathElementRead } from './controller-BcZvbm-Y.js'; -import { r as PathElementUpdate } from './controller-BcZvbm-Y.js'; -import { bg as PinToolSettings } from './controller-BcZvbm-Y.js'; -import { s as PlaceElementCreate } from './controller-BcZvbm-Y.js'; -import { t as PlaceElementRead } from './controller-BcZvbm-Y.js'; -import { u as PlaceElementUpdate } from './controller-BcZvbm-Y.js'; -import { bh as PlaceFrame } from './controller-BcZvbm-Y.js'; -import { bz as PlacementForUIElement } from './controller-BcZvbm-Y.js'; -import { bi as PlaceSymbol } from './controller-BcZvbm-Y.js'; -import { b4 as PointGeometry } from './controller-BcZvbm-Y.js'; -import { v as PolygonElementCreate } from './controller-BcZvbm-Y.js'; -import { w as PolygonElementRead } from './controller-BcZvbm-Y.js'; -import { x as PolygonElementUpdate } from './controller-BcZvbm-Y.js'; -import { b5 as PolygonGeometry } from './controller-BcZvbm-Y.js'; -import { bj as PolygonToolSettings } from './controller-BcZvbm-Y.js'; -import { aI as PrecomputedAggregationMethod } from './controller-BcZvbm-Y.js'; -import { a9 as RasterBand } from './controller-BcZvbm-Y.js'; -import { aa as RasterLayer } from './controller-BcZvbm-Y.js'; -import { ab as RasterLayerSource } from './controller-BcZvbm-Y.js'; -import { af as RasterValue } from './controller-BcZvbm-Y.js'; -import { bk as RouteToolSettings } from './controller-BcZvbm-Y.js'; -import { aU as SelectionController } from './controller-BcZvbm-Y.js'; -import { ci as SetViewportCenterZoomParams } from './controller-BcZvbm-Y.js'; -import { b6 as SetVisibilityRequest } from './controller-BcZvbm-Y.js'; -import { b7 as SortConfig } from './controller-BcZvbm-Y.js'; -import { b8 as SortDirection } from './controller-BcZvbm-Y.js'; -import { T as TextElementCreate } from './controller-BcZvbm-Y.js'; -import { y as TextElementRead } from './controller-BcZvbm-Y.js'; -import { A as TextElementUpdate } from './controller-BcZvbm-Y.js'; -import { bl as TextToolSettings } from './controller-BcZvbm-Y.js'; -import { bp as ToolsController } from './controller-BcZvbm-Y.js'; -import { bm as ToolSettingsChangeEvent } from './controller-BcZvbm-Y.js'; -import { bn as ToolSettingsMap } from './controller-BcZvbm-Y.js'; -import { bo as ToolType } from './controller-BcZvbm-Y.js'; -import { ce as UIActionTriggerCreate } from './controller-BcZvbm-Y.js'; -import { bC as UIButtonElement } from './controller-BcZvbm-Y.js'; -import { bD as UIButtonElementCreate } from './controller-BcZvbm-Y.js'; -import { bE as UIButtonElementUpdate } from './controller-BcZvbm-Y.js'; -import { b_ as UIButtonRowElement } from './controller-BcZvbm-Y.js'; -import { b$ as UIButtonRowElementCreate } from './controller-BcZvbm-Y.js'; -import { c0 as UIButtonRowElementUpdate } from './controller-BcZvbm-Y.js'; -import { c1 as UICheckboxGroupElement } from './controller-BcZvbm-Y.js'; -import { c2 as UICheckboxGroupElementCreate } from './controller-BcZvbm-Y.js'; -import { c3 as UICheckboxGroupElementUpdate } from './controller-BcZvbm-Y.js'; -import { cd as UIControlElementOption } from './controller-BcZvbm-Y.js'; -import { ch as UiController } from './controller-BcZvbm-Y.js'; -import { U as UiControlsOptions } from './controller-BcZvbm-Y.js'; -import { bL as UIDividerElement } from './controller-BcZvbm-Y.js'; -import { bM as UIDividerElementCreate } from './controller-BcZvbm-Y.js'; -import { bN as UIDividerElementUpdate } from './controller-BcZvbm-Y.js'; -import { cf as uiFeatureAction } from './controller-BcZvbm-Y.js'; -import { cg as uiFeatureActionCreate } from './controller-BcZvbm-Y.js'; -import { bI as UIFlexibleSpaceElement } from './controller-BcZvbm-Y.js'; -import { bJ as UIFlexibleSpaceElementCreate } from './controller-BcZvbm-Y.js'; -import { bK as UIFlexibleSpaceElementUpdate } from './controller-BcZvbm-Y.js'; -import { bX as UIGridContainerElement } from './controller-BcZvbm-Y.js'; -import { bY as UIGridContainerElementCreate } from './controller-BcZvbm-Y.js'; -import { bZ as UIGridContainerElementUpdate } from './controller-BcZvbm-Y.js'; -import { ca as UIIframeElement } from './controller-BcZvbm-Y.js'; -import { cb as UIIframeElementCreate } from './controller-BcZvbm-Y.js'; -import { cc as UIIframeElementUpdate } from './controller-BcZvbm-Y.js'; -import { bA as UIPanel } from './controller-BcZvbm-Y.js'; -import { bB as UIPanelCreateOrUpdate } from './controller-BcZvbm-Y.js'; -import { bU as UIPanelElement } from './controller-BcZvbm-Y.js'; -import { bV as UIPanelElementCreate } from './controller-BcZvbm-Y.js'; -import { bW as UIPanelElementUpdate } from './controller-BcZvbm-Y.js'; -import { c4 as UIRadioGroupElement } from './controller-BcZvbm-Y.js'; -import { c5 as UIRadioGroupElementCreate } from './controller-BcZvbm-Y.js'; -import { c6 as UIRadioGroupElementUpdate } from './controller-BcZvbm-Y.js'; -import { bR as UISelectElement } from './controller-BcZvbm-Y.js'; -import { bS as UISelectElementCreate } from './controller-BcZvbm-Y.js'; -import { bT as UISelectElementUpdate } from './controller-BcZvbm-Y.js'; -import { bF as UITextElement } from './controller-BcZvbm-Y.js'; -import { bG as UITextElementCreate } from './controller-BcZvbm-Y.js'; -import { bH as UITextElementUpdate } from './controller-BcZvbm-Y.js'; -import { bO as UITextInputElement } from './controller-BcZvbm-Y.js'; -import { bP as UITextInputElementCreate } from './controller-BcZvbm-Y.js'; -import { bQ as UITextInputElementUpdate } from './controller-BcZvbm-Y.js'; -import { c7 as UIToggleGroupElement } from './controller-BcZvbm-Y.js'; -import { c8 as UIToggleGroupElementCreate } from './controller-BcZvbm-Y.js'; -import { c9 as UIToggleGroupElementUpdate } from './controller-BcZvbm-Y.js'; -import { bw as UpdateActionTriggerParams } from './controller-BcZvbm-Y.js'; -import { bx as UpdateFeatureActionParams } from './controller-BcZvbm-Y.js'; -import { ac as UpdateLayerParams } from './controller-BcZvbm-Y.js'; -import { by as UpdatePanelElementsParams } from './controller-BcZvbm-Y.js'; -import { aJ as ValueConfiguration } from './controller-BcZvbm-Y.js'; -import { ad as VectorLayer } from './controller-BcZvbm-Y.js'; -import { V as ViewportCenterZoom } from './controller-BcZvbm-Y.js'; -import { cj as ViewportConstraints } from './controller-BcZvbm-Y.js'; -import { cm as ViewportController } from './controller-BcZvbm-Y.js'; -import { ck as ViewportFitBoundsParams } from './controller-BcZvbm-Y.js'; -import { cl as ViewportState } from './controller-BcZvbm-Y.js'; -import { z } from './controller-BcZvbm-Y.js'; +import { av as AggregatedGridConfig } from './controller-Bo9c_mT4.js'; +import { aw as AggregationConfig } from './controller-Bo9c_mT4.js'; +import { ax as AggregationMethod } from './controller-Bo9c_mT4.js'; +import { C as CircleElementCreate } from './controller-Bo9c_mT4.js'; +import { a as CircleElementRead } from './controller-Bo9c_mT4.js'; +import { b as CircleElementUpdate } from './controller-Bo9c_mT4.js'; +import { b9 as CircleToolSettings } from './controller-Bo9c_mT4.js'; +import { ba as ConfigurableToolType } from './controller-Bo9c_mT4.js'; +import { ay as CountGridConfig } from './controller-Bo9c_mT4.js'; +import { bq as CreateActionTriggerParams } from './controller-Bo9c_mT4.js'; +import { br as CreateFeatureActionParams } from './controller-Bo9c_mT4.js'; +import { K as CreateLayersFromGeoJsonParams } from './controller-Bo9c_mT4.js'; +import { bs as CreateOrUpdatePanelParams } from './controller-Bo9c_mT4.js'; +import { bt as CreatePanelElementsParams } from './controller-Bo9c_mT4.js'; +import { O as DataOnlyLayer } from './controller-Bo9c_mT4.js'; +import { bu as DeletePanelElementsParams } from './controller-Bo9c_mT4.js'; +import { E as Element_2 } from './controller-Bo9c_mT4.js'; +import { c as ElementChangeCallbackParams } from './controller-Bo9c_mT4.js'; +import { d as ElementCreate } from './controller-Bo9c_mT4.js'; +import { e as ElementGroup } from './controller-Bo9c_mT4.js'; +import { f as ElementGroupChangeCallbackParams } from './controller-Bo9c_mT4.js'; +import { aN as ElementGroupNode } from './controller-Bo9c_mT4.js'; +import { aO as ElementNode } from './controller-Bo9c_mT4.js'; +import { B as ElementsController } from './controller-Bo9c_mT4.js'; +import { g as ElementUpdate } from './controller-Bo9c_mT4.js'; +import { aP as EntityNode } from './controller-Bo9c_mT4.js'; +import { aQ as FeatureNode } from './controller-Bo9c_mT4.js'; +import { aR as FeatureSelection } from './controller-Bo9c_mT4.js'; +import { aV as FeltBoundary } from './controller-Bo9c_mT4.js'; +import { F as FeltController } from './controller-Bo9c_mT4.js'; +import { Q as FeltTiledVectorSource } from './controller-Bo9c_mT4.js'; +import { aW as FeltZoom } from './controller-Bo9c_mT4.js'; +import { ao as FilterExpression } from './controller-Bo9c_mT4.js'; +import { ap as FilterLogicGate } from './controller-Bo9c_mT4.js'; +import { ar as Filters } from './controller-Bo9c_mT4.js'; +import { aq as FilterTernary } from './controller-Bo9c_mT4.js'; +import { R as GeoJsonDataVectorSource } from './controller-Bo9c_mT4.js'; +import { aX as GeoJsonFeature } from './controller-Bo9c_mT4.js'; +import { S as GeoJsonFileVectorSource } from './controller-Bo9c_mT4.js'; +import { aY as GeoJsonGeometry } from './controller-Bo9c_mT4.js'; +import { aZ as GeoJsonProperties } from './controller-Bo9c_mT4.js'; +import { W as GeoJsonUrlVectorSource } from './controller-Bo9c_mT4.js'; +import { as as GeometryFilter } from './controller-Bo9c_mT4.js'; +import { G as GetElementGroupsConstraint } from './controller-Bo9c_mT4.js'; +import { h as GetElementsConstraint } from './controller-Bo9c_mT4.js'; +import { az as GetLayerCalculationParams } from './controller-Bo9c_mT4.js'; +import { aA as GetLayerCategoriesGroup } from './controller-Bo9c_mT4.js'; +import { aB as GetLayerCategoriesParams } from './controller-Bo9c_mT4.js'; +import { X as GetLayerGroupsConstraint } from './controller-Bo9c_mT4.js'; +import { aC as GetLayerHistogramBin } from './controller-Bo9c_mT4.js'; +import { aD as GetLayerHistogramParams } from './controller-Bo9c_mT4.js'; +import { aE as GetLayerPrecomputedCalculationParams } from './controller-Bo9c_mT4.js'; +import { Y as GetLayersConstraint } from './controller-Bo9c_mT4.js'; +import { Z as GetRenderedFeaturesConstraint } from './controller-Bo9c_mT4.js'; +import { aF as GridConfig } from './controller-Bo9c_mT4.js'; +import { aG as GridType } from './controller-Bo9c_mT4.js'; +import { H as HighlighterElementCreate } from './controller-Bo9c_mT4.js'; +import { i as HighlighterElementRead } from './controller-Bo9c_mT4.js'; +import { j as HighlighterElementUpdate } from './controller-Bo9c_mT4.js'; +import { bb as HighlighterToolSettings } from './controller-Bo9c_mT4.js'; +import { I as ImageElementCreate } from './controller-Bo9c_mT4.js'; +import { k as ImageElementRead } from './controller-Bo9c_mT4.js'; +import { l as ImageElementUpdate } from './controller-Bo9c_mT4.js'; +import { bc as InputToolSettings } from './controller-Bo9c_mT4.js'; +import { J as InteractionsController } from './controller-Bo9c_mT4.js'; +import { a_ as LatLng } from './controller-Bo9c_mT4.js'; +import { _ as Layer } from './controller-Bo9c_mT4.js'; +import { at as LayerBoundaries } from './controller-Bo9c_mT4.js'; +import { $ as LayerChangeCallbackParams } from './controller-Bo9c_mT4.js'; +import { a0 as LayerCommon } from './controller-Bo9c_mT4.js'; +import { ae as LayerFeature } from './controller-Bo9c_mT4.js'; +import { au as LayerFilters } from './controller-Bo9c_mT4.js'; +import { a1 as LayerGroup } from './controller-Bo9c_mT4.js'; +import { a2 as LayerGroupChangeCallbackParams } from './controller-Bo9c_mT4.js'; +import { aS as LayerGroupNode } from './controller-Bo9c_mT4.js'; +import { aT as LayerNode } from './controller-Bo9c_mT4.js'; +import { a3 as LayerProcessingStatus } from './controller-Bo9c_mT4.js'; +import { ag as LayerSchema } from './controller-Bo9c_mT4.js'; +import { ah as LayerSchemaAttribute } from './controller-Bo9c_mT4.js'; +import { ai as LayerSchemaBooleanAttribute } from './controller-Bo9c_mT4.js'; +import { aj as LayerSchemaCommonAttribute } from './controller-Bo9c_mT4.js'; +import { ak as LayerSchemaDateAttribute } from './controller-Bo9c_mT4.js'; +import { al as LayerSchemaDateTimeAttribute } from './controller-Bo9c_mT4.js'; +import { am as LayerSchemaNumericAttribute } from './controller-Bo9c_mT4.js'; +import { an as LayerSchemaTextAttribute } from './controller-Bo9c_mT4.js'; +import { aK as LayersController } from './controller-Bo9c_mT4.js'; +import { a4 as LegendDisplay } from './controller-Bo9c_mT4.js'; +import { a5 as LegendItem } from './controller-Bo9c_mT4.js'; +import { a6 as LegendItemChangeCallbackParams } from './controller-Bo9c_mT4.js'; +import { a7 as LegendItemIdentifier } from './controller-Bo9c_mT4.js'; +import { a8 as LegendItemsConstraint } from './controller-Bo9c_mT4.js'; +import { a$ as LineStringGeometry } from './controller-Bo9c_mT4.js'; +import { bd as LineToolSettings } from './controller-Bo9c_mT4.js'; +import { L as LinkElementRead } from './controller-Bo9c_mT4.js'; +import { b0 as LngLatTuple } from './controller-Bo9c_mT4.js'; +import { aL as MapDetails } from './controller-Bo9c_mT4.js'; +import { D as MapInteractionEvent } from './controller-Bo9c_mT4.js'; +import { M as MarkerElementCreate } from './controller-Bo9c_mT4.js'; +import { m as MarkerElementRead } from './controller-Bo9c_mT4.js'; +import { n as MarkerElementUpdate } from './controller-Bo9c_mT4.js'; +import { be as MarkerToolSettings } from './controller-Bo9c_mT4.js'; +import { aM as MiscController } from './controller-Bo9c_mT4.js'; +import { aH as MultiAggregationConfig } from './controller-Bo9c_mT4.js'; +import { b1 as MultiLineStringGeometry } from './controller-Bo9c_mT4.js'; +import { b2 as MultiPointGeometry } from './controller-Bo9c_mT4.js'; +import { b3 as MultiPolygonGeometry } from './controller-Bo9c_mT4.js'; +import { N as NoteElementCreate } from './controller-Bo9c_mT4.js'; +import { o as NoteElementRead } from './controller-Bo9c_mT4.js'; +import { p as NoteElementUpdate } from './controller-Bo9c_mT4.js'; +import { bf as NoteToolSettings } from './controller-Bo9c_mT4.js'; +import { bv as OnMapInteractionsOptions } from './controller-Bo9c_mT4.js'; +import { P as PathElementCreate } from './controller-Bo9c_mT4.js'; +import { q as PathElementRead } from './controller-Bo9c_mT4.js'; +import { r as PathElementUpdate } from './controller-Bo9c_mT4.js'; +import { bg as PinToolSettings } from './controller-Bo9c_mT4.js'; +import { s as PlaceElementCreate } from './controller-Bo9c_mT4.js'; +import { t as PlaceElementRead } from './controller-Bo9c_mT4.js'; +import { u as PlaceElementUpdate } from './controller-Bo9c_mT4.js'; +import { bh as PlaceFrame } from './controller-Bo9c_mT4.js'; +import { bz as PlacementForUIElement } from './controller-Bo9c_mT4.js'; +import { bi as PlaceSymbol } from './controller-Bo9c_mT4.js'; +import { b4 as PointGeometry } from './controller-Bo9c_mT4.js'; +import { v as PolygonElementCreate } from './controller-Bo9c_mT4.js'; +import { w as PolygonElementRead } from './controller-Bo9c_mT4.js'; +import { x as PolygonElementUpdate } from './controller-Bo9c_mT4.js'; +import { b5 as PolygonGeometry } from './controller-Bo9c_mT4.js'; +import { bj as PolygonToolSettings } from './controller-Bo9c_mT4.js'; +import { aI as PrecomputedAggregationMethod } from './controller-Bo9c_mT4.js'; +import { a9 as RasterBand } from './controller-Bo9c_mT4.js'; +import { aa as RasterLayer } from './controller-Bo9c_mT4.js'; +import { ab as RasterLayerSource } from './controller-Bo9c_mT4.js'; +import { af as RasterValue } from './controller-Bo9c_mT4.js'; +import { bk as RouteToolSettings } from './controller-Bo9c_mT4.js'; +import { aU as SelectionController } from './controller-Bo9c_mT4.js'; +import { ci as SetViewportCenterZoomParams } from './controller-Bo9c_mT4.js'; +import { b6 as SetVisibilityRequest } from './controller-Bo9c_mT4.js'; +import { b7 as SortConfig } from './controller-Bo9c_mT4.js'; +import { b8 as SortDirection } from './controller-Bo9c_mT4.js'; +import { T as TextElementCreate } from './controller-Bo9c_mT4.js'; +import { y as TextElementRead } from './controller-Bo9c_mT4.js'; +import { A as TextElementUpdate } from './controller-Bo9c_mT4.js'; +import { bl as TextToolSettings } from './controller-Bo9c_mT4.js'; +import { bp as ToolsController } from './controller-Bo9c_mT4.js'; +import { bm as ToolSettingsChangeEvent } from './controller-Bo9c_mT4.js'; +import { bn as ToolSettingsMap } from './controller-Bo9c_mT4.js'; +import { bo as ToolType } from './controller-Bo9c_mT4.js'; +import { ce as UIActionTriggerCreate } from './controller-Bo9c_mT4.js'; +import { bC as UIButtonElement } from './controller-Bo9c_mT4.js'; +import { bD as UIButtonElementCreate } from './controller-Bo9c_mT4.js'; +import { bE as UIButtonElementUpdate } from './controller-Bo9c_mT4.js'; +import { b_ as UIButtonRowElement } from './controller-Bo9c_mT4.js'; +import { b$ as UIButtonRowElementCreate } from './controller-Bo9c_mT4.js'; +import { c0 as UIButtonRowElementUpdate } from './controller-Bo9c_mT4.js'; +import { c1 as UICheckboxGroupElement } from './controller-Bo9c_mT4.js'; +import { c2 as UICheckboxGroupElementCreate } from './controller-Bo9c_mT4.js'; +import { c3 as UICheckboxGroupElementUpdate } from './controller-Bo9c_mT4.js'; +import { cd as UIControlElementOption } from './controller-Bo9c_mT4.js'; +import { ch as UiController } from './controller-Bo9c_mT4.js'; +import { U as UiControlsOptions } from './controller-Bo9c_mT4.js'; +import { bL as UIDividerElement } from './controller-Bo9c_mT4.js'; +import { bM as UIDividerElementCreate } from './controller-Bo9c_mT4.js'; +import { bN as UIDividerElementUpdate } from './controller-Bo9c_mT4.js'; +import { cf as uiFeatureAction } from './controller-Bo9c_mT4.js'; +import { cg as uiFeatureActionCreate } from './controller-Bo9c_mT4.js'; +import { bI as UIFlexibleSpaceElement } from './controller-Bo9c_mT4.js'; +import { bJ as UIFlexibleSpaceElementCreate } from './controller-Bo9c_mT4.js'; +import { bK as UIFlexibleSpaceElementUpdate } from './controller-Bo9c_mT4.js'; +import { bX as UIGridContainerElement } from './controller-Bo9c_mT4.js'; +import { bY as UIGridContainerElementCreate } from './controller-Bo9c_mT4.js'; +import { bZ as UIGridContainerElementUpdate } from './controller-Bo9c_mT4.js'; +import { ca as UIIframeElement } from './controller-Bo9c_mT4.js'; +import { cb as UIIframeElementCreate } from './controller-Bo9c_mT4.js'; +import { cc as UIIframeElementUpdate } from './controller-Bo9c_mT4.js'; +import { bA as UIPanel } from './controller-Bo9c_mT4.js'; +import { bB as UIPanelCreateOrUpdate } from './controller-Bo9c_mT4.js'; +import { bU as UIPanelElement } from './controller-Bo9c_mT4.js'; +import { bV as UIPanelElementCreate } from './controller-Bo9c_mT4.js'; +import { bW as UIPanelElementUpdate } from './controller-Bo9c_mT4.js'; +import { c4 as UIRadioGroupElement } from './controller-Bo9c_mT4.js'; +import { c5 as UIRadioGroupElementCreate } from './controller-Bo9c_mT4.js'; +import { c6 as UIRadioGroupElementUpdate } from './controller-Bo9c_mT4.js'; +import { bR as UISelectElement } from './controller-Bo9c_mT4.js'; +import { bS as UISelectElementCreate } from './controller-Bo9c_mT4.js'; +import { bT as UISelectElementUpdate } from './controller-Bo9c_mT4.js'; +import { bF as UITextElement } from './controller-Bo9c_mT4.js'; +import { bG as UITextElementCreate } from './controller-Bo9c_mT4.js'; +import { bH as UITextElementUpdate } from './controller-Bo9c_mT4.js'; +import { bO as UITextInputElement } from './controller-Bo9c_mT4.js'; +import { bP as UITextInputElementCreate } from './controller-Bo9c_mT4.js'; +import { bQ as UITextInputElementUpdate } from './controller-Bo9c_mT4.js'; +import { c7 as UIToggleGroupElement } from './controller-Bo9c_mT4.js'; +import { c8 as UIToggleGroupElementCreate } from './controller-Bo9c_mT4.js'; +import { c9 as UIToggleGroupElementUpdate } from './controller-Bo9c_mT4.js'; +import { bw as UpdateActionTriggerParams } from './controller-Bo9c_mT4.js'; +import { bx as UpdateFeatureActionParams } from './controller-Bo9c_mT4.js'; +import { ac as UpdateLayerParams } from './controller-Bo9c_mT4.js'; +import { by as UpdatePanelElementsParams } from './controller-Bo9c_mT4.js'; +import { aJ as ValueConfiguration } from './controller-Bo9c_mT4.js'; +import { ad as VectorLayer } from './controller-Bo9c_mT4.js'; +import { V as ViewportCenterZoom } from './controller-Bo9c_mT4.js'; +import { cj as ViewportConstraints } from './controller-Bo9c_mT4.js'; +import { cm as ViewportController } from './controller-Bo9c_mT4.js'; +import { ck as ViewportFitBoundsParams } from './controller-Bo9c_mT4.js'; +import { cl as ViewportState } from './controller-Bo9c_mT4.js'; +import { z } from './controller-Bo9c_mT4.js'; import { z as z_2 } from 'zod'; export { AggregatedGridConfig } diff --git a/src/modules/layers/controller.ts b/src/modules/layers/controller.ts index 78707790..a6d7ea22 100644 --- a/src/modules/layers/controller.ts +++ b/src/modules/layers/controller.ts @@ -780,6 +780,18 @@ export interface LayersController { * properties of the previous response. */ pagination?: string | null; + + /** + * The number of features to return per page. Defaults to 20. + * Note: The larger the page size, the longer this is likely to take to respond. + * + */ + pageSize?: number; + + /** + * The attributes to select from the features. If not provided, all attributes will be returned. If you set this to an empty array, no attributes will be returned. + */ + select?: string[]; }): Promise<{ /** * The list of features returned from the query. diff --git a/src/modules/layers/schema.ts b/src/modules/layers/schema.ts index 3d08fb49..7eb79662 100644 --- a/src/modules/layers/schema.ts +++ b/src/modules/layers/schema.ts @@ -165,6 +165,8 @@ const GetFeaturesMessage = methodMessage( boundary: GeometryFilterSchema.optional(), search: z.string().optional(), pagination: z.string().optional().nullish(), + pageSize: z.number().optional(), + select: z.array(z.string()).optional(), }), );