@gooddata/sdk-ui-geo 11.58.0-alpha.0 → 11.58.0-alpha.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/esm/next/layers/common/mapFacade.d.ts +21 -7
- package/esm/next/layers/common/mapFacade.d.ts.map +1 -1
- package/esm/next/layers/common/mapFacade.js +6 -6
- package/esm/next/map/runtime/mapInitialization.d.ts +3 -3
- package/esm/next/map/runtime/mapInitialization.d.ts.map +1 -1
- package/esm/next/map/runtime/mapInitialization.js +25 -5
- package/esm/next/map/runtime/mapWorker.d.ts +38 -0
- package/esm/next/map/runtime/mapWorker.d.ts.map +1 -0
- package/esm/next/map/runtime/mapWorker.js +35 -0
- package/esm/next/map/style/geoAssetProtocol.d.ts +46 -0
- package/esm/next/map/style/geoAssetProtocol.d.ts.map +1 -0
- package/esm/next/map/style/geoAssetProtocol.js +32 -0
- package/esm/next/map/style/styleEndpoint.d.ts.map +1 -1
- package/esm/next/map/style/styleEndpoint.js +8 -1
- package/esm/next/utils/mapLocale.d.ts +2 -2
- package/esm/next/utils/mapLocale.d.ts.map +1 -1
- package/esm/next/utils/mapLocale.js +1 -1
- package/package.json +17 -16
- package/styles/css/main.css +178 -130
- package/styles/css/main.css.map +1 -1
- package/worker/maplibre-gl-worker.js +10 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CircleLayerSpecification as MapLibreCircleLayerSpecification, ExpressionSpecification as MapLibreExpressionSpecification, FillLayerSpecification as MapLibreFillLayerSpecification, FilterSpecification as MapLibreFilterSpecification, GeoJSONSourceSpecification as MapLibreGeoJSONSourceSpecification, LineLayerSpecification as MapLibreLineLayerSpecification, LngLatBoundsLike as MapLibreLngLatBoundsLike, LngLatLike as MapLibreLngLatLike, Map as MapLibreMap, MapMouseEvent as MapLibreMapMouseEvent, MapOptions as MapLibreMapOptions, Popup as MapLibrePopup, PopupOptions as MapLibrePopupOptions, StyleSpecification as MapLibreStyleSpecification, SymbolLayerSpecification as MapLibreSymbolLayerSpecification } from "maplibre-gl";
|
|
1
|
+
import type { AddProtocolAction as MapLibreAddProtocolAction, CircleLayerSpecification as MapLibreCircleLayerSpecification, ExpressionSpecification as MapLibreExpressionSpecification, FillLayerSpecification as MapLibreFillLayerSpecification, FilterSpecification as MapLibreFilterSpecification, GeoJSONSourceSpecification as MapLibreGeoJSONSourceSpecification, LineLayerSpecification as MapLibreLineLayerSpecification, LngLatBoundsLike as MapLibreLngLatBoundsLike, LngLatLike as MapLibreLngLatLike, Map as MapLibreMap, MapEventType as MapLibreMapEventType, MapMouseEvent as MapLibreMapMouseEvent, MapOptions as MapLibreMapOptions, Popup as MapLibrePopup, PopupOptions as MapLibrePopupOptions, ProjectionSpecification as MapLibreProjectionSpecification, StyleSpecification as MapLibreStyleSpecification, SymbolLayerSpecification as MapLibreSymbolLayerSpecification } from "maplibre-gl";
|
|
2
2
|
import type { IGeoLngLatBounds } from "../../types/common/coordinates.js";
|
|
3
3
|
export type Map = MapLibreMap;
|
|
4
4
|
export type Popup = MapLibrePopup;
|
|
@@ -8,6 +8,7 @@ export type Popup = MapLibrePopup;
|
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
10
|
export type StyleSpecification = MapLibreStyleSpecification;
|
|
11
|
+
export type ProjectionSpecification = MapLibreProjectionSpecification;
|
|
11
12
|
export type GeoJSONSourceSpecification = MapLibreGeoJSONSourceSpecification;
|
|
12
13
|
export type FilterSpecification = MapLibreFilterSpecification;
|
|
13
14
|
export type ExpressionSpecification = MapLibreExpressionSpecification;
|
|
@@ -20,9 +21,22 @@ export type LngLatBoundsLike = MapLibreLngLatBoundsLike;
|
|
|
20
21
|
export type MapOptions = MapLibreMapOptions;
|
|
21
22
|
export type PopupOptions = MapLibrePopupOptions;
|
|
22
23
|
export type MapMouseEvent = MapLibreMapMouseEvent;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Signature of a handler registered through `maplibregl.addProtocol`.
|
|
26
|
+
*/
|
|
27
|
+
export type AddProtocolAction = MapLibreAddProtocolAction;
|
|
28
|
+
/**
|
|
29
|
+
* Name of a map-level MapLibre event.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export type MapEventName = keyof MapLibreMapEventType;
|
|
34
|
+
/**
|
|
35
|
+
* Listener of one map-level MapLibre event, typed by the event name.
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export type MapEventListener<T extends MapEventName> = (event: MapLibreMapEventType[T]) => void;
|
|
26
40
|
type AddSourceArgs = Parameters<MapLibreMap["addSource"]>;
|
|
27
41
|
type AddLayerArgs = Parameters<MapLibreMap["addLayer"]>;
|
|
28
42
|
type GetLayerArgs = Parameters<MapLibreMap["getLayer"]>;
|
|
@@ -53,9 +67,9 @@ type TilesLoadedResult = ReturnType<MapLibreMap["areTilesLoaded"]>;
|
|
|
53
67
|
export declare const MAP_FACADE_SOURCE: unique symbol;
|
|
54
68
|
export interface IMapFacade {
|
|
55
69
|
isStyleLoaded(): boolean;
|
|
56
|
-
once(
|
|
57
|
-
on(
|
|
58
|
-
off(
|
|
70
|
+
once<T extends MapEventName>(type: T, listener: MapEventListener<T>): IMapFacade;
|
|
71
|
+
on<T extends MapEventName>(type: T, listener: MapEventListener<T>): IMapFacade;
|
|
72
|
+
off<T extends MapEventName>(type: T, listener: MapEventListener<T>): IMapFacade;
|
|
59
73
|
addSource(...args: AddSourceArgs): IMapFacade;
|
|
60
74
|
addLayer(...args: AddLayerArgs): IMapFacade;
|
|
61
75
|
getLayer(...args: GetLayerArgs): ReturnType<MapLibreMap["getLayer"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapFacade.d.ts","sourceRoot":"","sources":["../../../../src/next/layers/common/mapFacade.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACR,wBAAwB,IAAI,gCAAgC,EAC5D,uBAAuB,IAAI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KAAK,GAAG,YAAY,CAiC5D;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,GAAG,WAAW,GAAG,SAAS,CAEzE"}
|
|
@@ -16,16 +16,16 @@ export const MAP_FACADE_SOURCE = Symbol("mapFacadeSource");
|
|
|
16
16
|
export function createMapFacade(map) {
|
|
17
17
|
const facade = {
|
|
18
18
|
isStyleLoaded: () => Boolean(map.isStyleLoaded()),
|
|
19
|
-
once: (
|
|
20
|
-
void map.once(
|
|
19
|
+
once: (type, listener) => {
|
|
20
|
+
void map.once(type, listener);
|
|
21
21
|
return facade;
|
|
22
22
|
},
|
|
23
|
-
on: (
|
|
24
|
-
map.on(
|
|
23
|
+
on: (type, listener) => {
|
|
24
|
+
map.on(type, listener);
|
|
25
25
|
return facade;
|
|
26
26
|
},
|
|
27
|
-
off: (
|
|
28
|
-
map.off(
|
|
27
|
+
off: (type, listener) => {
|
|
28
|
+
map.off(type, listener);
|
|
29
29
|
return facade;
|
|
30
30
|
},
|
|
31
31
|
addSource: (...args) => {
|
|
@@ -23,9 +23,9 @@ interface IMapInitializationOptions extends IMapOptions {
|
|
|
23
23
|
*
|
|
24
24
|
* @remarks
|
|
25
25
|
* This function handles the creation of a MapLibre GL map instance with all necessary
|
|
26
|
-
* configuration. It dynamically imports maplibre-gl to avoid bundling issues,
|
|
27
|
-
* the map with safe default options, and
|
|
28
|
-
* text rendering.
|
|
26
|
+
* configuration. It dynamically imports maplibre-gl to avoid bundling issues, points MapLibre
|
|
27
|
+
* at the worker script this package ships, sets up the map with safe default options, and
|
|
28
|
+
* ensures glyphs are properly configured for text rendering.
|
|
29
29
|
*
|
|
30
30
|
* @param options - Map initialization options including container, center, zoom, bounds, etc.
|
|
31
31
|
* @param locale - Optional MapLibre locale configuration for cooperative gestures
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapInitialization.d.ts","sourceRoot":"","sources":["../../../../src/next/map/runtime/mapInitialization.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,KAAK,EAGR,GAAG,IAAI,WAAW,EAElB,KAAK,EACR,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"mapInitialization.d.ts","sourceRoot":"","sources":["../../../../src/next/map/runtime/mapInitialization.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,KAAK,EAGR,GAAG,IAAI,WAAW,EAElB,KAAK,EACR,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAKhE,OAAO,EAGH,KAAK,sBAAsB,EAE9B,MAAM,gBAAgB,CAAC;AAGxB;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,WAAW,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC;IAEf,UAAU,EAAE,cAAc,aAAa,CAAC,CAAC;CAC5C;AAED,UAAU,yBAA0B,SAAQ,WAAW;IACnD,UAAU,CAAC,EAAE,sBAAsB,CAAC,YAAY,CAAC,CAAC;IAClD,eAAe,CAAC,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;IAC5D,eAAe,CAAC,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;CAC/D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,qBAAqB,CACvC,EACI,SAAS,EACT,MAAM,EACN,IAAI,EACJ,MAAM,EACN,aAAa,EACb,WAAkB,EAClB,UAAU,EACV,eAAe,EACf,eAAe,EACf,UAAU,EACV,6BAAoC,EACpC,qBAA6B,EAC7B,mBAA0B,EAC1B,OAAO,EACP,KAAK,EACL,OAAO,EACP,QAAQ,GACX,EAAE,yBAAyB,EAC5B,MAAM,CAAC,EAAE,eAAe,EACxB,OAAO,CAAC,EAAE,kBAAkB,GAC7B,OAAO,CAAC,cAAc,CAAC,CA6HzB"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
+
import { registerGeoAssetProtocol } from "../style/geoAssetProtocol.js";
|
|
2
3
|
import { fetchMapStyle } from "../style/styleEndpoint.js";
|
|
3
4
|
import { normalizeBoundsForShortestPath } from "./bounds.js";
|
|
4
5
|
import { DEFAULT_MAPLIBRE_OPTIONS, DEFAULT_TOOLTIP_OPTIONS, resolveMapInteractionOptions, } from "./mapConfig.js";
|
|
6
|
+
import { ensureMapLibreWorkerUrl } from "./mapWorker.js";
|
|
5
7
|
/**
|
|
6
8
|
* Initialize MapLibre GL map instance with options
|
|
7
9
|
*
|
|
8
10
|
* @remarks
|
|
9
11
|
* This function handles the creation of a MapLibre GL map instance with all necessary
|
|
10
|
-
* configuration. It dynamically imports maplibre-gl to avoid bundling issues,
|
|
11
|
-
* the map with safe default options, and
|
|
12
|
-
* text rendering.
|
|
12
|
+
* configuration. It dynamically imports maplibre-gl to avoid bundling issues, points MapLibre
|
|
13
|
+
* at the worker script this package ships, sets up the map with safe default options, and
|
|
14
|
+
* ensures glyphs are properly configured for text rendering.
|
|
13
15
|
*
|
|
14
16
|
* @param options - Map initialization options including container, center, zoom, bounds, etc.
|
|
15
17
|
* @param locale - Optional MapLibre locale configuration for cooperative gestures
|
|
@@ -19,6 +21,7 @@ import { DEFAULT_MAPLIBRE_OPTIONS, DEFAULT_TOOLTIP_OPTIONS, resolveMapInteractio
|
|
|
19
21
|
*/
|
|
20
22
|
export async function initializeMapLibreMap({ container, center, zoom, bounds, boundsPadding, interactive = true, dragRotate, pitchWithRotate, touchZoomRotate, navigation, enableGeoChartsViewportConfig = true, preserveDrawingBuffer = false, cooperativeGestures = true, maxZoom, style, basemap, language, }, locale, backend) {
|
|
21
23
|
const maplibregl = await import("maplibre-gl");
|
|
24
|
+
ensureMapLibreWorkerUrl(maplibregl);
|
|
22
25
|
const styleSpecification = style ?? (backend ? await fetchMapStyle(backend, basemap, language) : undefined);
|
|
23
26
|
if (!styleSpecification) {
|
|
24
27
|
throw new Error("Map style is required. Provide either a style option or a backend instance.");
|
|
@@ -29,14 +32,18 @@ export async function initializeMapLibreMap({ container, center, zoom, bounds, b
|
|
|
29
32
|
pitchWithRotate,
|
|
30
33
|
touchZoomRotate,
|
|
31
34
|
});
|
|
35
|
+
// Tiles, glyphs and sprites served by the backend are loaded through its authenticated call
|
|
36
|
+
// path. Assets on third-party hosts are still fetched by MapLibre directly.
|
|
37
|
+
const geoAssets = backend ? registerGeoAssetProtocol(maplibregl, backend) : undefined;
|
|
32
38
|
const mapOptions = {
|
|
33
39
|
...DEFAULT_MAPLIBRE_OPTIONS,
|
|
34
40
|
...interactionOptions,
|
|
35
41
|
style: styleSpecification,
|
|
36
42
|
container,
|
|
43
|
+
transformRequest: geoAssets?.transformRequest,
|
|
37
44
|
...getNavigationOptions(navigation, interactionOptions),
|
|
38
45
|
cooperativeGestures,
|
|
39
|
-
preserveDrawingBuffer,
|
|
46
|
+
canvasContextAttributes: { preserveDrawingBuffer },
|
|
40
47
|
...(cooperativeGestures && locale ? { locale } : {}),
|
|
41
48
|
};
|
|
42
49
|
if (maxZoom === null) {
|
|
@@ -65,7 +72,19 @@ export async function initializeMapLibreMap({ container, center, zoom, bounds, b
|
|
|
65
72
|
else if (typeof zoom === "number") {
|
|
66
73
|
mapOptions.zoom = zoom;
|
|
67
74
|
}
|
|
68
|
-
|
|
75
|
+
let map;
|
|
76
|
+
try {
|
|
77
|
+
map = new maplibregl.Map(mapOptions);
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
geoAssets?.release();
|
|
81
|
+
throw error;
|
|
82
|
+
}
|
|
83
|
+
// Released only once the map is removed: MapLibre still settles in-flight asset requests
|
|
84
|
+
// while it tears down, and those need the protocol to stay registered.
|
|
85
|
+
if (geoAssets) {
|
|
86
|
+
map.once("remove", geoAssets.release);
|
|
87
|
+
}
|
|
69
88
|
if (navigation !== undefined &&
|
|
70
89
|
interactionOptions.interactive &&
|
|
71
90
|
(navigation?.zoom ?? true) &&
|
|
@@ -91,6 +110,7 @@ export async function initializeMapLibreMap({ container, center, zoom, bounds, b
|
|
|
91
110
|
cleanup();
|
|
92
111
|
console.error("[initializeMapLibreMap] Map error", event);
|
|
93
112
|
reject(new Error(`MapLibre initialization error: ${getMaplibreErrorMessage(event)}`));
|
|
113
|
+
map.remove();
|
|
94
114
|
};
|
|
95
115
|
const tryResolveFromCurrentState = () => {
|
|
96
116
|
if (!isSettled && map.loaded() && map.isStyleLoaded()) {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Part of the maplibre-gl module this file uses. Declared structurally so that tests need not
|
|
3
|
+
* load the real bundle.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface IMapLibreWorkerConfig {
|
|
8
|
+
getWorkerUrl: () => string;
|
|
9
|
+
setWorkerUrl: (url: string) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* URL of the self-contained MapLibre worker script that this package ships.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* maplibre-gl 6 does not inline its web worker. It resolves `maplibre-gl-worker.mjs` next to its
|
|
16
|
+
* own module through `import.meta.url`, which does not survive bundling: Vite emits no worker file
|
|
17
|
+
* and webpack replaces `import.meta.url` with a build-time `file:` path. The build of this package
|
|
18
|
+
* bundles the worker and its shared chunk into `worker/maplibre-gl-worker.js` (see
|
|
19
|
+
* `scripts/build.sh`), and this URL points at that file relative to this module.
|
|
20
|
+
*
|
|
21
|
+
* The relative path is the same from `src/next/map/runtime/` and from `esm/next/map/runtime/`, so
|
|
22
|
+
* it also holds when a dev server aliases this package to its sources. Bundlers recognise the
|
|
23
|
+
* `new URL("...", import.meta.url)` pattern and emit the file as an asset.
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare function getBundledMapLibreWorkerUrl(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Points MapLibre at the bundled worker unless a worker URL is configured already.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* The worker URL is global to the maplibre-gl module. A consumer that called `setWorkerUrl`
|
|
33
|
+
* before the first map is created keeps its own worker.
|
|
34
|
+
*
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
export declare function ensureMapLibreWorkerUrl(maplibregl: IMapLibreWorkerConfig): void;
|
|
38
|
+
//# sourceMappingURL=mapWorker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapWorker.d.ts","sourceRoot":"","sources":["../../../../src/next/map/runtime/mapWorker.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,2BAA2B,IAAI,MAAM,CAEpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,qBAAqB,GAAG,IAAI,CAM/E"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
/**
|
|
3
|
+
* URL of the self-contained MapLibre worker script that this package ships.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* maplibre-gl 6 does not inline its web worker. It resolves `maplibre-gl-worker.mjs` next to its
|
|
7
|
+
* own module through `import.meta.url`, which does not survive bundling: Vite emits no worker file
|
|
8
|
+
* and webpack replaces `import.meta.url` with a build-time `file:` path. The build of this package
|
|
9
|
+
* bundles the worker and its shared chunk into `worker/maplibre-gl-worker.js` (see
|
|
10
|
+
* `scripts/build.sh`), and this URL points at that file relative to this module.
|
|
11
|
+
*
|
|
12
|
+
* The relative path is the same from `src/next/map/runtime/` and from `esm/next/map/runtime/`, so
|
|
13
|
+
* it also holds when a dev server aliases this package to its sources. Bundlers recognise the
|
|
14
|
+
* `new URL("...", import.meta.url)` pattern and emit the file as an asset.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export function getBundledMapLibreWorkerUrl() {
|
|
19
|
+
return new URL("../../../../worker/maplibre-gl-worker.js", import.meta.url).href;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Points MapLibre at the bundled worker unless a worker URL is configured already.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* The worker URL is global to the maplibre-gl module. A consumer that called `setWorkerUrl`
|
|
26
|
+
* before the first map is created keeps its own worker.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export function ensureMapLibreWorkerUrl(maplibregl) {
|
|
31
|
+
if (maplibregl.getWorkerUrl()) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
maplibregl.setWorkerUrl(getBundledMapLibreWorkerUrl());
|
|
35
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import type { AddProtocolAction, MapOptions } from "../../layers/common/mapFacade.js";
|
|
3
|
+
/**
|
|
4
|
+
* Part of the maplibre-gl module this file uses. Declared structurally so that tests need not
|
|
5
|
+
* load the real bundle.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export interface IMapLibreProtocolRegistry {
|
|
10
|
+
addProtocol: (customProtocol: string, loadFn: AddProtocolAction) => void;
|
|
11
|
+
removeProtocol: (customProtocol: string) => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Authenticated geo asset protocol of one map.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export interface IGeoAssetProtocol {
|
|
19
|
+
/**
|
|
20
|
+
* Map option that moves every GoodData-served asset URL onto the protocol. URLs on third-party
|
|
21
|
+
* hosts are left alone: MapLibre keeps fetching them directly, so they never receive credentials.
|
|
22
|
+
*/
|
|
23
|
+
transformRequest: NonNullable<MapOptions["transformRequest"]>;
|
|
24
|
+
/**
|
|
25
|
+
* Unregisters the protocol. Call once the map is removed.
|
|
26
|
+
*/
|
|
27
|
+
release: () => void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Registers a MapLibre protocol that loads tiles, glyphs and sprites through the backend's
|
|
31
|
+
* authenticated call path.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* MapLibre consults its protocol registry only for URLs whose scheme is neither `http(s):` nor
|
|
35
|
+
* `file:`, so the returned `transformRequest` swaps the scheme of GoodData-served asset URLs. The
|
|
36
|
+
* registry is global to the maplibre-gl module, not per map, so each map gets a protocol of its own,
|
|
37
|
+
* bound to its own backend.
|
|
38
|
+
*
|
|
39
|
+
* The handler runs on the main thread. MapLibre's workers do not know the protocol and forward the
|
|
40
|
+
* request to the main thread themselves, which is what lets the handler read the current credential
|
|
41
|
+
* at request time.
|
|
42
|
+
*
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
export declare function registerGeoAssetProtocol(maplibregl: IMapLibreProtocolRegistry, backend: IAnalyticalBackend): IGeoAssetProtocol;
|
|
46
|
+
//# sourceMappingURL=geoAssetProtocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geoAssetProtocol.d.ts","sourceRoot":"","sources":["../../../../src/next/map/style/geoAssetProtocol.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,2BAA2B,CAAC;AAEnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAItF;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACtC,WAAW,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACzE,cAAc,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;OAGG;IACH,gBAAgB,EAAE,WAAW,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC9D;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CACpC,UAAU,EAAE,yBAAyB,EACrC,OAAO,EAAE,kBAAkB,GAC5B,iBAAiB,CAgBnB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { isGeoAssetUrl } from "@gooddata/sdk-backend-spi";
|
|
3
|
+
let nextProtocolSeq = 0;
|
|
4
|
+
/**
|
|
5
|
+
* Registers a MapLibre protocol that loads tiles, glyphs and sprites through the backend's
|
|
6
|
+
* authenticated call path.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* MapLibre consults its protocol registry only for URLs whose scheme is neither `http(s):` nor
|
|
10
|
+
* `file:`, so the returned `transformRequest` swaps the scheme of GoodData-served asset URLs. The
|
|
11
|
+
* registry is global to the maplibre-gl module, not per map, so each map gets a protocol of its own,
|
|
12
|
+
* bound to its own backend.
|
|
13
|
+
*
|
|
14
|
+
* The handler runs on the main thread. MapLibre's workers do not know the protocol and forward the
|
|
15
|
+
* request to the main thread themselves, which is what lets the handler read the current credential
|
|
16
|
+
* at request time.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export function registerGeoAssetProtocol(maplibregl, backend) {
|
|
21
|
+
const protocol = `gdc-geo-${nextProtocolSeq++}`;
|
|
22
|
+
const prefix = `${protocol}://`;
|
|
23
|
+
maplibregl.addProtocol(protocol, ({ url, type }, abortController) => backend.geo().getAsset(url.slice(prefix.length), {
|
|
24
|
+
// MapLibre expects parsed JSON for "json" requests and raw bytes for everything else.
|
|
25
|
+
responseType: type === "json" ? "json" : "arraybuffer",
|
|
26
|
+
signal: abortController.signal,
|
|
27
|
+
}));
|
|
28
|
+
return {
|
|
29
|
+
transformRequest: (url) => (isGeoAssetUrl(url) ? { url: `${prefix}${url}` } : undefined),
|
|
30
|
+
release: () => maplibregl.removeProtocol(protocol),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styleEndpoint.d.ts","sourceRoot":"","sources":["../../../../src/next/map/style/styleEndpoint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAA6B,MAAM,2BAA2B,CAAC;AAE/F,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"styleEndpoint.d.ts","sourceRoot":"","sources":["../../../../src/next/map/style/styleEndpoint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAA6B,MAAM,2BAA2B,CAAC;AAE/F,OAAO,KAAK,EAA2B,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAyBpG;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,aAAa,CAC/B,OAAO,EAAE,kBAAkB,EAC3B,OAAO,CAAC,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,kBAAkB,CAAC,CAO7B"}
|
|
@@ -18,6 +18,7 @@ const KNOWN_SOURCE_TYPES = new Set([
|
|
|
18
18
|
* Tile-based source types that optionally define data via "tiles" or "url".
|
|
19
19
|
*/
|
|
20
20
|
const TILE_SOURCE_TYPES = new Set(["vector", "raster", "raster-dem"]);
|
|
21
|
+
const MERCATOR_PROJECTION = { type: "mercator" };
|
|
21
22
|
/**
|
|
22
23
|
* Fetches the MapLibre style specification from the backend.
|
|
23
24
|
*
|
|
@@ -39,7 +40,13 @@ export async function fetchMapStyle(backend, basemap, language) {
|
|
|
39
40
|
? await backend.geo().getDefaultStyle({ language })
|
|
40
41
|
: await fetchMapStyleByIdWithFallback(backend, basemap, language);
|
|
41
42
|
assertValidStyle(style);
|
|
42
|
-
return style;
|
|
43
|
+
return withMercatorProjection(style);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Forces a flat map: the AWS basemap styles declare a globe projection, which MapLibre 6 honours.
|
|
47
|
+
*/
|
|
48
|
+
function withMercatorProjection(style) {
|
|
49
|
+
return { ...style, projection: MERCATOR_PROJECTION };
|
|
43
50
|
}
|
|
44
51
|
async function fetchMapStyleByIdWithFallback(backend, basemap, language) {
|
|
45
52
|
try {
|
|
@@ -4,11 +4,11 @@ import { type IntlShape } from "react-intl";
|
|
|
4
4
|
*
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type IMapLibreLocale = {
|
|
8
8
|
"ScrollZoomBlocker.CtrlMessage": string;
|
|
9
9
|
"ScrollZoomBlocker.CmdMessage": string;
|
|
10
10
|
"TouchPanBlocker.Message": string;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
/**
|
|
13
13
|
* Generate MapLibre locale configuration with translated messages
|
|
14
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapLocale.d.ts","sourceRoot":"","sources":["../../../src/next/utils/mapLocale.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;GAIG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"mapLocale.d.ts","sourceRoot":"","sources":["../../../src/next/utils/mapLocale.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B,+BAA+B,EAAE,MAAM,CAAC;IACxC,8BAA8B,EAAE,MAAM,CAAC;IACvC,yBAAyB,EAAE,MAAM,CAAC;CACrC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,GAAG,eAAe,CAYvE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-geo",
|
|
3
|
-
"version": "11.58.0-alpha.
|
|
3
|
+
"version": "11.58.0-alpha.2",
|
|
4
4
|
"description": "GoodData.UI SDK - Geo Charts",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"esm/**/*.d.ts",
|
|
16
16
|
"esm/**/*.map",
|
|
17
17
|
"esm/**/*.svg",
|
|
18
|
-
"styles"
|
|
18
|
+
"styles",
|
|
19
|
+
"worker/*.js"
|
|
19
20
|
],
|
|
20
21
|
"type": "module",
|
|
21
22
|
"sideEffects": [
|
|
@@ -37,18 +38,18 @@
|
|
|
37
38
|
"default-import": "1.1.5",
|
|
38
39
|
"lodash-es": "^4.17.23",
|
|
39
40
|
"mapbox-gl": "^2.6.1",
|
|
40
|
-
"maplibre-gl": "^
|
|
41
|
+
"maplibre-gl": "^6.10.0",
|
|
41
42
|
"react-intl": "10.1.25",
|
|
42
43
|
"react-measure": "^2.5.2",
|
|
43
44
|
"ts-invariant": "0.10.3",
|
|
44
45
|
"tslib": "2.8.1",
|
|
45
46
|
"uuid": "11.1.1",
|
|
46
|
-
"@gooddata/sdk-backend-spi": "11.58.0-alpha.
|
|
47
|
-
"@gooddata/sdk-model": "11.58.0-alpha.
|
|
48
|
-
"@gooddata/sdk-ui": "11.58.0-alpha.
|
|
49
|
-
"@gooddata/sdk-ui-kit": "11.58.0-alpha.
|
|
50
|
-
"@gooddata/sdk-ui-theme-provider": "11.58.0-alpha.
|
|
51
|
-
"@gooddata/sdk-ui-vis-commons": "11.58.0-alpha.
|
|
47
|
+
"@gooddata/sdk-backend-spi": "11.58.0-alpha.2",
|
|
48
|
+
"@gooddata/sdk-model": "11.58.0-alpha.2",
|
|
49
|
+
"@gooddata/sdk-ui": "11.58.0-alpha.2",
|
|
50
|
+
"@gooddata/sdk-ui-kit": "11.58.0-alpha.2",
|
|
51
|
+
"@gooddata/sdk-ui-theme-provider": "11.58.0-alpha.2",
|
|
52
|
+
"@gooddata/sdk-ui-vis-commons": "11.58.0-alpha.2"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@microsoft/api-documenter": "7.30.10",
|
|
@@ -58,7 +59,6 @@
|
|
|
58
59
|
"@types/geojson": "^7946.0.16",
|
|
59
60
|
"@types/lodash-es": "4.17.12",
|
|
60
61
|
"@types/mapbox-gl": "2.7.21",
|
|
61
|
-
"@types/maplibre-gl": "1.14.0",
|
|
62
62
|
"@types/node": "24.12.0",
|
|
63
63
|
"@types/react": "19.1.11",
|
|
64
64
|
"@types/react-dom": "19.1.7",
|
|
@@ -82,15 +82,16 @@
|
|
|
82
82
|
"raf": "3.4.1",
|
|
83
83
|
"react": "19.1.1",
|
|
84
84
|
"react-dom": "19.1.1",
|
|
85
|
+
"rolldown": "1.0.3",
|
|
85
86
|
"sass": "1.104.1",
|
|
86
87
|
"stylelint": "16.26.1",
|
|
87
88
|
"typescript": "7.0.2",
|
|
88
|
-
"vitest": "4.1.
|
|
89
|
+
"vitest": "4.1.11",
|
|
89
90
|
"vitest-dom": "0.1.1",
|
|
90
|
-
"@gooddata/
|
|
91
|
-
"@gooddata/
|
|
92
|
-
"@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.
|
|
93
|
-
"@gooddata/stylelint-config": "11.58.0-alpha.
|
|
91
|
+
"@gooddata/oxlint-config": "11.58.0-alpha.2",
|
|
92
|
+
"@gooddata/eslint-config": "11.58.0-alpha.2",
|
|
93
|
+
"@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.2",
|
|
94
|
+
"@gooddata/stylelint-config": "11.58.0-alpha.2"
|
|
94
95
|
},
|
|
95
96
|
"peerDependencies": {
|
|
96
97
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
"build": "bash scripts/build.sh",
|
|
105
106
|
"build-check": "tsc",
|
|
106
107
|
"build-ts": "tsc -p tsconfig.build.json",
|
|
107
|
-
"clean": "../../common/scripts/clean-command-state.sh && rm -rf ci dist esm styles/css coverage temp *.log tsconfig.tsbuildinfo",
|
|
108
|
+
"clean": "../../common/scripts/clean-command-state.sh && rm -rf ci dist esm worker styles/css coverage temp *.log tsconfig.tsbuildinfo",
|
|
108
109
|
"dep-cruiser": "depcruise --validate .dependency-cruiser.js --output-type err-long src/",
|
|
109
110
|
"format-check": "oxfmt --check .",
|
|
110
111
|
"format-write": "oxfmt .",
|