@maptiler/sdk 4.1.0 → 4.2.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/config.d.ts CHANGED
@@ -80,6 +80,24 @@ declare class SdkConfig extends EventEmitter {
80
80
  * Get the fetch fucntion
81
81
  */
82
82
  get fetch(): FetchFunction | null;
83
+ /**
84
+ * Switch between the default `api.maptiler.com` host and the EU-based `api.maptiler.eu` host.
85
+ * Set to `false` to switch back to the default.
86
+ */
87
+ set useEuEndpoints(value: boolean);
88
+ /**
89
+ * Whether the EU-based `api.maptiler.eu` host is currently in use instead of the default `api.maptiler.com`
90
+ */
91
+ get useEuEndpoints(): boolean;
92
+ /**
93
+ * The host currently used for the MapTiler API requests (`api.maptiler.com` or `api.maptiler.eu`)
94
+ */
95
+ get apiHost(): string;
96
+ /**
97
+ * The base URL currently used for the MapTiler API requests
98
+ * (`https://api.maptiler.com/` or `https://api.maptiler.eu/`)
99
+ */
100
+ get apiURL(): string;
83
101
  /**
84
102
  * The default number of steps to sample for the experimental flyTo path preloading.
85
103
  */
@@ -2,14 +2,10 @@
2
2
  * Some default settings for the SDK
3
3
  */
4
4
  declare const defaults: {
5
- maptilerLogoURL: string;
6
5
  maptilerURL: string;
7
- maptilerApiHost: string;
8
- telemetryURL: string;
9
6
  rtlPluginURL: string;
10
7
  primaryLanguage: import('@maptiler/client').LanguageInfo;
11
8
  secondaryLanguage: import('@maptiler/client').LanguageInfo;
12
- terrainSourceURL: string;
13
9
  terrainSourceId: string;
14
10
  };
15
11
  export { defaults };
@@ -187,6 +187,7 @@ declare class CubemapLayer implements CustomLayerInterface {
187
187
  * @private
188
188
  */
189
189
  private animateOut;
190
+ private fireEvent;
190
191
  setAnimationActive(active: boolean): void;
191
192
  /**
192
193
  * Renders the cubemap layer to the WebGL context.
@@ -130,6 +130,7 @@ export declare class RadialGradientLayer implements CustomLayerInterface {
130
130
  */
131
131
  private animateOut;
132
132
  onRemove(_map: MapSDK, gl: WebGLRenderingContext | WebGL2RenderingContext): void;
133
+ private fireEvent;
133
134
  prerender(_gl: WebGLRenderingContext | WebGL2RenderingContext, _options: CustomRenderMethodInput): void;
134
135
  render(gl: WebGLRenderingContext | WebGL2RenderingContext, options: CustomRenderMethodInput): void;
135
136
  /**