@feltmaps/js-sdk 1.10.2-next.0 → 1.11.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.cjs +1 -1
- package/dist/client.d.cts +12 -2
- package/dist/client.d.ts +12 -2
- package/dist/client.js +1 -1
- package/dist/controller-bundled.d.ts +779 -3
- package/dist/{controller-DXsOpGmy.d.cts → controller-m5hIgJCz.d.cts} +779 -3
- package/dist/{controller-DXsOpGmy.d.ts → controller-m5hIgJCz.d.ts} +779 -3
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +504 -1
- package/dist/handler.d.ts +504 -1
- package/dist/handler.js +1 -1
- package/package.json +1 -1
package/dist/handler.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z, ZodError } from 'zod';
|
|
2
|
-
import { F as FeltController,
|
|
2
|
+
import { F as FeltController, cI as UnwrapPromise, z as zInfer, a as Basemap, i as ElementChangeCallbackParams, l as ElementGroupChangeCallbackParams, E as Element, W as MapInteractionEvent, ax as FilterTernary, a6 as LayerChangeCallbackParams, a9 as LayerGroupChangeCallbackParams, ad as LegendItemChangeCallbackParams, aB as LayerFilters, aA as LayerBoundaries, b8 as EntityNode, bJ as ToolType, bH as ToolSettingsChangeEvent, cJ as uiActionTriggerSchema, al as LayerFeature, cK as uiFeatureActionSchema, ce as UIPanelElementCreate, cL as UIPanelElementCreateClonable, cM as uiPanelCreateSchema, cN as UIButtonElementCreateClonable, cO as MakeClonableSchema, b$ as UITextElementCreate, c5 as UIDividerElementCreate, c8 as UITextInputElementCreate, cb as UISelectElementCreate, c2 as UIFlexibleSpaceElementCreate, cP as UIButtonRowElementCreateClonable, cn as UICheckboxGroupElementCreate, cq as UIRadioGroupElementCreate, ct as UIToggleGroupElementCreate, cw as UIIframeElementCreate, cG as ViewportState, cQ as PromiseOrNot, cR as UnionToIntersection } from './controller-m5hIgJCz.js';
|
|
3
3
|
|
|
4
4
|
type FeltControllerFunctions = Omit<FeltController, "iframe">;
|
|
5
5
|
type Method<TRequest extends {
|
|
@@ -3760,6 +3760,495 @@ declare const GetLayerPrecomputedCalculationMessage: z.ZodObject<{
|
|
|
3760
3760
|
};
|
|
3761
3761
|
type: "getPrecomputedAggregates";
|
|
3762
3762
|
}>;
|
|
3763
|
+
declare const GetRasterAggregatesMessage: z.ZodObject<{
|
|
3764
|
+
type: z.ZodLiteral<"getRasterAggregates">;
|
|
3765
|
+
params: z.ZodObject<z.objectUtil.extendShape<{
|
|
3766
|
+
layerId: z.ZodString;
|
|
3767
|
+
band: z.ZodString;
|
|
3768
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
3769
|
+
type: z.ZodLiteral<"Polygon">;
|
|
3770
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
3771
|
+
}, "strip", z.ZodTypeAny, {
|
|
3772
|
+
type: "Polygon";
|
|
3773
|
+
coordinates: [number, number][][];
|
|
3774
|
+
}, {
|
|
3775
|
+
type: "Polygon";
|
|
3776
|
+
coordinates: [number, number][][];
|
|
3777
|
+
}>, z.ZodObject<{
|
|
3778
|
+
type: z.ZodLiteral<"MultiPolygon">;
|
|
3779
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
|
|
3780
|
+
}, "strip", z.ZodTypeAny, {
|
|
3781
|
+
type: "MultiPolygon";
|
|
3782
|
+
coordinates: [number, number][][][];
|
|
3783
|
+
}, {
|
|
3784
|
+
type: "MultiPolygon";
|
|
3785
|
+
coordinates: [number, number][][][];
|
|
3786
|
+
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>, z.ZodObject<{
|
|
3787
|
+
type: z.ZodLiteral<"LineString">;
|
|
3788
|
+
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
3789
|
+
}, "strip", z.ZodTypeAny, {
|
|
3790
|
+
type: "LineString";
|
|
3791
|
+
coordinates: [number, number][];
|
|
3792
|
+
}, {
|
|
3793
|
+
type: "LineString";
|
|
3794
|
+
coordinates: [number, number][];
|
|
3795
|
+
}>, z.ZodObject<{
|
|
3796
|
+
type: z.ZodLiteral<"MultiLineString">;
|
|
3797
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
3798
|
+
}, "strip", z.ZodTypeAny, {
|
|
3799
|
+
type: "MultiLineString";
|
|
3800
|
+
coordinates: [number, number][][];
|
|
3801
|
+
}, {
|
|
3802
|
+
type: "MultiLineString";
|
|
3803
|
+
coordinates: [number, number][][];
|
|
3804
|
+
}>]>>;
|
|
3805
|
+
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
3806
|
+
}, {
|
|
3807
|
+
aggregation: z.ZodObject<{
|
|
3808
|
+
methods: z.ZodArray<z.ZodEnum<["avg", "min", "max", "sum", "median", "stddev", "majority", "area"]>, "many">;
|
|
3809
|
+
percentiles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
3810
|
+
}, "strip", z.ZodTypeAny, {
|
|
3811
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "stddev" | "majority" | "area")[];
|
|
3812
|
+
percentiles?: number[] | undefined;
|
|
3813
|
+
}, {
|
|
3814
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "stddev" | "majority" | "area")[];
|
|
3815
|
+
percentiles?: number[] | undefined;
|
|
3816
|
+
}>;
|
|
3817
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3818
|
+
layerId: string;
|
|
3819
|
+
aggregation: {
|
|
3820
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "stddev" | "majority" | "area")[];
|
|
3821
|
+
percentiles?: number[] | undefined;
|
|
3822
|
+
};
|
|
3823
|
+
band: string;
|
|
3824
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
3825
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
3826
|
+
type: "Polygon";
|
|
3827
|
+
coordinates: [number, number][][];
|
|
3828
|
+
} | {
|
|
3829
|
+
type: "MultiPolygon";
|
|
3830
|
+
coordinates: [number, number][][][];
|
|
3831
|
+
} | {
|
|
3832
|
+
type: "LineString";
|
|
3833
|
+
coordinates: [number, number][];
|
|
3834
|
+
} | {
|
|
3835
|
+
type: "MultiLineString";
|
|
3836
|
+
coordinates: [number, number][][];
|
|
3837
|
+
} | undefined;
|
|
3838
|
+
}, {
|
|
3839
|
+
layerId: string;
|
|
3840
|
+
aggregation: {
|
|
3841
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "stddev" | "majority" | "area")[];
|
|
3842
|
+
percentiles?: number[] | undefined;
|
|
3843
|
+
};
|
|
3844
|
+
band: string;
|
|
3845
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
3846
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
3847
|
+
type: "Polygon";
|
|
3848
|
+
coordinates: [number, number][][];
|
|
3849
|
+
} | {
|
|
3850
|
+
type: "MultiPolygon";
|
|
3851
|
+
coordinates: [number, number][][][];
|
|
3852
|
+
} | {
|
|
3853
|
+
type: "LineString";
|
|
3854
|
+
coordinates: [number, number][];
|
|
3855
|
+
} | {
|
|
3856
|
+
type: "MultiLineString";
|
|
3857
|
+
coordinates: [number, number][][];
|
|
3858
|
+
} | undefined;
|
|
3859
|
+
}>;
|
|
3860
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3861
|
+
params: {
|
|
3862
|
+
layerId: string;
|
|
3863
|
+
aggregation: {
|
|
3864
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "stddev" | "majority" | "area")[];
|
|
3865
|
+
percentiles?: number[] | undefined;
|
|
3866
|
+
};
|
|
3867
|
+
band: string;
|
|
3868
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
3869
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
3870
|
+
type: "Polygon";
|
|
3871
|
+
coordinates: [number, number][][];
|
|
3872
|
+
} | {
|
|
3873
|
+
type: "MultiPolygon";
|
|
3874
|
+
coordinates: [number, number][][][];
|
|
3875
|
+
} | {
|
|
3876
|
+
type: "LineString";
|
|
3877
|
+
coordinates: [number, number][];
|
|
3878
|
+
} | {
|
|
3879
|
+
type: "MultiLineString";
|
|
3880
|
+
coordinates: [number, number][][];
|
|
3881
|
+
} | undefined;
|
|
3882
|
+
};
|
|
3883
|
+
type: "getRasterAggregates";
|
|
3884
|
+
}, {
|
|
3885
|
+
params: {
|
|
3886
|
+
layerId: string;
|
|
3887
|
+
aggregation: {
|
|
3888
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "stddev" | "majority" | "area")[];
|
|
3889
|
+
percentiles?: number[] | undefined;
|
|
3890
|
+
};
|
|
3891
|
+
band: string;
|
|
3892
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
3893
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
3894
|
+
type: "Polygon";
|
|
3895
|
+
coordinates: [number, number][][];
|
|
3896
|
+
} | {
|
|
3897
|
+
type: "MultiPolygon";
|
|
3898
|
+
coordinates: [number, number][][][];
|
|
3899
|
+
} | {
|
|
3900
|
+
type: "LineString";
|
|
3901
|
+
coordinates: [number, number][];
|
|
3902
|
+
} | {
|
|
3903
|
+
type: "MultiLineString";
|
|
3904
|
+
coordinates: [number, number][][];
|
|
3905
|
+
} | undefined;
|
|
3906
|
+
};
|
|
3907
|
+
type: "getRasterAggregates";
|
|
3908
|
+
}>;
|
|
3909
|
+
declare const GetRasterHistogramMessage: z.ZodObject<{
|
|
3910
|
+
type: z.ZodLiteral<"getRasterHistogramData">;
|
|
3911
|
+
params: z.ZodObject<z.objectUtil.extendShape<{
|
|
3912
|
+
layerId: z.ZodString;
|
|
3913
|
+
band: z.ZodString;
|
|
3914
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
3915
|
+
type: z.ZodLiteral<"Polygon">;
|
|
3916
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
3917
|
+
}, "strip", z.ZodTypeAny, {
|
|
3918
|
+
type: "Polygon";
|
|
3919
|
+
coordinates: [number, number][][];
|
|
3920
|
+
}, {
|
|
3921
|
+
type: "Polygon";
|
|
3922
|
+
coordinates: [number, number][][];
|
|
3923
|
+
}>, z.ZodObject<{
|
|
3924
|
+
type: z.ZodLiteral<"MultiPolygon">;
|
|
3925
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
|
|
3926
|
+
}, "strip", z.ZodTypeAny, {
|
|
3927
|
+
type: "MultiPolygon";
|
|
3928
|
+
coordinates: [number, number][][][];
|
|
3929
|
+
}, {
|
|
3930
|
+
type: "MultiPolygon";
|
|
3931
|
+
coordinates: [number, number][][][];
|
|
3932
|
+
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>, z.ZodObject<{
|
|
3933
|
+
type: z.ZodLiteral<"LineString">;
|
|
3934
|
+
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
3935
|
+
}, "strip", z.ZodTypeAny, {
|
|
3936
|
+
type: "LineString";
|
|
3937
|
+
coordinates: [number, number][];
|
|
3938
|
+
}, {
|
|
3939
|
+
type: "LineString";
|
|
3940
|
+
coordinates: [number, number][];
|
|
3941
|
+
}>, z.ZodObject<{
|
|
3942
|
+
type: z.ZodLiteral<"MultiLineString">;
|
|
3943
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
3944
|
+
}, "strip", z.ZodTypeAny, {
|
|
3945
|
+
type: "MultiLineString";
|
|
3946
|
+
coordinates: [number, number][][];
|
|
3947
|
+
}, {
|
|
3948
|
+
type: "MultiLineString";
|
|
3949
|
+
coordinates: [number, number][][];
|
|
3950
|
+
}>]>>;
|
|
3951
|
+
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
3952
|
+
}, {
|
|
3953
|
+
steps: z.ZodUnion<[z.ZodObject<{
|
|
3954
|
+
type: z.ZodLiteral<"equal-intervals">;
|
|
3955
|
+
count: z.ZodNumber;
|
|
3956
|
+
}, "strip", z.ZodTypeAny, {
|
|
3957
|
+
type: "equal-intervals";
|
|
3958
|
+
count: number;
|
|
3959
|
+
}, {
|
|
3960
|
+
type: "equal-intervals";
|
|
3961
|
+
count: number;
|
|
3962
|
+
}>, z.ZodArray<z.ZodNumber, "many">]>;
|
|
3963
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3964
|
+
layerId: string;
|
|
3965
|
+
steps: number[] | {
|
|
3966
|
+
type: "equal-intervals";
|
|
3967
|
+
count: number;
|
|
3968
|
+
};
|
|
3969
|
+
band: string;
|
|
3970
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
3971
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
3972
|
+
type: "Polygon";
|
|
3973
|
+
coordinates: [number, number][][];
|
|
3974
|
+
} | {
|
|
3975
|
+
type: "MultiPolygon";
|
|
3976
|
+
coordinates: [number, number][][][];
|
|
3977
|
+
} | {
|
|
3978
|
+
type: "LineString";
|
|
3979
|
+
coordinates: [number, number][];
|
|
3980
|
+
} | {
|
|
3981
|
+
type: "MultiLineString";
|
|
3982
|
+
coordinates: [number, number][][];
|
|
3983
|
+
} | undefined;
|
|
3984
|
+
}, {
|
|
3985
|
+
layerId: string;
|
|
3986
|
+
steps: number[] | {
|
|
3987
|
+
type: "equal-intervals";
|
|
3988
|
+
count: number;
|
|
3989
|
+
};
|
|
3990
|
+
band: string;
|
|
3991
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
3992
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
3993
|
+
type: "Polygon";
|
|
3994
|
+
coordinates: [number, number][][];
|
|
3995
|
+
} | {
|
|
3996
|
+
type: "MultiPolygon";
|
|
3997
|
+
coordinates: [number, number][][][];
|
|
3998
|
+
} | {
|
|
3999
|
+
type: "LineString";
|
|
4000
|
+
coordinates: [number, number][];
|
|
4001
|
+
} | {
|
|
4002
|
+
type: "MultiLineString";
|
|
4003
|
+
coordinates: [number, number][][];
|
|
4004
|
+
} | undefined;
|
|
4005
|
+
}>;
|
|
4006
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4007
|
+
params: {
|
|
4008
|
+
layerId: string;
|
|
4009
|
+
steps: number[] | {
|
|
4010
|
+
type: "equal-intervals";
|
|
4011
|
+
count: number;
|
|
4012
|
+
};
|
|
4013
|
+
band: string;
|
|
4014
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
4015
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
4016
|
+
type: "Polygon";
|
|
4017
|
+
coordinates: [number, number][][];
|
|
4018
|
+
} | {
|
|
4019
|
+
type: "MultiPolygon";
|
|
4020
|
+
coordinates: [number, number][][][];
|
|
4021
|
+
} | {
|
|
4022
|
+
type: "LineString";
|
|
4023
|
+
coordinates: [number, number][];
|
|
4024
|
+
} | {
|
|
4025
|
+
type: "MultiLineString";
|
|
4026
|
+
coordinates: [number, number][][];
|
|
4027
|
+
} | undefined;
|
|
4028
|
+
};
|
|
4029
|
+
type: "getRasterHistogramData";
|
|
4030
|
+
}, {
|
|
4031
|
+
params: {
|
|
4032
|
+
layerId: string;
|
|
4033
|
+
steps: number[] | {
|
|
4034
|
+
type: "equal-intervals";
|
|
4035
|
+
count: number;
|
|
4036
|
+
};
|
|
4037
|
+
band: string;
|
|
4038
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
4039
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
4040
|
+
type: "Polygon";
|
|
4041
|
+
coordinates: [number, number][][];
|
|
4042
|
+
} | {
|
|
4043
|
+
type: "MultiPolygon";
|
|
4044
|
+
coordinates: [number, number][][][];
|
|
4045
|
+
} | {
|
|
4046
|
+
type: "LineString";
|
|
4047
|
+
coordinates: [number, number][];
|
|
4048
|
+
} | {
|
|
4049
|
+
type: "MultiLineString";
|
|
4050
|
+
coordinates: [number, number][][];
|
|
4051
|
+
} | undefined;
|
|
4052
|
+
};
|
|
4053
|
+
type: "getRasterHistogramData";
|
|
4054
|
+
}>;
|
|
4055
|
+
declare const GetRasterCategoriesMessage: z.ZodObject<{
|
|
4056
|
+
type: z.ZodLiteral<"getRasterCategoryData">;
|
|
4057
|
+
params: z.ZodObject<z.objectUtil.extendShape<{
|
|
4058
|
+
layerId: z.ZodString;
|
|
4059
|
+
band: z.ZodString;
|
|
4060
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
4061
|
+
type: z.ZodLiteral<"Polygon">;
|
|
4062
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
4063
|
+
}, "strip", z.ZodTypeAny, {
|
|
4064
|
+
type: "Polygon";
|
|
4065
|
+
coordinates: [number, number][][];
|
|
4066
|
+
}, {
|
|
4067
|
+
type: "Polygon";
|
|
4068
|
+
coordinates: [number, number][][];
|
|
4069
|
+
}>, z.ZodObject<{
|
|
4070
|
+
type: z.ZodLiteral<"MultiPolygon">;
|
|
4071
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
|
|
4072
|
+
}, "strip", z.ZodTypeAny, {
|
|
4073
|
+
type: "MultiPolygon";
|
|
4074
|
+
coordinates: [number, number][][][];
|
|
4075
|
+
}, {
|
|
4076
|
+
type: "MultiPolygon";
|
|
4077
|
+
coordinates: [number, number][][][];
|
|
4078
|
+
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>, z.ZodObject<{
|
|
4079
|
+
type: z.ZodLiteral<"LineString">;
|
|
4080
|
+
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
4081
|
+
}, "strip", z.ZodTypeAny, {
|
|
4082
|
+
type: "LineString";
|
|
4083
|
+
coordinates: [number, number][];
|
|
4084
|
+
}, {
|
|
4085
|
+
type: "LineString";
|
|
4086
|
+
coordinates: [number, number][];
|
|
4087
|
+
}>, z.ZodObject<{
|
|
4088
|
+
type: z.ZodLiteral<"MultiLineString">;
|
|
4089
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
4090
|
+
}, "strip", z.ZodTypeAny, {
|
|
4091
|
+
type: "MultiLineString";
|
|
4092
|
+
coordinates: [number, number][][];
|
|
4093
|
+
}, {
|
|
4094
|
+
type: "MultiLineString";
|
|
4095
|
+
coordinates: [number, number][][];
|
|
4096
|
+
}>]>>;
|
|
4097
|
+
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
4098
|
+
}, {
|
|
4099
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4100
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4101
|
+
layerId: string;
|
|
4102
|
+
band: string;
|
|
4103
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
4104
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
4105
|
+
type: "Polygon";
|
|
4106
|
+
coordinates: [number, number][][];
|
|
4107
|
+
} | {
|
|
4108
|
+
type: "MultiPolygon";
|
|
4109
|
+
coordinates: [number, number][][][];
|
|
4110
|
+
} | {
|
|
4111
|
+
type: "LineString";
|
|
4112
|
+
coordinates: [number, number][];
|
|
4113
|
+
} | {
|
|
4114
|
+
type: "MultiLineString";
|
|
4115
|
+
coordinates: [number, number][][];
|
|
4116
|
+
} | undefined;
|
|
4117
|
+
limit?: number | undefined;
|
|
4118
|
+
}, {
|
|
4119
|
+
layerId: string;
|
|
4120
|
+
band: string;
|
|
4121
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
4122
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
4123
|
+
type: "Polygon";
|
|
4124
|
+
coordinates: [number, number][][];
|
|
4125
|
+
} | {
|
|
4126
|
+
type: "MultiPolygon";
|
|
4127
|
+
coordinates: [number, number][][][];
|
|
4128
|
+
} | {
|
|
4129
|
+
type: "LineString";
|
|
4130
|
+
coordinates: [number, number][];
|
|
4131
|
+
} | {
|
|
4132
|
+
type: "MultiLineString";
|
|
4133
|
+
coordinates: [number, number][][];
|
|
4134
|
+
} | undefined;
|
|
4135
|
+
limit?: number | undefined;
|
|
4136
|
+
}>;
|
|
4137
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4138
|
+
params: {
|
|
4139
|
+
layerId: string;
|
|
4140
|
+
band: string;
|
|
4141
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
4142
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
4143
|
+
type: "Polygon";
|
|
4144
|
+
coordinates: [number, number][][];
|
|
4145
|
+
} | {
|
|
4146
|
+
type: "MultiPolygon";
|
|
4147
|
+
coordinates: [number, number][][][];
|
|
4148
|
+
} | {
|
|
4149
|
+
type: "LineString";
|
|
4150
|
+
coordinates: [number, number][];
|
|
4151
|
+
} | {
|
|
4152
|
+
type: "MultiLineString";
|
|
4153
|
+
coordinates: [number, number][][];
|
|
4154
|
+
} | undefined;
|
|
4155
|
+
limit?: number | undefined;
|
|
4156
|
+
};
|
|
4157
|
+
type: "getRasterCategoryData";
|
|
4158
|
+
}, {
|
|
4159
|
+
params: {
|
|
4160
|
+
layerId: string;
|
|
4161
|
+
band: string;
|
|
4162
|
+
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
4163
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
4164
|
+
type: "Polygon";
|
|
4165
|
+
coordinates: [number, number][][];
|
|
4166
|
+
} | {
|
|
4167
|
+
type: "MultiPolygon";
|
|
4168
|
+
coordinates: [number, number][][][];
|
|
4169
|
+
} | {
|
|
4170
|
+
type: "LineString";
|
|
4171
|
+
coordinates: [number, number][];
|
|
4172
|
+
} | {
|
|
4173
|
+
type: "MultiLineString";
|
|
4174
|
+
coordinates: [number, number][][];
|
|
4175
|
+
} | undefined;
|
|
4176
|
+
limit?: number | undefined;
|
|
4177
|
+
};
|
|
4178
|
+
type: "getRasterCategoryData";
|
|
4179
|
+
}>;
|
|
4180
|
+
declare const GetRasterProfileMessage: z.ZodObject<{
|
|
4181
|
+
type: z.ZodLiteral<"getRasterProfile">;
|
|
4182
|
+
params: z.ZodObject<{
|
|
4183
|
+
layerId: z.ZodString;
|
|
4184
|
+
band: z.ZodString;
|
|
4185
|
+
boundary: z.ZodUnion<[z.ZodObject<{
|
|
4186
|
+
type: z.ZodLiteral<"LineString">;
|
|
4187
|
+
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
4188
|
+
}, "strip", z.ZodTypeAny, {
|
|
4189
|
+
type: "LineString";
|
|
4190
|
+
coordinates: [number, number][];
|
|
4191
|
+
}, {
|
|
4192
|
+
type: "LineString";
|
|
4193
|
+
coordinates: [number, number][];
|
|
4194
|
+
}>, z.ZodObject<{
|
|
4195
|
+
type: z.ZodLiteral<"MultiLineString">;
|
|
4196
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
4197
|
+
}, "strip", z.ZodTypeAny, {
|
|
4198
|
+
type: "MultiLineString";
|
|
4199
|
+
coordinates: [number, number][][];
|
|
4200
|
+
}, {
|
|
4201
|
+
type: "MultiLineString";
|
|
4202
|
+
coordinates: [number, number][][];
|
|
4203
|
+
}>]>;
|
|
4204
|
+
}, "strip", z.ZodTypeAny, {
|
|
4205
|
+
layerId: string;
|
|
4206
|
+
boundary: {
|
|
4207
|
+
type: "LineString";
|
|
4208
|
+
coordinates: [number, number][];
|
|
4209
|
+
} | {
|
|
4210
|
+
type: "MultiLineString";
|
|
4211
|
+
coordinates: [number, number][][];
|
|
4212
|
+
};
|
|
4213
|
+
band: string;
|
|
4214
|
+
}, {
|
|
4215
|
+
layerId: string;
|
|
4216
|
+
boundary: {
|
|
4217
|
+
type: "LineString";
|
|
4218
|
+
coordinates: [number, number][];
|
|
4219
|
+
} | {
|
|
4220
|
+
type: "MultiLineString";
|
|
4221
|
+
coordinates: [number, number][][];
|
|
4222
|
+
};
|
|
4223
|
+
band: string;
|
|
4224
|
+
}>;
|
|
4225
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4226
|
+
params: {
|
|
4227
|
+
layerId: string;
|
|
4228
|
+
boundary: {
|
|
4229
|
+
type: "LineString";
|
|
4230
|
+
coordinates: [number, number][];
|
|
4231
|
+
} | {
|
|
4232
|
+
type: "MultiLineString";
|
|
4233
|
+
coordinates: [number, number][][];
|
|
4234
|
+
};
|
|
4235
|
+
band: string;
|
|
4236
|
+
};
|
|
4237
|
+
type: "getRasterProfile";
|
|
4238
|
+
}, {
|
|
4239
|
+
params: {
|
|
4240
|
+
layerId: string;
|
|
4241
|
+
boundary: {
|
|
4242
|
+
type: "LineString";
|
|
4243
|
+
coordinates: [number, number][];
|
|
4244
|
+
} | {
|
|
4245
|
+
type: "MultiLineString";
|
|
4246
|
+
coordinates: [number, number][][];
|
|
4247
|
+
};
|
|
4248
|
+
band: string;
|
|
4249
|
+
};
|
|
4250
|
+
type: "getRasterProfile";
|
|
4251
|
+
}>;
|
|
3763
4252
|
declare const GetLayerSchemaMessage: z.ZodObject<{
|
|
3764
4253
|
type: z.ZodLiteral<"getLayerSchema">;
|
|
3765
4254
|
params: z.ZodString;
|
|
@@ -3800,6 +4289,10 @@ type LayersSchema = {
|
|
|
3800
4289
|
getHistogramData: Method<zInfer<typeof GetLayerHistogramMessage>>;
|
|
3801
4290
|
getAggregates: Method<zInfer<typeof GetLayerCalculationMessage>>;
|
|
3802
4291
|
getPrecomputedAggregates: Method<zInfer<typeof GetLayerPrecomputedCalculationMessage>>;
|
|
4292
|
+
getRasterAggregates: Method<zInfer<typeof GetRasterAggregatesMessage>>;
|
|
4293
|
+
getRasterHistogramData: Method<zInfer<typeof GetRasterHistogramMessage>>;
|
|
4294
|
+
getRasterCategoryData: Method<zInfer<typeof GetRasterCategoriesMessage>>;
|
|
4295
|
+
getRasterProfile: Method<zInfer<typeof GetRasterProfileMessage>>;
|
|
3803
4296
|
getLayerSchema: Method<zInfer<typeof GetLayerSchemaMessage>>;
|
|
3804
4297
|
};
|
|
3805
4298
|
listeners: {
|
|
@@ -6351,39 +6844,49 @@ declare const UiControlsMessage: z.ZodObject<{
|
|
|
6351
6844
|
geolocation: z.ZodOptional<z.ZodBoolean>;
|
|
6352
6845
|
zoomControls: z.ZodOptional<z.ZodBoolean>;
|
|
6353
6846
|
scaleBar: z.ZodOptional<z.ZodBoolean>;
|
|
6847
|
+
rotation: z.ZodOptional<z.ZodBoolean>;
|
|
6848
|
+
contextMenu: z.ZodOptional<z.ZodBoolean>;
|
|
6354
6849
|
}, "strip", z.ZodTypeAny, {
|
|
6850
|
+
rotation?: boolean | undefined;
|
|
6355
6851
|
showLegend?: boolean | undefined;
|
|
6356
6852
|
cooperativeGestures?: boolean | undefined;
|
|
6357
6853
|
fullScreenButton?: boolean | undefined;
|
|
6358
6854
|
geolocation?: boolean | undefined;
|
|
6359
6855
|
zoomControls?: boolean | undefined;
|
|
6360
6856
|
scaleBar?: boolean | undefined;
|
|
6857
|
+
contextMenu?: boolean | undefined;
|
|
6361
6858
|
}, {
|
|
6859
|
+
rotation?: boolean | undefined;
|
|
6362
6860
|
showLegend?: boolean | undefined;
|
|
6363
6861
|
cooperativeGestures?: boolean | undefined;
|
|
6364
6862
|
fullScreenButton?: boolean | undefined;
|
|
6365
6863
|
geolocation?: boolean | undefined;
|
|
6366
6864
|
zoomControls?: boolean | undefined;
|
|
6367
6865
|
scaleBar?: boolean | undefined;
|
|
6866
|
+
contextMenu?: boolean | undefined;
|
|
6368
6867
|
}>;
|
|
6369
6868
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
6370
6869
|
params: {
|
|
6870
|
+
rotation?: boolean | undefined;
|
|
6371
6871
|
showLegend?: boolean | undefined;
|
|
6372
6872
|
cooperativeGestures?: boolean | undefined;
|
|
6373
6873
|
fullScreenButton?: boolean | undefined;
|
|
6374
6874
|
geolocation?: boolean | undefined;
|
|
6375
6875
|
zoomControls?: boolean | undefined;
|
|
6376
6876
|
scaleBar?: boolean | undefined;
|
|
6877
|
+
contextMenu?: boolean | undefined;
|
|
6377
6878
|
};
|
|
6378
6879
|
type: "updateUiControls";
|
|
6379
6880
|
}, {
|
|
6380
6881
|
params: {
|
|
6882
|
+
rotation?: boolean | undefined;
|
|
6381
6883
|
showLegend?: boolean | undefined;
|
|
6382
6884
|
cooperativeGestures?: boolean | undefined;
|
|
6383
6885
|
fullScreenButton?: boolean | undefined;
|
|
6384
6886
|
geolocation?: boolean | undefined;
|
|
6385
6887
|
zoomControls?: boolean | undefined;
|
|
6386
6888
|
scaleBar?: boolean | undefined;
|
|
6889
|
+
contextMenu?: boolean | undefined;
|
|
6387
6890
|
};
|
|
6388
6891
|
type: "updateUiControls";
|
|
6389
6892
|
}>;
|