@feltmaps/js-sdk 1.7.0-next.0 → 1.7.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/{controller-CmThLnnL.d.cts → controller-D6A8BZsm.d.cts} +117 -41
- package/dist/{controller-CmThLnnL.d.ts → controller-D6A8BZsm.d.ts} +117 -41
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +45 -17
- package/dist/handler.d.ts +45 -17
- package/dist/handler.js +1 -1
- package/handler.d.ts +4229 -0
- package/handler.js +1 -0
- package/package.json +1 -1
- package/types-B241Rd9q.d.ts +7395 -0
package/dist/client.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as zInfer, U as UiControlsOptions, V as ViewportCenterZoom, F as FeltController } from './controller-
|
|
2
|
-
export { au as
|
|
1
|
+
import { z as zInfer, U as UiControlsOptions, V as ViewportCenterZoom, F as FeltController } from './controller-D6A8BZsm.cjs';
|
|
2
|
+
export { au as AggregatedGridConfig, av as AggregationConfig, aw as AggregationMethod, C as CircleElementCreate, a as CircleElementRead, b as CircleElementUpdate, b8 as CircleToolSettings, b9 as ConfigurableToolType, ax as CountGridConfig, K as CreateLayersFromGeoJsonParams, O as DataOnlyLayer, E as Element, c as ElementChangeCallbackParams, d as ElementCreate, e as ElementGroup, f as ElementGroupChangeCallbackParams, aM as ElementGroupNode, aN as ElementNode, g as ElementUpdate, B as ElementsController, aO as EntityNode, aP as FeatureNode, aQ as FeatureSelection, aU as FeltBoundary, Q as FeltTiledVectorSource, aV as FeltZoom, an as FilterExpression, ao as FilterLogicGate, ap as FilterTernary, aq as Filters, R as GeoJsonDataVectorSource, aW as GeoJsonFeature, S as GeoJsonFileVectorSource, aX as GeoJsonGeometry, aY as GeoJsonProperties, W as GeoJsonUrlVectorSource, ar as GeometryFilter, G as GetElementGroupsConstraint, h as GetElementsConstraint, ay as GetLayerCalculationParams, az as GetLayerCategoriesGroup, aA as GetLayerCategoriesParams, X as GetLayerGroupsConstraint, aB as GetLayerHistogramBin, aC as GetLayerHistogramParams, aD as GetLayerPrecomputedCalculationParams, Y as GetLayersConstraint, Z as GetRenderedFeaturesConstraint, aE as GridConfig, aF as GridType, H as HighlighterElementCreate, i as HighlighterElementRead, j as HighlighterElementUpdate, ba as HighlighterToolSettings, I as ImageElementCreate, k as ImageElementRead, l as ImageElementUpdate, bb as InputToolSettings, J as InteractionsController, aZ as LatLng, _ as Layer, as as LayerBoundaries, $ as LayerChangeCallbackParams, a0 as LayerCommon, ad as LayerFeature, at as LayerFilters, a1 as LayerGroup, a2 as LayerGroupChangeCallbackParams, aR as LayerGroupNode, aS as LayerNode, a3 as LayerProcessingStatus, af as LayerSchema, ag as LayerSchemaAttribute, ah as LayerSchemaBooleanAttribute, ai as LayerSchemaCommonAttribute, aj as LayerSchemaDateAttribute, ak as LayerSchemaDateTimeAttribute, al as LayerSchemaNumericAttribute, am as LayerSchemaTextAttribute, aJ as LayersController, a4 as LegendItem, a5 as LegendItemChangeCallbackParams, a6 as LegendItemIdentifier, a7 as LegendItemsConstraint, a_ as LineStringGeometry, bc as LineToolSettings, L as LinkElementRead, a$ as LngLatTuple, aK as MapDetails, D as MapInteractionEvent, M as MarkerElementCreate, m as MarkerElementRead, n as MarkerElementUpdate, bd as MarkerToolSettings, aL as MiscController, aG as MultiAggregationConfig, b0 as MultiLineStringGeometry, b1 as MultiPointGeometry, b2 as MultiPolygonGeometry, N as NoteElementCreate, o as NoteElementRead, p as NoteElementUpdate, be as NoteToolSettings, bp as OnMapInteractionsOptions, P as PathElementCreate, q as PathElementRead, r as PathElementUpdate, bf as PinToolSettings, s as PlaceElementCreate, t as PlaceElementRead, u as PlaceElementUpdate, bg as PlaceFrame, bh as PlaceSymbol, b3 as PointGeometry, v as PolygonElementCreate, w as PolygonElementRead, x as PolygonElementUpdate, b4 as PolygonGeometry, bi as PolygonToolSettings, aH as PrecomputedAggregationMethod, a8 as RasterBand, a9 as RasterLayer, aa as RasterLayerSource, ae as RasterValue, bj as RouteToolSettings, aT as SelectionController, br as SetViewportCenterZoomParams, b5 as SetVisibilityRequest, b6 as SortConfig, b7 as SortDirection, T as TextElementCreate, y as TextElementRead, A as TextElementUpdate, bk as TextToolSettings, bl as ToolSettingsChangeEvent, bm as ToolSettingsMap, bn as ToolType, bo as ToolsController, bq as UiController, ab as UpdateLayerParams, aI as ValueConfiguration, ac as VectorLayer, bs as ViewportConstraints, bv as ViewportController, bt as ViewportFitBoundsParams, bu as ViewportState } from './controller-D6A8BZsm.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as zInfer, U as UiControlsOptions, V as ViewportCenterZoom, F as FeltController } from './controller-
|
|
2
|
-
export { au as
|
|
1
|
+
import { z as zInfer, U as UiControlsOptions, V as ViewportCenterZoom, F as FeltController } from './controller-D6A8BZsm.js';
|
|
2
|
+
export { au as AggregatedGridConfig, av as AggregationConfig, aw as AggregationMethod, C as CircleElementCreate, a as CircleElementRead, b as CircleElementUpdate, b8 as CircleToolSettings, b9 as ConfigurableToolType, ax as CountGridConfig, K as CreateLayersFromGeoJsonParams, O as DataOnlyLayer, E as Element, c as ElementChangeCallbackParams, d as ElementCreate, e as ElementGroup, f as ElementGroupChangeCallbackParams, aM as ElementGroupNode, aN as ElementNode, g as ElementUpdate, B as ElementsController, aO as EntityNode, aP as FeatureNode, aQ as FeatureSelection, aU as FeltBoundary, Q as FeltTiledVectorSource, aV as FeltZoom, an as FilterExpression, ao as FilterLogicGate, ap as FilterTernary, aq as Filters, R as GeoJsonDataVectorSource, aW as GeoJsonFeature, S as GeoJsonFileVectorSource, aX as GeoJsonGeometry, aY as GeoJsonProperties, W as GeoJsonUrlVectorSource, ar as GeometryFilter, G as GetElementGroupsConstraint, h as GetElementsConstraint, ay as GetLayerCalculationParams, az as GetLayerCategoriesGroup, aA as GetLayerCategoriesParams, X as GetLayerGroupsConstraint, aB as GetLayerHistogramBin, aC as GetLayerHistogramParams, aD as GetLayerPrecomputedCalculationParams, Y as GetLayersConstraint, Z as GetRenderedFeaturesConstraint, aE as GridConfig, aF as GridType, H as HighlighterElementCreate, i as HighlighterElementRead, j as HighlighterElementUpdate, ba as HighlighterToolSettings, I as ImageElementCreate, k as ImageElementRead, l as ImageElementUpdate, bb as InputToolSettings, J as InteractionsController, aZ as LatLng, _ as Layer, as as LayerBoundaries, $ as LayerChangeCallbackParams, a0 as LayerCommon, ad as LayerFeature, at as LayerFilters, a1 as LayerGroup, a2 as LayerGroupChangeCallbackParams, aR as LayerGroupNode, aS as LayerNode, a3 as LayerProcessingStatus, af as LayerSchema, ag as LayerSchemaAttribute, ah as LayerSchemaBooleanAttribute, ai as LayerSchemaCommonAttribute, aj as LayerSchemaDateAttribute, ak as LayerSchemaDateTimeAttribute, al as LayerSchemaNumericAttribute, am as LayerSchemaTextAttribute, aJ as LayersController, a4 as LegendItem, a5 as LegendItemChangeCallbackParams, a6 as LegendItemIdentifier, a7 as LegendItemsConstraint, a_ as LineStringGeometry, bc as LineToolSettings, L as LinkElementRead, a$ as LngLatTuple, aK as MapDetails, D as MapInteractionEvent, M as MarkerElementCreate, m as MarkerElementRead, n as MarkerElementUpdate, bd as MarkerToolSettings, aL as MiscController, aG as MultiAggregationConfig, b0 as MultiLineStringGeometry, b1 as MultiPointGeometry, b2 as MultiPolygonGeometry, N as NoteElementCreate, o as NoteElementRead, p as NoteElementUpdate, be as NoteToolSettings, bp as OnMapInteractionsOptions, P as PathElementCreate, q as PathElementRead, r as PathElementUpdate, bf as PinToolSettings, s as PlaceElementCreate, t as PlaceElementRead, u as PlaceElementUpdate, bg as PlaceFrame, bh as PlaceSymbol, b3 as PointGeometry, v as PolygonElementCreate, w as PolygonElementRead, x as PolygonElementUpdate, b4 as PolygonGeometry, bi as PolygonToolSettings, aH as PrecomputedAggregationMethod, a8 as RasterBand, a9 as RasterLayer, aa as RasterLayerSource, ae as RasterValue, bj as RouteToolSettings, aT as SelectionController, br as SetViewportCenterZoomParams, b5 as SetVisibilityRequest, b6 as SortConfig, b7 as SortDirection, T as TextElementCreate, y as TextElementRead, A as TextElementUpdate, bk as TextToolSettings, bl as ToolSettingsChangeEvent, bm as ToolSettingsMap, bn as ToolType, bo as ToolsController, bq as UiController, ab as UpdateLayerParams, aI as ValueConfiguration, ac as VectorLayer, bs as ViewportConstraints, bv as ViewportController, bt as ViewportFitBoundsParams, bu as ViewportState } from './controller-D6A8BZsm.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -4464,6 +4464,20 @@ interface LayerFeature {
|
|
|
4464
4464
|
* The identifier of the feature, unique within the layer.
|
|
4465
4465
|
*/
|
|
4466
4466
|
id: string | number;
|
|
4467
|
+
/**
|
|
4468
|
+
* Whether the id is deterministic.
|
|
4469
|
+
*
|
|
4470
|
+
* @remarks If the id is deterministic, it means that the id can be used to reference the feature
|
|
4471
|
+
* in the layer and therefore in all the SDK feature-related methods.
|
|
4472
|
+
*
|
|
4473
|
+
* When the id is not deterministic, the feature cannot be referenced on SDK methods like {@link FeltController.getFeature}
|
|
4474
|
+
* or {@link SelectionController.selectFeature}.
|
|
4475
|
+
*
|
|
4476
|
+
* For layers created and processed on Felt servers, the feature IDs are deterministic because Felt ensures every feature is correctly identified in vector tiles.
|
|
4477
|
+
* This cannot be guaranteed for layers created using a GeoJSON source on the SDK (see {@link LayersController.createLayersFromGeoJson})
|
|
4478
|
+
* where the ID will only be deterministic if GeoJSON features have an `id` property.
|
|
4479
|
+
*/
|
|
4480
|
+
isDeterministicId: boolean;
|
|
4467
4481
|
/**
|
|
4468
4482
|
* The identifier of the layer that the feature belongs to.
|
|
4469
4483
|
*/
|
|
@@ -6476,54 +6490,98 @@ interface GetLayerCalculationParams<T extends AggregationMethod | "count"> exten
|
|
|
6476
6490
|
aggregation: MultiAggregationConfig<T>;
|
|
6477
6491
|
}
|
|
6478
6492
|
declare const GridTypeSchema: z.ZodEnum<["h3"]>;
|
|
6493
|
+
/**
|
|
6494
|
+
* The type of grid to use for precomputed aggregate values.
|
|
6495
|
+
*
|
|
6496
|
+
* @group Stats
|
|
6497
|
+
*/
|
|
6479
6498
|
type GridType = z.infer<typeof GridTypeSchema>;
|
|
6480
|
-
declare const
|
|
6481
|
-
/**
|
|
6482
|
-
* The type of grid to use for the precomputed calculation.
|
|
6483
|
-
*/
|
|
6499
|
+
declare const CountGridConfigSchema: z.ZodObject<{
|
|
6484
6500
|
type: z.ZodEnum<["h3"]>;
|
|
6485
6501
|
/**
|
|
6486
6502
|
* The resolution of the grid to use for the precomputed calculation.
|
|
6487
6503
|
*/
|
|
6488
6504
|
resolution: z.ZodNumber;
|
|
6489
|
-
|
|
6490
|
-
* The method to use for the precomputed calculation.
|
|
6491
|
-
*/
|
|
6492
|
-
method: z.ZodEnum<["avg", "max", "min", "sum", "count"]>;
|
|
6493
|
-
/**
|
|
6494
|
-
* The attribute to use for the precomputed calculation. This can be omitted if the aggregation method is "count".
|
|
6495
|
-
* Must be a numeric attribute otherwise.
|
|
6496
|
-
*/
|
|
6497
|
-
attribute: z.ZodOptional<z.ZodString>;
|
|
6505
|
+
method: z.ZodEnum<["count"]>;
|
|
6498
6506
|
}, "strip", z.ZodTypeAny, {
|
|
6499
6507
|
type: "h3";
|
|
6500
|
-
method: "
|
|
6508
|
+
method: "count";
|
|
6501
6509
|
resolution: number;
|
|
6502
|
-
attribute?: string | undefined;
|
|
6503
6510
|
}, {
|
|
6504
6511
|
type: "h3";
|
|
6505
|
-
method: "
|
|
6512
|
+
method: "count";
|
|
6506
6513
|
resolution: number;
|
|
6507
|
-
attribute?: string | undefined;
|
|
6508
6514
|
}>;
|
|
6509
|
-
|
|
6515
|
+
/**
|
|
6516
|
+
* The grid configuration for a count-based precomputed aggregate value. Compared to the
|
|
6517
|
+
* {@link AggregatedGridConfig}, the `attribute` property is not required, because the count
|
|
6518
|
+
* is the same regardless of the attribute.
|
|
6519
|
+
*
|
|
6520
|
+
* Used inside {@link GetLayerPrecomputedCalculationParams}.
|
|
6521
|
+
*
|
|
6522
|
+
* @group Stats
|
|
6523
|
+
*/
|
|
6524
|
+
interface CountGridConfig extends zInfer<typeof CountGridConfigSchema> {
|
|
6510
6525
|
/**
|
|
6511
6526
|
* The type of grid to use for the precomputed calculation.
|
|
6512
6527
|
*/
|
|
6513
6528
|
type: GridType;
|
|
6529
|
+
/**
|
|
6530
|
+
* The method to use for the precomputed calculation, which in this case is always "count".
|
|
6531
|
+
*/
|
|
6532
|
+
method: Extract<PrecomputedAggregationMethod, "count">;
|
|
6533
|
+
}
|
|
6534
|
+
declare const AggregatedGridConfigSchema: z.ZodObject<{
|
|
6535
|
+
type: z.ZodEnum<["h3"]>;
|
|
6514
6536
|
/**
|
|
6515
6537
|
* The resolution of the grid to use for the precomputed calculation.
|
|
6516
6538
|
*/
|
|
6539
|
+
resolution: z.ZodNumber;
|
|
6540
|
+
method: z.ZodEnum<["avg", "max", "min", "sum"]>;
|
|
6541
|
+
/**
|
|
6542
|
+
* The attribute to use for the precomputed calculation.
|
|
6543
|
+
*
|
|
6544
|
+
* This must be a numeric attribute;
|
|
6545
|
+
*/
|
|
6546
|
+
attribute: z.ZodString;
|
|
6547
|
+
}, "strip", z.ZodTypeAny, {
|
|
6548
|
+
type: "h3";
|
|
6549
|
+
attribute: string;
|
|
6550
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6517
6551
|
resolution: number;
|
|
6552
|
+
}, {
|
|
6553
|
+
type: "h3";
|
|
6554
|
+
attribute: string;
|
|
6555
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6556
|
+
resolution: number;
|
|
6557
|
+
}>;
|
|
6558
|
+
/**
|
|
6559
|
+
* The grid configuration for an aggregated precomputed aggregate value. This requires
|
|
6560
|
+
* an `attribute` property, because the numeric aggregation requires it.
|
|
6561
|
+
*
|
|
6562
|
+
* If you just want to count the features in each grid cell, use the {@link CountGridConfig}
|
|
6563
|
+
* instead, where you are not required to specify an `attribute`.
|
|
6564
|
+
*
|
|
6565
|
+
* Used inside {@link GetLayerPrecomputedCalculationParams}.
|
|
6566
|
+
*
|
|
6567
|
+
* @group Stats
|
|
6568
|
+
*/
|
|
6569
|
+
interface AggregatedGridConfig extends zInfer<typeof AggregatedGridConfigSchema> {
|
|
6518
6570
|
/**
|
|
6519
|
-
* The
|
|
6571
|
+
* The type of grid to use for the precomputed calculation.
|
|
6520
6572
|
*/
|
|
6521
|
-
|
|
6573
|
+
type: GridType;
|
|
6522
6574
|
/**
|
|
6523
|
-
* The
|
|
6575
|
+
* The method to use for the precomputed calculation.
|
|
6524
6576
|
*/
|
|
6525
|
-
|
|
6577
|
+
method: Exclude<PrecomputedAggregationMethod, "count">;
|
|
6526
6578
|
}
|
|
6579
|
+
/**
|
|
6580
|
+
* Describes the type of grid to use for precomputed aggregate values.
|
|
6581
|
+
*
|
|
6582
|
+
* @group Stats
|
|
6583
|
+
*/
|
|
6584
|
+
type GridConfig = CountGridConfig | AggregatedGridConfig;
|
|
6527
6585
|
declare const GetLayerPrecomputedCalculationParamsSchema: z.ZodObject<{
|
|
6528
6586
|
/**
|
|
6529
6587
|
* The ID of the layer to calculate an aggregate value for.
|
|
@@ -6552,42 +6610,56 @@ declare const GetLayerPrecomputedCalculationParamsSchema: z.ZodObject<{
|
|
|
6552
6610
|
/**
|
|
6553
6611
|
* The type of grid to use for the precomputed calculation.
|
|
6554
6612
|
*/
|
|
6555
|
-
gridConfig: z.ZodObject<{
|
|
6556
|
-
/**
|
|
6557
|
-
* The type of grid to use for the precomputed calculation.
|
|
6558
|
-
*/
|
|
6613
|
+
gridConfig: z.ZodUnion<[z.ZodObject<{
|
|
6559
6614
|
type: z.ZodEnum<["h3"]>;
|
|
6560
6615
|
/**
|
|
6561
6616
|
* The resolution of the grid to use for the precomputed calculation.
|
|
6562
6617
|
*/
|
|
6563
6618
|
resolution: z.ZodNumber;
|
|
6619
|
+
method: z.ZodEnum<["count"]>;
|
|
6620
|
+
}, "strip", z.ZodTypeAny, {
|
|
6621
|
+
type: "h3";
|
|
6622
|
+
method: "count";
|
|
6623
|
+
resolution: number;
|
|
6624
|
+
}, {
|
|
6625
|
+
type: "h3";
|
|
6626
|
+
method: "count";
|
|
6627
|
+
resolution: number;
|
|
6628
|
+
}>, z.ZodObject<{
|
|
6629
|
+
type: z.ZodEnum<["h3"]>;
|
|
6564
6630
|
/**
|
|
6565
|
-
* The
|
|
6631
|
+
* The resolution of the grid to use for the precomputed calculation.
|
|
6566
6632
|
*/
|
|
6567
|
-
|
|
6633
|
+
resolution: z.ZodNumber;
|
|
6634
|
+
method: z.ZodEnum<["avg", "max", "min", "sum"]>;
|
|
6568
6635
|
/**
|
|
6569
|
-
* The attribute to use for the precomputed calculation.
|
|
6570
|
-
*
|
|
6636
|
+
* The attribute to use for the precomputed calculation.
|
|
6637
|
+
*
|
|
6638
|
+
* This must be a numeric attribute;
|
|
6571
6639
|
*/
|
|
6572
|
-
attribute: z.
|
|
6640
|
+
attribute: z.ZodString;
|
|
6573
6641
|
}, "strip", z.ZodTypeAny, {
|
|
6574
6642
|
type: "h3";
|
|
6575
|
-
|
|
6643
|
+
attribute: string;
|
|
6644
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6576
6645
|
resolution: number;
|
|
6577
|
-
attribute?: string | undefined;
|
|
6578
6646
|
}, {
|
|
6579
6647
|
type: "h3";
|
|
6580
|
-
|
|
6648
|
+
attribute: string;
|
|
6649
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6581
6650
|
resolution: number;
|
|
6582
|
-
|
|
6583
|
-
}>;
|
|
6651
|
+
}>]>;
|
|
6584
6652
|
}, "strip", z.ZodTypeAny, {
|
|
6585
6653
|
layerId: string;
|
|
6586
6654
|
gridConfig: {
|
|
6587
6655
|
type: "h3";
|
|
6588
|
-
method: "
|
|
6656
|
+
method: "count";
|
|
6657
|
+
resolution: number;
|
|
6658
|
+
} | {
|
|
6659
|
+
type: "h3";
|
|
6660
|
+
attribute: string;
|
|
6661
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6589
6662
|
resolution: number;
|
|
6590
|
-
attribute?: string | undefined;
|
|
6591
6663
|
};
|
|
6592
6664
|
boundary?: [number, number, number, number] | [number, number][] | {
|
|
6593
6665
|
type: "Polygon";
|
|
@@ -6601,9 +6673,13 @@ declare const GetLayerPrecomputedCalculationParamsSchema: z.ZodObject<{
|
|
|
6601
6673
|
layerId: string;
|
|
6602
6674
|
gridConfig: {
|
|
6603
6675
|
type: "h3";
|
|
6604
|
-
method: "
|
|
6676
|
+
method: "count";
|
|
6677
|
+
resolution: number;
|
|
6678
|
+
} | {
|
|
6679
|
+
type: "h3";
|
|
6680
|
+
attribute: string;
|
|
6681
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6605
6682
|
resolution: number;
|
|
6606
|
-
attribute?: string | undefined;
|
|
6607
6683
|
};
|
|
6608
6684
|
boundary?: [number, number, number, number] | [number, number][] | {
|
|
6609
6685
|
type: "Polygon";
|
|
@@ -8705,4 +8781,4 @@ interface FeltController extends ViewportController, UiController, LayersControl
|
|
|
8705
8781
|
iframe: HTMLIFrameElement | null;
|
|
8706
8782
|
}
|
|
8707
8783
|
|
|
8708
|
-
export type { LayerChangeCallbackParams as $, TextElementUpdate as A, ElementsController as B, CircleElementCreate as C, MapInteractionEvent as D, Element as E, FeltController as F, GetElementGroupsConstraint as G, HighlighterElementCreate as H, ImageElementCreate as I, InteractionsController as J, CreateLayersFromGeoJsonParams as K, LinkElementRead as L, MarkerElementCreate as M, NoteElementCreate as N, DataOnlyLayer as O, PathElementCreate as P, FeltTiledVectorSource as Q, GeoJsonDataVectorSource as R, GeoJsonFileVectorSource as S, TextElementCreate as T, UiControlsOptions as U, ViewportCenterZoom as V, GeoJsonUrlVectorSource as W, GetLayerGroupsConstraint as X, GetLayersConstraint as Y, GetRenderedFeaturesConstraint as Z, Layer as _, CircleElementRead as a,
|
|
8784
|
+
export type { LayerChangeCallbackParams as $, TextElementUpdate as A, ElementsController as B, CircleElementCreate as C, MapInteractionEvent as D, Element as E, FeltController as F, GetElementGroupsConstraint as G, HighlighterElementCreate as H, ImageElementCreate as I, InteractionsController as J, CreateLayersFromGeoJsonParams as K, LinkElementRead as L, MarkerElementCreate as M, NoteElementCreate as N, DataOnlyLayer as O, PathElementCreate as P, FeltTiledVectorSource as Q, GeoJsonDataVectorSource as R, GeoJsonFileVectorSource as S, TextElementCreate as T, UiControlsOptions as U, ViewportCenterZoom as V, GeoJsonUrlVectorSource as W, GetLayerGroupsConstraint as X, GetLayersConstraint as Y, GetRenderedFeaturesConstraint as Z, Layer as _, CircleElementRead as a, LngLatTuple as a$, LayerCommon as a0, LayerGroup as a1, LayerGroupChangeCallbackParams as a2, LayerProcessingStatus as a3, LegendItem as a4, LegendItemChangeCallbackParams as a5, LegendItemIdentifier as a6, LegendItemsConstraint as a7, RasterBand as a8, RasterLayer as a9, GetLayerCategoriesParams as aA, GetLayerHistogramBin as aB, GetLayerHistogramParams as aC, GetLayerPrecomputedCalculationParams as aD, GridConfig as aE, GridType as aF, MultiAggregationConfig as aG, PrecomputedAggregationMethod as aH, ValueConfiguration as aI, LayersController as aJ, MapDetails as aK, MiscController as aL, ElementGroupNode as aM, ElementNode as aN, EntityNode as aO, FeatureNode as aP, FeatureSelection as aQ, LayerGroupNode as aR, LayerNode as aS, SelectionController as aT, FeltBoundary as aU, FeltZoom as aV, GeoJsonFeature as aW, GeoJsonGeometry as aX, GeoJsonProperties as aY, LatLng as aZ, LineStringGeometry as a_, RasterLayerSource as aa, UpdateLayerParams as ab, VectorLayer as ac, LayerFeature as ad, RasterValue as ae, LayerSchema as af, LayerSchemaAttribute as ag, LayerSchemaBooleanAttribute as ah, LayerSchemaCommonAttribute as ai, LayerSchemaDateAttribute as aj, LayerSchemaDateTimeAttribute as ak, LayerSchemaNumericAttribute as al, LayerSchemaTextAttribute as am, FilterExpression as an, FilterLogicGate as ao, FilterTernary as ap, Filters as aq, GeometryFilter as ar, LayerBoundaries as as, LayerFilters as at, AggregatedGridConfig as au, AggregationConfig as av, AggregationMethod as aw, CountGridConfig as ax, GetLayerCalculationParams as ay, GetLayerCategoriesGroup as az, CircleElementUpdate as b, MultiLineStringGeometry as b0, MultiPointGeometry as b1, MultiPolygonGeometry as b2, PointGeometry as b3, PolygonGeometry as b4, SetVisibilityRequest as b5, SortConfig as b6, SortDirection as b7, CircleToolSettings as b8, ConfigurableToolType as b9, HighlighterToolSettings as ba, InputToolSettings as bb, LineToolSettings as bc, MarkerToolSettings as bd, NoteToolSettings as be, PinToolSettings as bf, PlaceFrame as bg, PlaceSymbol as bh, PolygonToolSettings as bi, RouteToolSettings as bj, TextToolSettings as bk, ToolSettingsChangeEvent as bl, ToolSettingsMap as bm, ToolType as bn, ToolsController as bo, UiOnMapInteractionsOptions as bp, UiController as bq, SetViewportCenterZoomParams as br, ViewportConstraints as bs, ViewportFitBoundsParams as bt, ViewportState as bu, ViewportController as bv, UnwrapPromise as bw, UnionToIntersection as bx, PromiseOrNot as by, ElementChangeCallbackParams as c, ElementCreate as d, ElementGroup as e, ElementGroupChangeCallbackParams as f, ElementUpdate as g, GetElementsConstraint as h, HighlighterElementRead as i, HighlighterElementUpdate as j, ImageElementRead as k, ImageElementUpdate as l, MarkerElementRead as m, MarkerElementUpdate as n, NoteElementRead as o, NoteElementUpdate as p, PathElementRead as q, PathElementUpdate as r, PlaceElementCreate as s, PlaceElementRead as t, PlaceElementUpdate as u, PolygonElementCreate as v, PolygonElementRead as w, PolygonElementUpdate as x, TextElementRead as y, zInfer as z };
|
|
@@ -4464,6 +4464,20 @@ interface LayerFeature {
|
|
|
4464
4464
|
* The identifier of the feature, unique within the layer.
|
|
4465
4465
|
*/
|
|
4466
4466
|
id: string | number;
|
|
4467
|
+
/**
|
|
4468
|
+
* Whether the id is deterministic.
|
|
4469
|
+
*
|
|
4470
|
+
* @remarks If the id is deterministic, it means that the id can be used to reference the feature
|
|
4471
|
+
* in the layer and therefore in all the SDK feature-related methods.
|
|
4472
|
+
*
|
|
4473
|
+
* When the id is not deterministic, the feature cannot be referenced on SDK methods like {@link FeltController.getFeature}
|
|
4474
|
+
* or {@link SelectionController.selectFeature}.
|
|
4475
|
+
*
|
|
4476
|
+
* For layers created and processed on Felt servers, the feature IDs are deterministic because Felt ensures every feature is correctly identified in vector tiles.
|
|
4477
|
+
* This cannot be guaranteed for layers created using a GeoJSON source on the SDK (see {@link LayersController.createLayersFromGeoJson})
|
|
4478
|
+
* where the ID will only be deterministic if GeoJSON features have an `id` property.
|
|
4479
|
+
*/
|
|
4480
|
+
isDeterministicId: boolean;
|
|
4467
4481
|
/**
|
|
4468
4482
|
* The identifier of the layer that the feature belongs to.
|
|
4469
4483
|
*/
|
|
@@ -6476,54 +6490,98 @@ interface GetLayerCalculationParams<T extends AggregationMethod | "count"> exten
|
|
|
6476
6490
|
aggregation: MultiAggregationConfig<T>;
|
|
6477
6491
|
}
|
|
6478
6492
|
declare const GridTypeSchema: z.ZodEnum<["h3"]>;
|
|
6493
|
+
/**
|
|
6494
|
+
* The type of grid to use for precomputed aggregate values.
|
|
6495
|
+
*
|
|
6496
|
+
* @group Stats
|
|
6497
|
+
*/
|
|
6479
6498
|
type GridType = z.infer<typeof GridTypeSchema>;
|
|
6480
|
-
declare const
|
|
6481
|
-
/**
|
|
6482
|
-
* The type of grid to use for the precomputed calculation.
|
|
6483
|
-
*/
|
|
6499
|
+
declare const CountGridConfigSchema: z.ZodObject<{
|
|
6484
6500
|
type: z.ZodEnum<["h3"]>;
|
|
6485
6501
|
/**
|
|
6486
6502
|
* The resolution of the grid to use for the precomputed calculation.
|
|
6487
6503
|
*/
|
|
6488
6504
|
resolution: z.ZodNumber;
|
|
6489
|
-
|
|
6490
|
-
* The method to use for the precomputed calculation.
|
|
6491
|
-
*/
|
|
6492
|
-
method: z.ZodEnum<["avg", "max", "min", "sum", "count"]>;
|
|
6493
|
-
/**
|
|
6494
|
-
* The attribute to use for the precomputed calculation. This can be omitted if the aggregation method is "count".
|
|
6495
|
-
* Must be a numeric attribute otherwise.
|
|
6496
|
-
*/
|
|
6497
|
-
attribute: z.ZodOptional<z.ZodString>;
|
|
6505
|
+
method: z.ZodEnum<["count"]>;
|
|
6498
6506
|
}, "strip", z.ZodTypeAny, {
|
|
6499
6507
|
type: "h3";
|
|
6500
|
-
method: "
|
|
6508
|
+
method: "count";
|
|
6501
6509
|
resolution: number;
|
|
6502
|
-
attribute?: string | undefined;
|
|
6503
6510
|
}, {
|
|
6504
6511
|
type: "h3";
|
|
6505
|
-
method: "
|
|
6512
|
+
method: "count";
|
|
6506
6513
|
resolution: number;
|
|
6507
|
-
attribute?: string | undefined;
|
|
6508
6514
|
}>;
|
|
6509
|
-
|
|
6515
|
+
/**
|
|
6516
|
+
* The grid configuration for a count-based precomputed aggregate value. Compared to the
|
|
6517
|
+
* {@link AggregatedGridConfig}, the `attribute` property is not required, because the count
|
|
6518
|
+
* is the same regardless of the attribute.
|
|
6519
|
+
*
|
|
6520
|
+
* Used inside {@link GetLayerPrecomputedCalculationParams}.
|
|
6521
|
+
*
|
|
6522
|
+
* @group Stats
|
|
6523
|
+
*/
|
|
6524
|
+
interface CountGridConfig extends zInfer<typeof CountGridConfigSchema> {
|
|
6510
6525
|
/**
|
|
6511
6526
|
* The type of grid to use for the precomputed calculation.
|
|
6512
6527
|
*/
|
|
6513
6528
|
type: GridType;
|
|
6529
|
+
/**
|
|
6530
|
+
* The method to use for the precomputed calculation, which in this case is always "count".
|
|
6531
|
+
*/
|
|
6532
|
+
method: Extract<PrecomputedAggregationMethod, "count">;
|
|
6533
|
+
}
|
|
6534
|
+
declare const AggregatedGridConfigSchema: z.ZodObject<{
|
|
6535
|
+
type: z.ZodEnum<["h3"]>;
|
|
6514
6536
|
/**
|
|
6515
6537
|
* The resolution of the grid to use for the precomputed calculation.
|
|
6516
6538
|
*/
|
|
6539
|
+
resolution: z.ZodNumber;
|
|
6540
|
+
method: z.ZodEnum<["avg", "max", "min", "sum"]>;
|
|
6541
|
+
/**
|
|
6542
|
+
* The attribute to use for the precomputed calculation.
|
|
6543
|
+
*
|
|
6544
|
+
* This must be a numeric attribute;
|
|
6545
|
+
*/
|
|
6546
|
+
attribute: z.ZodString;
|
|
6547
|
+
}, "strip", z.ZodTypeAny, {
|
|
6548
|
+
type: "h3";
|
|
6549
|
+
attribute: string;
|
|
6550
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6517
6551
|
resolution: number;
|
|
6552
|
+
}, {
|
|
6553
|
+
type: "h3";
|
|
6554
|
+
attribute: string;
|
|
6555
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6556
|
+
resolution: number;
|
|
6557
|
+
}>;
|
|
6558
|
+
/**
|
|
6559
|
+
* The grid configuration for an aggregated precomputed aggregate value. This requires
|
|
6560
|
+
* an `attribute` property, because the numeric aggregation requires it.
|
|
6561
|
+
*
|
|
6562
|
+
* If you just want to count the features in each grid cell, use the {@link CountGridConfig}
|
|
6563
|
+
* instead, where you are not required to specify an `attribute`.
|
|
6564
|
+
*
|
|
6565
|
+
* Used inside {@link GetLayerPrecomputedCalculationParams}.
|
|
6566
|
+
*
|
|
6567
|
+
* @group Stats
|
|
6568
|
+
*/
|
|
6569
|
+
interface AggregatedGridConfig extends zInfer<typeof AggregatedGridConfigSchema> {
|
|
6518
6570
|
/**
|
|
6519
|
-
* The
|
|
6571
|
+
* The type of grid to use for the precomputed calculation.
|
|
6520
6572
|
*/
|
|
6521
|
-
|
|
6573
|
+
type: GridType;
|
|
6522
6574
|
/**
|
|
6523
|
-
* The
|
|
6575
|
+
* The method to use for the precomputed calculation.
|
|
6524
6576
|
*/
|
|
6525
|
-
|
|
6577
|
+
method: Exclude<PrecomputedAggregationMethod, "count">;
|
|
6526
6578
|
}
|
|
6579
|
+
/**
|
|
6580
|
+
* Describes the type of grid to use for precomputed aggregate values.
|
|
6581
|
+
*
|
|
6582
|
+
* @group Stats
|
|
6583
|
+
*/
|
|
6584
|
+
type GridConfig = CountGridConfig | AggregatedGridConfig;
|
|
6527
6585
|
declare const GetLayerPrecomputedCalculationParamsSchema: z.ZodObject<{
|
|
6528
6586
|
/**
|
|
6529
6587
|
* The ID of the layer to calculate an aggregate value for.
|
|
@@ -6552,42 +6610,56 @@ declare const GetLayerPrecomputedCalculationParamsSchema: z.ZodObject<{
|
|
|
6552
6610
|
/**
|
|
6553
6611
|
* The type of grid to use for the precomputed calculation.
|
|
6554
6612
|
*/
|
|
6555
|
-
gridConfig: z.ZodObject<{
|
|
6556
|
-
/**
|
|
6557
|
-
* The type of grid to use for the precomputed calculation.
|
|
6558
|
-
*/
|
|
6613
|
+
gridConfig: z.ZodUnion<[z.ZodObject<{
|
|
6559
6614
|
type: z.ZodEnum<["h3"]>;
|
|
6560
6615
|
/**
|
|
6561
6616
|
* The resolution of the grid to use for the precomputed calculation.
|
|
6562
6617
|
*/
|
|
6563
6618
|
resolution: z.ZodNumber;
|
|
6619
|
+
method: z.ZodEnum<["count"]>;
|
|
6620
|
+
}, "strip", z.ZodTypeAny, {
|
|
6621
|
+
type: "h3";
|
|
6622
|
+
method: "count";
|
|
6623
|
+
resolution: number;
|
|
6624
|
+
}, {
|
|
6625
|
+
type: "h3";
|
|
6626
|
+
method: "count";
|
|
6627
|
+
resolution: number;
|
|
6628
|
+
}>, z.ZodObject<{
|
|
6629
|
+
type: z.ZodEnum<["h3"]>;
|
|
6564
6630
|
/**
|
|
6565
|
-
* The
|
|
6631
|
+
* The resolution of the grid to use for the precomputed calculation.
|
|
6566
6632
|
*/
|
|
6567
|
-
|
|
6633
|
+
resolution: z.ZodNumber;
|
|
6634
|
+
method: z.ZodEnum<["avg", "max", "min", "sum"]>;
|
|
6568
6635
|
/**
|
|
6569
|
-
* The attribute to use for the precomputed calculation.
|
|
6570
|
-
*
|
|
6636
|
+
* The attribute to use for the precomputed calculation.
|
|
6637
|
+
*
|
|
6638
|
+
* This must be a numeric attribute;
|
|
6571
6639
|
*/
|
|
6572
|
-
attribute: z.
|
|
6640
|
+
attribute: z.ZodString;
|
|
6573
6641
|
}, "strip", z.ZodTypeAny, {
|
|
6574
6642
|
type: "h3";
|
|
6575
|
-
|
|
6643
|
+
attribute: string;
|
|
6644
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6576
6645
|
resolution: number;
|
|
6577
|
-
attribute?: string | undefined;
|
|
6578
6646
|
}, {
|
|
6579
6647
|
type: "h3";
|
|
6580
|
-
|
|
6648
|
+
attribute: string;
|
|
6649
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6581
6650
|
resolution: number;
|
|
6582
|
-
|
|
6583
|
-
}>;
|
|
6651
|
+
}>]>;
|
|
6584
6652
|
}, "strip", z.ZodTypeAny, {
|
|
6585
6653
|
layerId: string;
|
|
6586
6654
|
gridConfig: {
|
|
6587
6655
|
type: "h3";
|
|
6588
|
-
method: "
|
|
6656
|
+
method: "count";
|
|
6657
|
+
resolution: number;
|
|
6658
|
+
} | {
|
|
6659
|
+
type: "h3";
|
|
6660
|
+
attribute: string;
|
|
6661
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6589
6662
|
resolution: number;
|
|
6590
|
-
attribute?: string | undefined;
|
|
6591
6663
|
};
|
|
6592
6664
|
boundary?: [number, number, number, number] | [number, number][] | {
|
|
6593
6665
|
type: "Polygon";
|
|
@@ -6601,9 +6673,13 @@ declare const GetLayerPrecomputedCalculationParamsSchema: z.ZodObject<{
|
|
|
6601
6673
|
layerId: string;
|
|
6602
6674
|
gridConfig: {
|
|
6603
6675
|
type: "h3";
|
|
6604
|
-
method: "
|
|
6676
|
+
method: "count";
|
|
6677
|
+
resolution: number;
|
|
6678
|
+
} | {
|
|
6679
|
+
type: "h3";
|
|
6680
|
+
attribute: string;
|
|
6681
|
+
method: "avg" | "max" | "min" | "sum";
|
|
6605
6682
|
resolution: number;
|
|
6606
|
-
attribute?: string | undefined;
|
|
6607
6683
|
};
|
|
6608
6684
|
boundary?: [number, number, number, number] | [number, number][] | {
|
|
6609
6685
|
type: "Polygon";
|
|
@@ -8705,4 +8781,4 @@ interface FeltController extends ViewportController, UiController, LayersControl
|
|
|
8705
8781
|
iframe: HTMLIFrameElement | null;
|
|
8706
8782
|
}
|
|
8707
8783
|
|
|
8708
|
-
export type { LayerChangeCallbackParams as $, TextElementUpdate as A, ElementsController as B, CircleElementCreate as C, MapInteractionEvent as D, Element as E, FeltController as F, GetElementGroupsConstraint as G, HighlighterElementCreate as H, ImageElementCreate as I, InteractionsController as J, CreateLayersFromGeoJsonParams as K, LinkElementRead as L, MarkerElementCreate as M, NoteElementCreate as N, DataOnlyLayer as O, PathElementCreate as P, FeltTiledVectorSource as Q, GeoJsonDataVectorSource as R, GeoJsonFileVectorSource as S, TextElementCreate as T, UiControlsOptions as U, ViewportCenterZoom as V, GeoJsonUrlVectorSource as W, GetLayerGroupsConstraint as X, GetLayersConstraint as Y, GetRenderedFeaturesConstraint as Z, Layer as _, CircleElementRead as a,
|
|
8784
|
+
export type { LayerChangeCallbackParams as $, TextElementUpdate as A, ElementsController as B, CircleElementCreate as C, MapInteractionEvent as D, Element as E, FeltController as F, GetElementGroupsConstraint as G, HighlighterElementCreate as H, ImageElementCreate as I, InteractionsController as J, CreateLayersFromGeoJsonParams as K, LinkElementRead as L, MarkerElementCreate as M, NoteElementCreate as N, DataOnlyLayer as O, PathElementCreate as P, FeltTiledVectorSource as Q, GeoJsonDataVectorSource as R, GeoJsonFileVectorSource as S, TextElementCreate as T, UiControlsOptions as U, ViewportCenterZoom as V, GeoJsonUrlVectorSource as W, GetLayerGroupsConstraint as X, GetLayersConstraint as Y, GetRenderedFeaturesConstraint as Z, Layer as _, CircleElementRead as a, LngLatTuple as a$, LayerCommon as a0, LayerGroup as a1, LayerGroupChangeCallbackParams as a2, LayerProcessingStatus as a3, LegendItem as a4, LegendItemChangeCallbackParams as a5, LegendItemIdentifier as a6, LegendItemsConstraint as a7, RasterBand as a8, RasterLayer as a9, GetLayerCategoriesParams as aA, GetLayerHistogramBin as aB, GetLayerHistogramParams as aC, GetLayerPrecomputedCalculationParams as aD, GridConfig as aE, GridType as aF, MultiAggregationConfig as aG, PrecomputedAggregationMethod as aH, ValueConfiguration as aI, LayersController as aJ, MapDetails as aK, MiscController as aL, ElementGroupNode as aM, ElementNode as aN, EntityNode as aO, FeatureNode as aP, FeatureSelection as aQ, LayerGroupNode as aR, LayerNode as aS, SelectionController as aT, FeltBoundary as aU, FeltZoom as aV, GeoJsonFeature as aW, GeoJsonGeometry as aX, GeoJsonProperties as aY, LatLng as aZ, LineStringGeometry as a_, RasterLayerSource as aa, UpdateLayerParams as ab, VectorLayer as ac, LayerFeature as ad, RasterValue as ae, LayerSchema as af, LayerSchemaAttribute as ag, LayerSchemaBooleanAttribute as ah, LayerSchemaCommonAttribute as ai, LayerSchemaDateAttribute as aj, LayerSchemaDateTimeAttribute as ak, LayerSchemaNumericAttribute as al, LayerSchemaTextAttribute as am, FilterExpression as an, FilterLogicGate as ao, FilterTernary as ap, Filters as aq, GeometryFilter as ar, LayerBoundaries as as, LayerFilters as at, AggregatedGridConfig as au, AggregationConfig as av, AggregationMethod as aw, CountGridConfig as ax, GetLayerCalculationParams as ay, GetLayerCategoriesGroup as az, CircleElementUpdate as b, MultiLineStringGeometry as b0, MultiPointGeometry as b1, MultiPolygonGeometry as b2, PointGeometry as b3, PolygonGeometry as b4, SetVisibilityRequest as b5, SortConfig as b6, SortDirection as b7, CircleToolSettings as b8, ConfigurableToolType as b9, HighlighterToolSettings as ba, InputToolSettings as bb, LineToolSettings as bc, MarkerToolSettings as bd, NoteToolSettings as be, PinToolSettings as bf, PlaceFrame as bg, PlaceSymbol as bh, PolygonToolSettings as bi, RouteToolSettings as bj, TextToolSettings as bk, ToolSettingsChangeEvent as bl, ToolSettingsMap as bm, ToolType as bn, ToolsController as bo, UiOnMapInteractionsOptions as bp, UiController as bq, SetViewportCenterZoomParams as br, ViewportConstraints as bs, ViewportFitBoundsParams as bt, ViewportState as bu, ViewportController as bv, UnwrapPromise as bw, UnionToIntersection as bx, PromiseOrNot as by, ElementChangeCallbackParams as c, ElementCreate as d, ElementGroup as e, ElementGroupChangeCallbackParams as f, ElementUpdate as g, GetElementsConstraint as h, HighlighterElementRead as i, HighlighterElementUpdate as j, ImageElementRead as k, ImageElementUpdate as l, MarkerElementRead as m, MarkerElementUpdate as n, NoteElementRead as o, NoteElementUpdate as p, PathElementRead as q, PathElementUpdate as r, PlaceElementCreate as s, PlaceElementRead as t, PlaceElementUpdate as u, PolygonElementCreate as v, PolygonElementRead as w, PolygonElementUpdate as x, TextElementRead as y, zInfer as z };
|