@feltmaps/js-sdk 1.11.1-next.0 → 1.12.0-next.0
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-YE0Hpi6u.d.cts → controller-BaF6nwyH.d.cts} +259 -8
- package/dist/{controller-YE0Hpi6u.d.ts → controller-BaF6nwyH.d.ts} +259 -8
- package/dist/controller-bundled.d.ts +259 -8
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +1062 -429
- package/dist/handler.d.ts +1062 -429
- package/dist/handler.js +1 -1
- package/llms-full.txt +66 -6
- package/package.json +1 -1
|
@@ -467,6 +467,40 @@ declare const SortConfigSchema: z.ZodObject<{
|
|
|
467
467
|
direction: "asc" | "desc";
|
|
468
468
|
}>;
|
|
469
469
|
|
|
470
|
+
declare const IsochroneSchema: z.ZodObject<{
|
|
471
|
+
origin: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
472
|
+
/**
|
|
473
|
+
* The mode of transport used to travel from the origin.
|
|
474
|
+
*/
|
|
475
|
+
mode: z.ZodEnum<["driving", "cycling", "walking"]>;
|
|
476
|
+
/**
|
|
477
|
+
* The travel time in whole minutes, from 1 to 120.
|
|
478
|
+
*/
|
|
479
|
+
minutes: z.ZodNumber;
|
|
480
|
+
}, "strip", z.ZodTypeAny, {
|
|
481
|
+
origin: [number, number];
|
|
482
|
+
mode: "driving" | "cycling" | "walking";
|
|
483
|
+
minutes: number;
|
|
484
|
+
}, {
|
|
485
|
+
origin: [number, number];
|
|
486
|
+
mode: "driving" | "cycling" | "walking";
|
|
487
|
+
minutes: number;
|
|
488
|
+
}>;
|
|
489
|
+
/**
|
|
490
|
+
* The travel time that an isochrone Polygon covers.
|
|
491
|
+
*
|
|
492
|
+
* @remarks
|
|
493
|
+
* Felt computes an isochrone's shape as the area reachable from `origin` within
|
|
494
|
+
* `minutes` by `mode`, following roads and paths.
|
|
495
|
+
*
|
|
496
|
+
* @group Elements
|
|
497
|
+
*/
|
|
498
|
+
interface IsochroneParams extends zInfer<typeof IsochroneSchema> {
|
|
499
|
+
/**
|
|
500
|
+
* The point that travel time is measured from.
|
|
501
|
+
*/
|
|
502
|
+
origin: LngLatTuple;
|
|
503
|
+
}
|
|
470
504
|
declare const PlaceCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
471
505
|
id: z.ZodOptional<z.ZodString>;
|
|
472
506
|
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -921,6 +955,82 @@ declare const PolygonCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
921
955
|
fillOpacity?: number | undefined;
|
|
922
956
|
areaMarker?: boolean | undefined;
|
|
923
957
|
}>;
|
|
958
|
+
declare const IsochronePolygonCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
959
|
+
id: z.ZodOptional<z.ZodString>;
|
|
960
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
961
|
+
color: z.ZodOptional<z.ZodString>;
|
|
962
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
963
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
964
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
965
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
966
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
967
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
968
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
969
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
970
|
+
type: z.ZodOptional<z.ZodLiteral<"Polygon">>;
|
|
971
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
972
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
973
|
+
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
974
|
+
}, "coordinates" | "id">, {
|
|
975
|
+
type: z.ZodLiteral<"Polygon">;
|
|
976
|
+
isochrone: z.ZodObject<{
|
|
977
|
+
origin: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
978
|
+
/**
|
|
979
|
+
* The mode of transport used to travel from the origin.
|
|
980
|
+
*/
|
|
981
|
+
mode: z.ZodEnum<["driving", "cycling", "walking"]>;
|
|
982
|
+
/**
|
|
983
|
+
* The travel time in whole minutes, from 1 to 120.
|
|
984
|
+
*/
|
|
985
|
+
minutes: z.ZodNumber;
|
|
986
|
+
}, "strip", z.ZodTypeAny, {
|
|
987
|
+
origin: [number, number];
|
|
988
|
+
mode: "driving" | "cycling" | "walking";
|
|
989
|
+
minutes: number;
|
|
990
|
+
}, {
|
|
991
|
+
origin: [number, number];
|
|
992
|
+
mode: "driving" | "cycling" | "walking";
|
|
993
|
+
minutes: number;
|
|
994
|
+
}>;
|
|
995
|
+
}>, "strip", z.ZodTypeAny, {
|
|
996
|
+
type: "Polygon";
|
|
997
|
+
isochrone: {
|
|
998
|
+
origin: [number, number];
|
|
999
|
+
mode: "driving" | "cycling" | "walking";
|
|
1000
|
+
minutes: number;
|
|
1001
|
+
};
|
|
1002
|
+
groupId?: string | null | undefined;
|
|
1003
|
+
color?: string | undefined;
|
|
1004
|
+
name?: string | null | undefined;
|
|
1005
|
+
description?: string | null | undefined;
|
|
1006
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1007
|
+
interaction?: "default" | "locked" | undefined;
|
|
1008
|
+
imageUrl?: string | null | undefined;
|
|
1009
|
+
strokeOpacity?: number | undefined;
|
|
1010
|
+
strokeWidth?: number | undefined;
|
|
1011
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1012
|
+
fillOpacity?: number | undefined;
|
|
1013
|
+
areaMarker?: boolean | undefined;
|
|
1014
|
+
}, {
|
|
1015
|
+
type: "Polygon";
|
|
1016
|
+
isochrone: {
|
|
1017
|
+
origin: [number, number];
|
|
1018
|
+
mode: "driving" | "cycling" | "walking";
|
|
1019
|
+
minutes: number;
|
|
1020
|
+
};
|
|
1021
|
+
groupId?: string | null | undefined;
|
|
1022
|
+
color?: string | undefined;
|
|
1023
|
+
name?: string | null | undefined;
|
|
1024
|
+
description?: string | null | undefined;
|
|
1025
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1026
|
+
interaction?: "default" | "locked" | undefined;
|
|
1027
|
+
imageUrl?: string | null | undefined;
|
|
1028
|
+
strokeOpacity?: number | undefined;
|
|
1029
|
+
strokeWidth?: number | undefined;
|
|
1030
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1031
|
+
fillOpacity?: number | undefined;
|
|
1032
|
+
areaMarker?: boolean | undefined;
|
|
1033
|
+
}>;
|
|
924
1034
|
declare const CircleCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
925
1035
|
id: z.ZodOptional<z.ZodString>;
|
|
926
1036
|
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1833,7 +1943,7 @@ declare const PathReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
1833
1943
|
endCaps: boolean;
|
|
1834
1944
|
interaction?: "default" | "locked" | undefined;
|
|
1835
1945
|
}>;
|
|
1836
|
-
declare const PolygonReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1946
|
+
declare const PolygonReadSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1837
1947
|
/**
|
|
1838
1948
|
* The unique identifier for the element.
|
|
1839
1949
|
*/
|
|
@@ -1936,7 +2046,27 @@ declare const PolygonReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.obj
|
|
|
1936
2046
|
* @default false
|
|
1937
2047
|
*/
|
|
1938
2048
|
areaMarker: z.ZodBoolean;
|
|
1939
|
-
}>, "coordinates">,
|
|
2049
|
+
}>, "coordinates">, {
|
|
2050
|
+
isochrone: z.ZodNullable<z.ZodObject<{
|
|
2051
|
+
origin: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
2052
|
+
/**
|
|
2053
|
+
* The mode of transport used to travel from the origin.
|
|
2054
|
+
*/
|
|
2055
|
+
mode: z.ZodEnum<["driving", "cycling", "walking"]>;
|
|
2056
|
+
/**
|
|
2057
|
+
* The travel time in whole minutes, from 1 to 120.
|
|
2058
|
+
*/
|
|
2059
|
+
minutes: z.ZodNumber;
|
|
2060
|
+
}, "strip", z.ZodTypeAny, {
|
|
2061
|
+
origin: [number, number];
|
|
2062
|
+
mode: "driving" | "cycling" | "walking";
|
|
2063
|
+
minutes: number;
|
|
2064
|
+
}, {
|
|
2065
|
+
origin: [number, number];
|
|
2066
|
+
mode: "driving" | "cycling" | "walking";
|
|
2067
|
+
minutes: number;
|
|
2068
|
+
}>>;
|
|
2069
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1940
2070
|
type: "Polygon";
|
|
1941
2071
|
id: string;
|
|
1942
2072
|
groupId: string | null;
|
|
@@ -1950,6 +2080,11 @@ declare const PolygonReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.obj
|
|
|
1950
2080
|
strokeStyle: "solid" | "dashed" | "dotted";
|
|
1951
2081
|
fillOpacity: number;
|
|
1952
2082
|
areaMarker: boolean;
|
|
2083
|
+
isochrone: {
|
|
2084
|
+
origin: [number, number];
|
|
2085
|
+
mode: "driving" | "cycling" | "walking";
|
|
2086
|
+
minutes: number;
|
|
2087
|
+
} | null;
|
|
1953
2088
|
interaction?: "default" | "locked" | undefined;
|
|
1954
2089
|
}, {
|
|
1955
2090
|
type: "Polygon";
|
|
@@ -1965,6 +2100,11 @@ declare const PolygonReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.obj
|
|
|
1965
2100
|
strokeStyle: "solid" | "dashed" | "dotted";
|
|
1966
2101
|
fillOpacity: number;
|
|
1967
2102
|
areaMarker: boolean;
|
|
2103
|
+
isochrone: {
|
|
2104
|
+
origin: [number, number];
|
|
2105
|
+
mode: "driving" | "cycling" | "walking";
|
|
2106
|
+
minutes: number;
|
|
2107
|
+
} | null;
|
|
1968
2108
|
interaction?: "default" | "locked" | undefined;
|
|
1969
2109
|
}>;
|
|
1970
2110
|
declare const CircleReadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -3151,7 +3291,7 @@ declare const PathUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3151
3291
|
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
3152
3292
|
endCaps?: boolean | undefined;
|
|
3153
3293
|
}>;
|
|
3154
|
-
declare const PolygonUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3294
|
+
declare const PolygonUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3155
3295
|
id: z.ZodOptional<z.ZodString>;
|
|
3156
3296
|
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3157
3297
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -3270,7 +3410,27 @@ declare const PolygonUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3270
3410
|
* @default false
|
|
3271
3411
|
*/
|
|
3272
3412
|
areaMarker: z.ZodBoolean;
|
|
3273
|
-
}>, "type" | "id">>,
|
|
3413
|
+
}>, "type" | "id">>, {
|
|
3414
|
+
isochrone: z.ZodOptional<z.ZodObject<{
|
|
3415
|
+
origin: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
3416
|
+
/**
|
|
3417
|
+
* The mode of transport used to travel from the origin.
|
|
3418
|
+
*/
|
|
3419
|
+
mode: z.ZodEnum<["driving", "cycling", "walking"]>;
|
|
3420
|
+
/**
|
|
3421
|
+
* The travel time in whole minutes, from 1 to 120.
|
|
3422
|
+
*/
|
|
3423
|
+
minutes: z.ZodNumber;
|
|
3424
|
+
}, "strip", z.ZodTypeAny, {
|
|
3425
|
+
origin: [number, number];
|
|
3426
|
+
mode: "driving" | "cycling" | "walking";
|
|
3427
|
+
minutes: number;
|
|
3428
|
+
}, {
|
|
3429
|
+
origin: [number, number];
|
|
3430
|
+
mode: "driving" | "cycling" | "walking";
|
|
3431
|
+
minutes: number;
|
|
3432
|
+
}>>;
|
|
3433
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3274
3434
|
type: "Polygon";
|
|
3275
3435
|
id: string;
|
|
3276
3436
|
coordinates?: [number, number][][] | undefined;
|
|
@@ -3286,6 +3446,11 @@ declare const PolygonUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3286
3446
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3287
3447
|
fillOpacity?: number | undefined;
|
|
3288
3448
|
areaMarker?: boolean | undefined;
|
|
3449
|
+
isochrone?: {
|
|
3450
|
+
origin: [number, number];
|
|
3451
|
+
mode: "driving" | "cycling" | "walking";
|
|
3452
|
+
minutes: number;
|
|
3453
|
+
} | undefined;
|
|
3289
3454
|
}, {
|
|
3290
3455
|
type: "Polygon";
|
|
3291
3456
|
id: string;
|
|
@@ -3302,6 +3467,11 @@ declare const PolygonUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3302
3467
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3303
3468
|
fillOpacity?: number | undefined;
|
|
3304
3469
|
areaMarker?: boolean | undefined;
|
|
3470
|
+
isochrone?: {
|
|
3471
|
+
origin: [number, number];
|
|
3472
|
+
mode: "driving" | "cycling" | "walking";
|
|
3473
|
+
minutes: number;
|
|
3474
|
+
} | undefined;
|
|
3305
3475
|
}>;
|
|
3306
3476
|
declare const CircleUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3307
3477
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -4186,6 +4356,21 @@ interface PathElementCreate extends zInfer<typeof PathCreateSchema> {
|
|
|
4186
4356
|
interface PolygonElementCreate extends zInfer<typeof PolygonCreateSchema> {
|
|
4187
4357
|
coordinates: LngLatTuple[][];
|
|
4188
4358
|
}
|
|
4359
|
+
/**
|
|
4360
|
+
* A Polygon element whose shape Felt computes from a travel time.
|
|
4361
|
+
*/
|
|
4362
|
+
interface IsochronePolygonElementCreate extends zInfer<typeof IsochronePolygonCreateSchema> {
|
|
4363
|
+
/**
|
|
4364
|
+
* The travel time to compute the polygon's shape from.
|
|
4365
|
+
*
|
|
4366
|
+
* @remarks
|
|
4367
|
+
* Felt computes the area reachable from `origin` within `minutes` by `mode` and
|
|
4368
|
+
* uses it as the polygon's shape. `createElement` rejects when travel time is not
|
|
4369
|
+
* available on the map, or when no area is reachable from the origin.
|
|
4370
|
+
*/
|
|
4371
|
+
isochrone: IsochroneParams;
|
|
4372
|
+
coordinates?: never;
|
|
4373
|
+
}
|
|
4189
4374
|
interface CircleElementCreate extends zInfer<typeof CircleCreateSchema> {
|
|
4190
4375
|
center: LngLatTuple;
|
|
4191
4376
|
}
|
|
@@ -4221,6 +4406,11 @@ interface PlaceElementRead extends zInfer<typeof PlaceReadSchema> {
|
|
|
4221
4406
|
interface PathElementRead extends zInfer<typeof PathReadSchema> {
|
|
4222
4407
|
}
|
|
4223
4408
|
interface PolygonElementRead extends zInfer<typeof PolygonReadSchema> {
|
|
4409
|
+
/**
|
|
4410
|
+
* The travel time the polygon's shape was computed from, or `null` for a
|
|
4411
|
+
* polygon drawn from coordinates.
|
|
4412
|
+
*/
|
|
4413
|
+
isochrone: IsochroneParams | null;
|
|
4224
4414
|
}
|
|
4225
4415
|
interface CircleElementRead extends zInfer<typeof CircleReadSchema> {
|
|
4226
4416
|
center: LngLatTuple;
|
|
@@ -4252,7 +4442,30 @@ interface PathElementUpdate extends zInfer<typeof PathUpdateSchema> {
|
|
|
4252
4442
|
coordinates?: LngLatTuple[][];
|
|
4253
4443
|
}
|
|
4254
4444
|
interface PolygonElementUpdate extends zInfer<typeof PolygonUpdateSchema> {
|
|
4445
|
+
/**
|
|
4446
|
+
* @remarks
|
|
4447
|
+
* Setting `coordinates` on an isochrone polygon replaces its computed shape and
|
|
4448
|
+
* clears its `isochrone`, which then reads back as `null`.
|
|
4449
|
+
*/
|
|
4255
4450
|
coordinates?: LngLatTuple[][];
|
|
4451
|
+
isochrone?: never;
|
|
4452
|
+
}
|
|
4453
|
+
/**
|
|
4454
|
+
* An update to a Polygon element that recomputes its shape from a travel time.
|
|
4455
|
+
*/
|
|
4456
|
+
interface IsochronePolygonElementUpdate extends zInfer<typeof PolygonUpdateSchema> {
|
|
4457
|
+
coordinates?: never;
|
|
4458
|
+
/**
|
|
4459
|
+
* A new travel time to recompute the polygon's shape from.
|
|
4460
|
+
*
|
|
4461
|
+
* @remarks
|
|
4462
|
+
* Felt replaces the polygon's shape with the area reachable from `origin` within
|
|
4463
|
+
* `minutes` by `mode`. Cannot be combined with `coordinates`. `updateElement`
|
|
4464
|
+
* rejects when travel time is not available on the map, or when no area is
|
|
4465
|
+
* reachable from the origin, and the polygon keeps its previous travel time and
|
|
4466
|
+
* shape.
|
|
4467
|
+
*/
|
|
4468
|
+
isochrone?: IsochroneParams;
|
|
4256
4469
|
}
|
|
4257
4470
|
interface CircleElementUpdate extends zInfer<typeof CircleUpdateSchema> {
|
|
4258
4471
|
center?: LngLatTuple;
|
|
@@ -4277,8 +4490,8 @@ interface NoteElementUpdate extends zInfer<typeof NoteUpdateSchema> {
|
|
|
4277
4490
|
}
|
|
4278
4491
|
interface ImageElementUpdate extends zInfer<typeof ImageUpdateSchema> {
|
|
4279
4492
|
}
|
|
4280
|
-
type ElementCreate = PlaceElementCreate | PathElementCreate | PolygonElementCreate | CircleElementCreate | MarkerElementCreate | HighlighterElementCreate | ImageElementCreate | TextElementCreate | NoteElementCreate;
|
|
4281
|
-
type ElementUpdate = PlaceElementUpdate | PathElementUpdate | PolygonElementUpdate | CircleElementUpdate | MarkerElementUpdate | HighlighterElementUpdate | TextElementUpdate | NoteElementUpdate | ImageElementUpdate;
|
|
4493
|
+
type ElementCreate = PlaceElementCreate | PathElementCreate | PolygonElementCreate | IsochronePolygonElementCreate | CircleElementCreate | MarkerElementCreate | HighlighterElementCreate | ImageElementCreate | TextElementCreate | NoteElementCreate;
|
|
4494
|
+
type ElementUpdate = PlaceElementUpdate | PathElementUpdate | PolygonElementUpdate | IsochronePolygonElementUpdate | CircleElementUpdate | MarkerElementUpdate | HighlighterElementUpdate | TextElementUpdate | NoteElementUpdate | ImageElementUpdate;
|
|
4282
4495
|
/**
|
|
4283
4496
|
* @group Elements
|
|
4284
4497
|
*/
|
|
@@ -4718,6 +4931,12 @@ interface ElementsController {
|
|
|
4718
4931
|
* @example
|
|
4719
4932
|
* ```typescript
|
|
4720
4933
|
* const element = await felt.createElement({ type: "Place", coordinates: [10, 10] });
|
|
4934
|
+
*
|
|
4935
|
+
* // Create a polygon covering everywhere within a 15 minute drive
|
|
4936
|
+
* const isochrone = await felt.createElement({
|
|
4937
|
+
* type: "Polygon",
|
|
4938
|
+
* isochrone: { origin: [-122.27, 37.8], mode: "driving", minutes: 15 },
|
|
4939
|
+
* });
|
|
4721
4940
|
* ```
|
|
4722
4941
|
*/
|
|
4723
4942
|
createElement(element: ElementCreate): Promise<Element>;
|
|
@@ -8926,7 +9145,7 @@ interface SelectionController {
|
|
|
8926
9145
|
}): Promise<void>;
|
|
8927
9146
|
}
|
|
8928
9147
|
|
|
8929
|
-
type ToolType = "circle" | "highlighter" | "line" | "link" | "marker" | "note" | "pin" | "polygon" | "route" | "text";
|
|
9148
|
+
type ToolType = "circle" | "highlighter" | "isochrone" | "line" | "link" | "marker" | "note" | "pin" | "polygon" | "route" | "text";
|
|
8930
9149
|
type ConfigurableToolType = Exclude<ToolType, "link">;
|
|
8931
9150
|
interface ShowToolInspectorSettings {
|
|
8932
9151
|
/**
|
|
@@ -9037,6 +9256,33 @@ declare const PolygonToolSettingsSchema: z.ZodObject<{
|
|
|
9037
9256
|
}>;
|
|
9038
9257
|
interface PolygonToolSettings extends zInfer<typeof PolygonToolSettingsSchema>, ShowToolInspectorSettings {
|
|
9039
9258
|
}
|
|
9259
|
+
declare const IsochroneToolSettingsSchema: z.ZodObject<{
|
|
9260
|
+
mode: z.ZodEnum<["driving", "cycling", "walking"]>;
|
|
9261
|
+
minutes: z.ZodNumber;
|
|
9262
|
+
color: z.ZodString;
|
|
9263
|
+
strokeOpacity: z.ZodNumber;
|
|
9264
|
+
strokeWidth: z.ZodNumber;
|
|
9265
|
+
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
9266
|
+
fillOpacity: z.ZodNumber;
|
|
9267
|
+
}, "strip", z.ZodTypeAny, {
|
|
9268
|
+
color: string;
|
|
9269
|
+
strokeOpacity: number;
|
|
9270
|
+
strokeWidth: number;
|
|
9271
|
+
strokeStyle: "solid" | "dashed" | "dotted";
|
|
9272
|
+
mode: "driving" | "cycling" | "walking";
|
|
9273
|
+
minutes: number;
|
|
9274
|
+
fillOpacity: number;
|
|
9275
|
+
}, {
|
|
9276
|
+
color: string;
|
|
9277
|
+
strokeOpacity: number;
|
|
9278
|
+
strokeWidth: number;
|
|
9279
|
+
strokeStyle: "solid" | "dashed" | "dotted";
|
|
9280
|
+
mode: "driving" | "cycling" | "walking";
|
|
9281
|
+
minutes: number;
|
|
9282
|
+
fillOpacity: number;
|
|
9283
|
+
}>;
|
|
9284
|
+
interface IsochroneToolSettings extends zInfer<typeof IsochroneToolSettingsSchema>, ShowToolInspectorSettings {
|
|
9285
|
+
}
|
|
9040
9286
|
declare const CircleToolSettingsSchema: z.ZodObject<{
|
|
9041
9287
|
color: z.ZodString;
|
|
9042
9288
|
strokeOpacity: z.ZodNumber;
|
|
@@ -9136,6 +9382,8 @@ type InputToolSettings = ({
|
|
|
9136
9382
|
} & Partial<RouteToolSettings>) | ({
|
|
9137
9383
|
tool: "polygon";
|
|
9138
9384
|
} & Partial<PolygonToolSettings>) | ({
|
|
9385
|
+
tool: "isochrone";
|
|
9386
|
+
} & Partial<IsochroneToolSettings>) | ({
|
|
9139
9387
|
tool: "circle";
|
|
9140
9388
|
} & Partial<CircleToolSettings>) | ({
|
|
9141
9389
|
tool: "marker";
|
|
@@ -9158,6 +9406,8 @@ type ToolSettingsChangeEvent = ({
|
|
|
9158
9406
|
} & RouteToolSettings) | ({
|
|
9159
9407
|
tool: "polygon";
|
|
9160
9408
|
} & PolygonToolSettings) | ({
|
|
9409
|
+
tool: "isochrone";
|
|
9410
|
+
} & IsochroneToolSettings) | ({
|
|
9161
9411
|
tool: "circle";
|
|
9162
9412
|
} & CircleToolSettings) | ({
|
|
9163
9413
|
tool: "marker";
|
|
@@ -9173,6 +9423,7 @@ type ToolSettingsMap = {
|
|
|
9173
9423
|
line: LineToolSettings;
|
|
9174
9424
|
route: RouteToolSettings;
|
|
9175
9425
|
polygon: PolygonToolSettings;
|
|
9426
|
+
isochrone: IsochroneToolSettings;
|
|
9176
9427
|
circle: CircleToolSettings;
|
|
9177
9428
|
marker: MarkerToolSettings;
|
|
9178
9429
|
highlighter: HighlighterToolSettings;
|
|
@@ -15359,4 +15610,4 @@ interface FeltController extends ViewportController, UiController, LayersControl
|
|
|
15359
15610
|
iframe: HTMLIFrameElement | null;
|
|
15360
15611
|
}
|
|
15361
15612
|
|
|
15362
|
-
export { type
|
|
15613
|
+
export { type CreateLayersFromGeoJsonParams as $, type PathElementRead as A, type BasemapsController as B, type ColorBasemap as C, type PathElementUpdate as D, type Element as E, type FeltController as F, type GetElementGroupsConstraint as G, type HighlighterElementCreate as H, type ImageElementCreate as I, type PlaceElementCreate as J, type PlaceElementRead as K, type LinkElementRead as L, type MarkerElementCreate as M, type NoteElementCreate as N, type PlaceElementUpdate as O, type PathElementCreate as P, type PolygonElementCreate as Q, type PolygonElementRead as R, type PolygonElementUpdate as S, type TextElementCreate as T, type UiControlsOptions as U, type ViewportCenterZoom as V, type TextElementRead as W, type TextElementUpdate as X, type ElementsController as Y, type MapInteractionEvent as Z, type InteractionsController as _, type Basemap as a, type GetRasterProfileResult as a$, type DataOnlyLayer as a0, type FeltTiledVectorSource as a1, type GeoJsonDataVectorSource as a2, type GeoJsonFileVectorSource as a3, type GeoJsonUrlVectorSource as a4, type GetLayerGroupsConstraint as a5, type GetLayersConstraint as a6, type GetRenderedFeaturesConstraint as a7, type Layer as a8, type LayerChangeCallbackParams as a9, type FilterTernary as aA, type Filters as aB, type GeometryFilter as aC, type LayerBoundaries as aD, type LayerFilters as aE, type AggregatedGridConfig as aF, type AggregationConfig as aG, type AggregationMethod as aH, type CountGridConfig as aI, type GetLayerCalculationParams as aJ, type GetLayerCategoriesGroup as aK, type GetLayerCategoriesParams as aL, type GetLayerHistogramBin as aM, type GetLayerHistogramParams as aN, type GetLayerPrecomputedCalculationParams as aO, type GridConfig as aP, type GridType as aQ, type MultiAggregationConfig as aR, type PrecomputedAggregationMethod as aS, type ValueConfiguration as aT, type GetRasterAggregatesParams as aU, type GetRasterAggregatesResult as aV, type GetRasterCategoriesParams as aW, type GetRasterCategoriesResult as aX, type GetRasterHistogramParams as aY, type GetRasterHistogramResult as aZ, type GetRasterProfileParams as a_, type LayerCommon as aa, type LayerGroup as ab, type LayerGroupChangeCallbackParams as ac, type LayerProcessingStatus as ad, type LegendDisplay as ae, type LegendItem as af, type LegendItemChangeCallbackParams as ag, type LegendItemIdentifier as ah, type LegendItemsConstraint as ai, type RasterBand as aj, type RasterLayer as ak, type RasterLayerSource as al, type UpdateLayerParams as am, type VectorLayer as an, type LayerFeature as ao, type RasterValue as ap, type LayerSchema as aq, type LayerSchemaAttribute as ar, type LayerSchemaBooleanAttribute as as, type LayerSchemaCommonAttribute as at, type LayerSchemaDateAttribute as au, type LayerSchemaDateTimeAttribute as av, type LayerSchemaNumericAttribute as aw, type LayerSchemaTextAttribute as ax, type FilterExpression as ay, type FilterLogicGate as az, type ColorBasemapInput as b, type UIButtonElementCreate as b$, type RasterAggregationMethod as b0, type RasterCategory as b1, type RasterHistogramBin as b2, type RasterPercentile as b3, type RasterProfileSample as b4, type LayersController as b5, type MapDetails as b6, type MiscController as b7, type ElementGroupNode as b8, type ElementNode as b9, type IsochroneToolSettings as bA, type LineToolSettings as bB, type MarkerToolSettings as bC, type NoteToolSettings as bD, type PinToolSettings as bE, type PlaceFrame as bF, type PlaceSymbol as bG, type PolygonToolSettings as bH, type RouteToolSettings as bI, type TextToolSettings as bJ, type ToolSettingsChangeEvent as bK, type ToolSettingsMap as bL, type ToolType as bM, type ToolsController as bN, type CreateActionTriggerParams as bO, type CreateFeatureActionParams as bP, type CreateOrUpdatePanelParams as bQ, type CreatePanelElementsParams as bR, type DeletePanelElementsParams as bS, type UiOnMapInteractionsOptions as bT, type UpdateActionTriggerParams as bU, type UpdateFeatureActionParams as bV, type UpdatePanelElementsParams as bW, type PlacementForUIElement as bX, type UIPanel as bY, type UIPanelCreateOrUpdate as bZ, type UIButtonElement as b_, type EntityNode as ba, type FeatureNode as bb, type FeatureSelection as bc, type LayerGroupNode as bd, type LayerNode as be, type SelectionController as bf, type FeltBoundary as bg, type FeltZoom as bh, type GeoJsonFeature as bi, type GeoJsonGeometry as bj, type GeoJsonProperties as bk, type LatLng as bl, type LineStringGeometry as bm, type LngLatTuple as bn, type MultiLineStringGeometry as bo, type MultiPointGeometry as bp, type MultiPolygonGeometry as bq, type PointGeometry as br, type PolygonGeometry as bs, type SetVisibilityRequest as bt, type SortConfig as bu, type SortDirection as bv, type CircleToolSettings as bw, type ConfigurableToolType as bx, type HighlighterToolSettings as by, type InputToolSettings as bz, type CustomTileBasemap as c, type UIButtonElementUpdate as c0, type UITextElement as c1, type UITextElementCreate as c2, type UITextElementUpdate as c3, type UIFlexibleSpaceElement as c4, type UIFlexibleSpaceElementCreate as c5, type UIFlexibleSpaceElementUpdate as c6, type UIDividerElement as c7, type UIDividerElementCreate as c8, type UIDividerElementUpdate as c9, type UIIframeElementUpdate as cA, type UIControlElementOption as cB, type UIActionTriggerCreate as cC, type UIFeatureAction as cD, type UIFeatureActionCreate as cE, type UiController as cF, type SetViewportCenterZoomParams as cG, type ViewportConstraints as cH, type ViewportFitBoundsParams as cI, type ViewportState as cJ, type ViewportController as cK, type UnwrapPromise as cL, uiActionTriggerSchema as cM, uiFeatureActionSchema as cN, type UIPanelElementCreateClonable as cO, uiPanelCreateSchema as cP, type UIButtonElementCreateClonable as cQ, type MakeClonableSchema as cR, type UIButtonRowElementCreateClonable as cS, type PromiseOrNot as cT, type UnionToIntersection as cU, type UITextInputElement as ca, type UITextInputElementCreate as cb, type UITextInputElementUpdate as cc, type UISelectElement as cd, type UISelectElementCreate as ce, type UISelectElementUpdate as cf, type UIPanelElement as cg, type UIPanelElementCreate as ch, type UIPanelElementUpdate as ci, type UIGridContainerElement as cj, type UIGridContainerElementCreate as ck, type UIGridContainerElementUpdate as cl, type UIButtonRowElement as cm, type UIButtonRowElementCreate as cn, type UIButtonRowElementUpdate as co, type UICheckboxGroupElement as cp, type UICheckboxGroupElementCreate as cq, type UICheckboxGroupElementUpdate as cr, type UIRadioGroupElement as cs, type UIRadioGroupElementCreate as ct, type UIRadioGroupElementUpdate as cu, type UIToggleGroupElement as cv, type UIToggleGroupElementCreate as cw, type UIToggleGroupElementUpdate as cx, type UIIframeElement as cy, type UIIframeElementCreate as cz, type CustomTileBasemapInput as d, type FeltBasemap as e, type CircleElementCreate as f, type CircleElementRead as g, type CircleElementUpdate as h, type ElementChangeCallbackParams as i, type ElementCreate as j, type ElementGroup as k, type ElementGroupChangeCallbackParams as l, type ElementUpdate as m, type GetElementsConstraint as n, type HighlighterElementRead as o, type HighlighterElementUpdate as p, type ImageElementRead as q, type ImageElementUpdate as r, type IsochroneParams as s, type IsochronePolygonElementCreate as t, type IsochronePolygonElementUpdate as u, type MarkerElementRead as v, type MarkerElementUpdate as w, type NoteElementRead as x, type NoteElementUpdate as y, type zInfer as z };
|