@xweather/mapsgl 1.8.1 → 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 +1 -1
- package/dist/mapsgl.d.ts +45 -7
- package/dist/mapsgl.js +4 -4
- package/package.json +1 -1
package/dist/mapsgl.css
CHANGED
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 | ((
|
|
1901
|
+
title: string | ((data: FeatureQueryResult) => string);
|
|
1902
1902
|
alwaysShow?: boolean;
|
|
1903
|
-
fn: (
|
|
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,
|
|
1910
|
-
queryPromise(coord: Coordinate): Promise<Record<string,
|
|
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,
|
|
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
|
|
2331
|
+
value: number;
|
|
2332
|
+
angle?: number;
|
|
2333
|
+
unit?: string;
|
|
2334
|
+
features?: Array<FeatureData>;
|
|
2324
2335
|
nodata: boolean;
|
|
2325
|
-
}
|
|
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
|
|
|
@@ -3533,6 +3551,7 @@ get container(): HTMLElement;
|
|
|
3533
3551
|
getSize(): Size;
|
|
3534
3552
|
setSize(size: NumericalOrStringSize): void;
|
|
3535
3553
|
getCenter(): Coordinate;
|
|
3554
|
+
getNonPaddedCenter(): Coordinate;
|
|
3536
3555
|
setCenter(center: Coordinate): void;
|
|
3537
3556
|
getBounds(): CoordinateBounds;
|
|
3538
3557
|
getZoom(): number;
|
|
@@ -3670,6 +3689,7 @@ get needsViewportUpdate(): boolean;
|
|
|
3670
3689
|
* Returns the map's geographical center coordinate.
|
|
3671
3690
|
*/
|
|
3672
3691
|
getCenter(): Coordinate;
|
|
3692
|
+
|
|
3673
3693
|
/**
|
|
3674
3694
|
* Sets the map's geographical center coordinate.
|
|
3675
3695
|
* @param center -
|
|
@@ -3906,6 +3926,8 @@ get needsViewportUpdate(): boolean;
|
|
|
3906
3926
|
* then the timeline's current position will remain unchanged. Defaults to `true`.
|
|
3907
3927
|
*/
|
|
3908
3928
|
setRefreshInterval(minutes: number, advanceToNow?: boolean): void;
|
|
3929
|
+
private _triggerPreloadAnimation;
|
|
3930
|
+
private debouncedPreloadAnimationData;
|
|
3909
3931
|
preloadAnimationData(): Promise<void>;
|
|
3910
3932
|
triggerRedraw(): void;
|
|
3911
3933
|
protected getTransform(map: MapType, projection?: ProjectionType): MapTransform;
|
|
@@ -4307,6 +4329,7 @@ export declare interface MapViewState {
|
|
|
4307
4329
|
id: string;
|
|
4308
4330
|
size: Size;
|
|
4309
4331
|
center: Coordinate;
|
|
4332
|
+
nonPaddedCenter?: Coordinate;
|
|
4310
4333
|
zoom: number;
|
|
4311
4334
|
bounds: CoordinateBounds;
|
|
4312
4335
|
pitch: number;
|
|
@@ -4315,6 +4338,12 @@ export declare interface MapViewState {
|
|
|
4315
4338
|
fov: number;
|
|
4316
4339
|
farZ?: number;
|
|
4317
4340
|
nearZ?: number;
|
|
4341
|
+
padding?: {
|
|
4342
|
+
top: number;
|
|
4343
|
+
bottom: number;
|
|
4344
|
+
left: number;
|
|
4345
|
+
right: number;
|
|
4346
|
+
};
|
|
4318
4347
|
/**
|
|
4319
4348
|
* Scaler for the far plane, 1 unit equals to the distance from the camera to the edge of the screen. Default
|
|
4320
4349
|
* `1.01`.
|
|
@@ -6068,6 +6097,10 @@ export declare type TileRequestOptions = {
|
|
|
6068
6097
|
* The {@link AbortSignal} to use for the request.
|
|
6069
6098
|
*/
|
|
6070
6099
|
signal: AbortSignal;
|
|
6100
|
+
/**
|
|
6101
|
+
* The download priority of the request.
|
|
6102
|
+
*/
|
|
6103
|
+
priority: DownloadPriority;
|
|
6071
6104
|
/**
|
|
6072
6105
|
* Whether to reload the tile if it has already been loaded.
|
|
6073
6106
|
*/
|
|
@@ -6602,6 +6635,11 @@ export declare type TimeSeriesOperationPeriod = 'none' | 'hour' | 'day' | 'week'
|
|
|
6602
6635
|
*/
|
|
6603
6636
|
export declare type TimeSeriesOperationType = 'none' | 'sum' | 'diff' | 'max' | 'min';
|
|
6604
6637
|
|
|
6638
|
+
export declare type TimestampledPixel = {
|
|
6639
|
+
interval: TimeInterval;
|
|
6640
|
+
pixel: RGB;
|
|
6641
|
+
};
|
|
6642
|
+
|
|
6605
6643
|
/**
|
|
6606
6644
|
* A unit converter function.
|
|
6607
6645
|
*/
|