@xweather/mapsgl 1.8.0 → 1.8.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/mapsgl.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @xweather/mapsgl - 1.8.0
3
+ * @xweather/mapsgl - 1.8.2
4
4
  * (c) 2025 Vaisala Xweather
5
5
  * License: BSD
6
6
  * https://www.xweather.com
package/dist/mapsgl.d.ts CHANGED
@@ -689,6 +689,8 @@ export declare type TextMetrics_2 = {
689
689
  page: number;
690
690
  };
691
691
 
692
+ export declare const throwError: (message: string) => never;
693
+
692
694
  export declare const toColor: (v: any) => Color;
693
695
 
694
696
  export declare type TypedArray = Float64Array | Float32Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Uint8Array | Int8Array | Uint8ClampedArray;
@@ -3531,6 +3533,7 @@ get container(): HTMLElement;
3531
3533
  getSize(): Size;
3532
3534
  setSize(size: NumericalOrStringSize): void;
3533
3535
  getCenter(): Coordinate;
3536
+ getNonPaddedCenter(): Coordinate;
3534
3537
  setCenter(center: Coordinate): void;
3535
3538
  getBounds(): CoordinateBounds;
3536
3539
  getZoom(): number;
@@ -3668,6 +3671,7 @@ get needsViewportUpdate(): boolean;
3668
3671
  * Returns the map's geographical center coordinate.
3669
3672
  */
3670
3673
  getCenter(): Coordinate;
3674
+
3671
3675
  /**
3672
3676
  * Sets the map's geographical center coordinate.
3673
3677
  * @param center -
@@ -3913,6 +3917,8 @@ get needsViewportUpdate(): boolean;
3913
3917
  protected getViewportState(): MapViewState;
3914
3918
 
3915
3919
  protected fadeSymbolsIfNeeded(): void;
3920
+
3921
+ private setupLegendEvents;
3916
3922
 
3917
3923
  private _handleLayerLoadEvent;
3918
3924
  private _handleLayerShow;
@@ -4303,6 +4309,7 @@ export declare interface MapViewState {
4303
4309
  id: string;
4304
4310
  size: Size;
4305
4311
  center: Coordinate;
4312
+ nonPaddedCenter?: Coordinate;
4306
4313
  zoom: number;
4307
4314
  bounds: CoordinateBounds;
4308
4315
  pitch: number;
@@ -4311,6 +4318,12 @@ export declare interface MapViewState {
4311
4318
  fov: number;
4312
4319
  farZ?: number;
4313
4320
  nearZ?: number;
4321
+ padding?: {
4322
+ top: number;
4323
+ bottom: number;
4324
+ left: number;
4325
+ right: number;
4326
+ };
4314
4327
  /**
4315
4328
  * Scaler for the far plane, 1 unit equals to the distance from the camera to the edge of the screen. Default
4316
4329
  * `1.01`.