@xweather/mapsgl 1.8.2 → 1.8.3-beta.1

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/mapsgl.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @xweather/mapsgl - 1.8.2
3
+ * @xweather/mapsgl - 1.8.3-beta.1
4
4
  * (c) 2025 Vaisala Xweather
5
5
  * License: BSD
6
6
  * https://www.xweather.com
package/dist/mapsgl.d.ts CHANGED
@@ -1898,16 +1898,16 @@ declare const CtoF: (c: number) => number;
1898
1898
  declare const CtoFUnit: (c: number) => number;
1899
1899
 
1900
1900
  export declare interface DataEvaluator {
1901
- title: string | ((value: any) => string);
1901
+ title: string | ((data: FeatureQueryResult) => string);
1902
1902
  alwaysShow?: boolean;
1903
- fn: (value: number | Record<string, number>) => string;
1903
+ fn: (data: FeatureQueryResult) => string;
1904
1904
  }
1905
1905
 
1906
1906
  export declare class DataInspector {
1907
1907
  readonly map: AnyMapController;
1908
1908
  constructor(map: AnyMapController);
1909
- query(coord: Coordinate): Record<string, any>;
1910
- queryPromise(coord: Coordinate): Promise<Record<string, any>>;
1909
+ query(coord: Coordinate): Record<string, FeatureQueryResult> | undefined;
1910
+ queryPromise(coord: Coordinate): Promise<Record<string, FeatureQueryResult>>;
1911
1911
  }
1912
1912
 
1913
1913
  export declare class DataInspectorControl {
@@ -1934,7 +1934,7 @@ export declare class DataInspectorControl {
1934
1934
  handleMouseOutEvent: (e: any) => void;
1935
1935
  _queryFeatures: (coord: Coordinate) => void;
1936
1936
  _queryFeaturesAsync: (coord: Coordinate) => Promise<void>;
1937
- _setFeatures(coord: Coordinate, features: Record<string, any>): void;
1937
+ _setFeatures(coord: Coordinate, features: Record<string, FeatureQueryResult>): void;
1938
1938
  }
1939
1939
 
1940
1940
  export declare interface DataInspectorControlOptions {
@@ -2071,6 +2071,14 @@ export declare interface Disposable {
2071
2071
  dispose(): void;
2072
2072
  }
2073
2073
 
2074
+ declare const DownloadPriority: {
2075
+ readonly critical: 0;
2076
+ readonly high: 1;
2077
+ readonly warm: 2;
2078
+ };
2079
+
2080
+ export declare type DownloadPriority = ObjectValue<typeof DownloadPriority>;
2081
+
2074
2082
  /**
2075
2083
  * Set of common easing functions.
2076
2084
  */
@@ -2320,9 +2328,12 @@ ExpressionInputType,
2320
2328
  ];
2321
2329
 
2322
2330
  export declare type FeatureQueryResult = {
2323
- value: number | Record<string, any>;
2331
+ value: number;
2332
+ angle?: number;
2333
+ unit?: string;
2334
+ features?: Array<FeatureData>;
2324
2335
  nodata: boolean;
2325
- } | Array<any>;
2336
+ };
2326
2337
 
2327
2338
  export declare type FillPattern = string | RemoteSymbolImage;
2328
2339
 
@@ -3517,6 +3528,13 @@ export declare interface MapAdapterOptions {
3517
3528
  * the animation if desired using `timeline.resume()` or `timeline.start()`.
3518
3529
  */
3519
3530
  resumeOnMoveEnd: boolean;
3531
+ /**
3532
+ * Whether to always preload data for the animation. If `true`, then the animation will always preload data
3533
+ * for the animation when the map viewport changes or when animatable layers are added, even if the animation
3534
+ * is not currently playing. This is useful for ensuring that the animation has data to play when it is started.
3535
+ * Default is `false`.
3536
+ */
3537
+ preloadData: boolean;
3520
3538
  }>;
3521
3539
  }
3522
3540
 
@@ -3908,6 +3926,8 @@ get needsViewportUpdate(): boolean;
3908
3926
  * then the timeline's current position will remain unchanged. Defaults to `true`.
3909
3927
  */
3910
3928
  setRefreshInterval(minutes: number, advanceToNow?: boolean): void;
3929
+ private _triggerPreloadAnimation;
3930
+ private debouncedPreloadAnimationData;
3911
3931
  preloadAnimationData(): Promise<void>;
3912
3932
  triggerRedraw(): void;
3913
3933
  protected getTransform(map: MapType, projection?: ProjectionType): MapTransform;
@@ -6077,6 +6097,10 @@ export declare type TileRequestOptions = {
6077
6097
  * The {@link AbortSignal} to use for the request.
6078
6098
  */
6079
6099
  signal: AbortSignal;
6100
+ /**
6101
+ * The download priority of the request.
6102
+ */
6103
+ priority: DownloadPriority;
6080
6104
  /**
6081
6105
  * Whether to reload the tile if it has already been loaded.
6082
6106
  */
@@ -6611,6 +6635,11 @@ export declare type TimeSeriesOperationPeriod = 'none' | 'hour' | 'day' | 'week'
6611
6635
  */
6612
6636
  export declare type TimeSeriesOperationType = 'none' | 'sum' | 'diff' | 'max' | 'min';
6613
6637
 
6638
+ export declare type TimestampledPixel = {
6639
+ interval: TimeInterval;
6640
+ pixel: RGB;
6641
+ };
6642
+
6614
6643
  /**
6615
6644
  * A unit converter function.
6616
6645
  */