@loaders.gl/arcgis 5.0.0-alpha.8 → 5.0.0-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.
Files changed (88) hide show
  1. package/LICENSE +24 -0
  2. package/README.md +40 -12
  3. package/THIRD-PARTY-NOTICES.md +19 -0
  4. package/dist/arcgis/arcgis-capability-graph.d.ts +1 -1
  5. package/dist/arcgis/arcgis-capability-graph.d.ts.map +1 -1
  6. package/dist/arcgis/arcgis-feature-server-source-loader-types.d.ts +1 -1
  7. package/dist/arcgis/arcgis-feature-server-source-loader-types.d.ts.map +1 -1
  8. package/dist/arcgis/arcgis-feature-server-source-loader.d.ts +3 -3
  9. package/dist/arcgis/arcgis-feature-server-source-loader.d.ts.map +1 -1
  10. package/dist/arcgis/arcgis-feature-server-source-loader.js +3 -2
  11. package/dist/arcgis/arcgis-feature-server-source-loader.js.map +1 -1
  12. package/dist/arcgis/arcgis-image-server-source-loader-types.d.ts +1 -1
  13. package/dist/arcgis/arcgis-image-server-source-loader-types.d.ts.map +1 -1
  14. package/dist/arcgis/arcgis-image-server-source-loader.d.ts +3 -3
  15. package/dist/arcgis/arcgis-image-server-source-loader.d.ts.map +1 -1
  16. package/dist/arcgis/arcgis-image-server-source-loader.js +2 -2
  17. package/dist/arcgis/arcgis-image-server-source-loader.js.map +1 -1
  18. package/dist/arcgis/arcgis-image-tile-source-loader-types.d.ts +1 -1
  19. package/dist/arcgis/arcgis-image-tile-source-loader-types.d.ts.map +1 -1
  20. package/dist/arcgis/arcgis-image-tile-source-loader.d.ts +3 -3
  21. package/dist/arcgis/arcgis-image-tile-source-loader.d.ts.map +1 -1
  22. package/dist/arcgis/arcgis-image-tile-source-loader.js +7 -3
  23. package/dist/arcgis/arcgis-image-tile-source-loader.js.map +1 -1
  24. package/dist/arcgis/arcgis-map-tile-source-loader-types.d.ts +1 -1
  25. package/dist/arcgis/arcgis-map-tile-source-loader-types.d.ts.map +1 -1
  26. package/dist/arcgis/arcgis-map-tile-source-loader.d.ts +2 -2
  27. package/dist/arcgis/arcgis-map-tile-source-loader.d.ts.map +1 -1
  28. package/dist/arcgis/arcgis-map-tile-source-loader.js +15 -19
  29. package/dist/arcgis/arcgis-map-tile-source-loader.js.map +1 -1
  30. package/dist/arcgis/arcgis-scene-server-source-loader-types.d.ts +1 -1
  31. package/dist/arcgis/arcgis-scene-server-source-loader-types.d.ts.map +1 -1
  32. package/dist/arcgis/arcgis-scene-server-source-loader.d.ts +3 -3
  33. package/dist/arcgis/arcgis-scene-server-source-loader.d.ts.map +1 -1
  34. package/dist/arcgis/arcgis-scene-server-source-loader.js +2 -2
  35. package/dist/arcgis/arcgis-scene-server-source-loader.js.map +1 -1
  36. package/dist/arcgis/arcgis-tile-grid.d.ts +5 -0
  37. package/dist/arcgis/arcgis-tile-grid.d.ts.map +1 -0
  38. package/dist/arcgis/arcgis-tile-grid.js +43 -0
  39. package/dist/arcgis/arcgis-tile-grid.js.map +1 -0
  40. package/dist/arcgis/arcgis-vector-tile-server-source-loader-types.d.ts +1 -1
  41. package/dist/arcgis/arcgis-vector-tile-server-source-loader-types.d.ts.map +1 -1
  42. package/dist/arcgis/arcgis-vector-tile-server-source-loader.d.ts +5 -3
  43. package/dist/arcgis/arcgis-vector-tile-server-source-loader.d.ts.map +1 -1
  44. package/dist/arcgis/arcgis-vector-tile-server-source-loader.js +20 -6
  45. package/dist/arcgis/arcgis-vector-tile-server-source-loader.js.map +1 -1
  46. package/dist/arcgis-feature-query-types.d.ts +2 -2
  47. package/dist/arcgis-feature-query-types.d.ts.map +1 -1
  48. package/dist/arcgis-items.d.ts +64 -0
  49. package/dist/arcgis-items.d.ts.map +1 -0
  50. package/dist/arcgis-items.js +137 -0
  51. package/dist/arcgis-items.js.map +1 -0
  52. package/dist/arcgis-source-types.d.ts +8 -2
  53. package/dist/arcgis-source-types.d.ts.map +1 -1
  54. package/dist/arcgis-source-types.js.map +1 -1
  55. package/dist/authentication.d.ts +9 -3
  56. package/dist/authentication.d.ts.map +1 -1
  57. package/dist/authentication.js +79 -9
  58. package/dist/authentication.js.map +1 -1
  59. package/dist/bundled.d.ts +8 -7
  60. package/dist/bundled.d.ts.map +1 -1
  61. package/dist/bundled.js +1 -0
  62. package/dist/bundled.js.map +1 -1
  63. package/dist/index.cjs +14074 -16905
  64. package/dist/index.cjs.map +3 -3
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.d.ts.map +1 -1
  67. package/package.json +15 -10
  68. package/src/arcgis/arcgis-capability-graph.ts +1 -1
  69. package/src/arcgis/arcgis-feature-query.ts +1 -1
  70. package/src/arcgis/arcgis-feature-server-source-loader-types.ts +1 -1
  71. package/src/arcgis/arcgis-feature-server-source-loader.ts +6 -8
  72. package/src/arcgis/arcgis-image-server-source-loader-types.ts +1 -1
  73. package/src/arcgis/arcgis-image-server-source-loader.ts +4 -4
  74. package/src/arcgis/arcgis-image-tile-source-loader-types.ts +1 -1
  75. package/src/arcgis/arcgis-image-tile-source-loader.ts +12 -5
  76. package/src/arcgis/arcgis-map-tile-source-loader-types.ts +1 -1
  77. package/src/arcgis/arcgis-map-tile-source-loader.ts +24 -21
  78. package/src/arcgis/arcgis-scene-server-source-loader-types.ts +1 -1
  79. package/src/arcgis/arcgis-scene-server-source-loader.ts +4 -4
  80. package/src/arcgis/arcgis-tile-grid.ts +55 -0
  81. package/src/arcgis/arcgis-vector-tile-server-source-loader-types.ts +1 -1
  82. package/src/arcgis/arcgis-vector-tile-server-source-loader.ts +27 -8
  83. package/src/arcgis-feature-query-types.ts +2 -2
  84. package/src/arcgis-items.ts +233 -0
  85. package/src/arcgis-source-types.ts +11 -3
  86. package/src/authentication.ts +93 -10
  87. package/src/bundled.ts +35 -1
  88. package/src/index.ts +7 -0
@@ -1,11 +1,17 @@
1
- import type { RequestCredential, TokenValue } from '@loaders.gl/loader-utils';
2
- import { TokenAuthentication } from '@loaders.gl/loader-utils';
3
- /** Declarative ArcGIS token authentication. */
1
+ import type { AuthenticatedFetchOptions, FetchLike, RequestCredential, TokenValue } from '@loaders.gl/core/loader-utils';
2
+ import { TokenAuthentication } from '@loaders.gl/core/loader-utils';
3
+ /** ArcGIS token authentication independent of the application's sign-in SDK. */
4
4
  export declare class ArcGISAuthentication extends TokenAuthentication {
5
5
  /** Discriminator used in `core.credentials`. */
6
6
  static readonly type = "arcgis";
7
7
  /** Creates an exact-origin ArcGIS credential. */
8
8
  constructor(options: ArcGISCredentialOptions);
9
+ /**
10
+ * Creates a fetch transport for discovery and service requests.
11
+ * Refreshes are isolated by trusted origin so server-specific tokens cannot cross hosts.
12
+ * Reuse the returned transport to deduplicate concurrent refreshes within each origin.
13
+ */
14
+ createFetch(options?: Pick<AuthenticatedFetchOptions, 'fetch' | 'fetchOptions'>): FetchLike;
9
15
  }
10
16
  /** Options for an ArcGIS REST service credential. */
11
17
  export type ArcGISCredentialOptions = {
@@ -1 +1 @@
1
- {"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../src/authentication.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,iBAAiB,EAAE,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAC,mBAAmB,EAAiC,MAAM,0BAA0B,CAAC;AAE7F,+CAA+C;AAC/C,qBAAa,oBAAqB,SAAQ,mBAAmB;IAC3D,gDAAgD;IAChD,MAAM,CAAC,QAAQ,CAAC,IAAI,YAAY;IAChC,iDAAiD;gBACrC,OAAO,EAAE,uBAAuB;CAG7C;AAED,qDAAqD;AACrD,MAAM,MAAM,uBAAuB,GAAG;IACpC,0DAA0D;IAC1D,KAAK,EAAE,UAAU,CAAC;IAClB,iFAAiF;IACjF,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF,+DAA+D;AAC/D,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,uBAAuB,GAAG,iBAAiB,CAQ1F"}
1
+ {"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../src/authentication.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,yBAAyB,EACzB,SAAS,EACT,iBAAiB,EACjB,UAAU,EACX,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,mBAAmB,EAGpB,MAAM,+BAA+B,CAAC;AAKvC,gFAAgF;AAChF,qBAAa,oBAAqB,SAAQ,mBAAmB;IAC3D,gDAAgD;IAChD,MAAM,CAAC,QAAQ,CAAC,IAAI,YAAY;IAChC,iDAAiD;gBACrC,OAAO,EAAE,uBAAuB;IAI5C;;;;OAIG;IACH,WAAW,CAAC,OAAO,GAAE,IAAI,CAAC,yBAAyB,EAAE,OAAO,GAAG,cAAc,CAAM,GAAG,SAAS;CAWhG;AAED,qDAAqD;AACrD,MAAM,MAAM,uBAAuB,GAAG;IACpC,0DAA0D;IAC1D,KAAK,EAAE,UAAU,CAAC;IAClB,iFAAiF;IACjF,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF,+DAA+D;AAC/D,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,uBAAuB,GAAG,iBAAiB,CAY1F"}
@@ -1,8 +1,10 @@
1
1
  // loaders.gl
2
2
  // SPDX-License-Identifier: MIT
3
3
  // Copyright (c) vis.gl contributors
4
- import { TokenAuthentication, createQueryParameterCredential } from '@loaders.gl/loader-utils';
5
- /** Declarative ArcGIS token authentication. */
4
+ import { TokenAuthentication, createAuthenticatedFetch, createQueryParameterCredential } from '@loaders.gl/core/loader-utils';
5
+ /** Maximum JSON error bytes retained by the authentication detector. */
6
+ const MAXIMUM_AUTHENTICATION_ERROR_BYTES = 16384;
7
+ /** ArcGIS token authentication independent of the application's sign-in SDK. */
6
8
  export class ArcGISAuthentication extends TokenAuthentication {
7
9
  /** Discriminator used in `core.credentials`. */
8
10
  static type = 'arcgis';
@@ -10,15 +12,83 @@ export class ArcGISAuthentication extends TokenAuthentication {
10
12
  constructor(options) {
11
13
  super(createArcGISCredential(options));
12
14
  }
15
+ /**
16
+ * Creates a fetch transport for discovery and service requests.
17
+ * Refreshes are isolated by trusted origin so server-specific tokens cannot cross hosts.
18
+ * Reuse the returned transport to deduplicate concurrent refreshes within each origin.
19
+ */
20
+ createFetch(options = {}) {
21
+ return createAuthenticatedFetch({
22
+ ...options,
23
+ credentials: this.origins.map(origin => createArcGISCredential({
24
+ origins: [origin],
25
+ token: this.token
26
+ }))
27
+ });
28
+ }
13
29
  }
14
30
  /** Creates an exact-origin ArcGIS `token` query credential. */
15
31
  export function createArcGISCredential(options) {
16
- return createQueryParameterCredential({
17
- id: 'arcgis-token',
18
- origins: options.origins,
19
- parameterName: 'token',
20
- token: options.token,
21
- refreshStatusCodes: [401, 403, 498, 499]
22
- });
32
+ return {
33
+ ...createQueryParameterCredential({
34
+ id: 'arcgis-token',
35
+ origins: options.origins,
36
+ parameterName: 'token',
37
+ token: options.token,
38
+ refreshStatusCodes: [401, 403, 498, 499]
39
+ }),
40
+ shouldRefresh: isArcGISAuthenticationError,
41
+ canReplayRequest: canReplayArcGISRequest
42
+ };
43
+ }
44
+ /**
45
+ * Detects small JSON authentication errors without buffering successful feature/tile bodies.
46
+ * Only 498/499 envelopes trigger renewal; permission and query errors remain visible.
47
+ */
48
+ async function isArcGISAuthenticationError(response) {
49
+ if (response.status !== 200 || !response.headers.get('content-type')?.includes('json'))
50
+ return false;
51
+ if (Number(response.headers.get('content-length')) > MAXIMUM_AUTHENTICATION_ERROR_BYTES)
52
+ return false;
53
+ const reader = response.clone().body?.getReader();
54
+ if (!reader)
55
+ return false;
56
+ const chunks = [];
57
+ let length = 0;
58
+ try {
59
+ while (true) {
60
+ const { value, done } = await reader.read();
61
+ if (done) {
62
+ const bytes = new Uint8Array(length);
63
+ let offset = 0;
64
+ for (const chunk of chunks) {
65
+ bytes.set(chunk, offset);
66
+ offset += chunk.length;
67
+ }
68
+ const json = JSON.parse(new TextDecoder().decode(bytes));
69
+ return json?.error?.code === 498 || json?.error?.code === 499;
70
+ }
71
+ if (value.byteLength > MAXIMUM_AUTHENTICATION_ERROR_BYTES - length)
72
+ return false;
73
+ length += value.byteLength;
74
+ // Copy only accepted bytes so small views cannot retain oversized backing buffers.
75
+ chunks.push(value.slice());
76
+ }
77
+ }
78
+ catch {
79
+ return false;
80
+ }
81
+ finally {
82
+ // A tee cancellation can wait for the original consumer; do not await it here.
83
+ void reader.cancel().catch(() => { });
84
+ }
85
+ }
86
+ /** Permits string or URLSearchParams form POST queries on numbered feature or map layers. */
87
+ function canReplayArcGISRequest(url, request) {
88
+ return (request.method?.toUpperCase() === 'POST' &&
89
+ /\/(FeatureServer|MapServer)\/\d+\/query\/?$/i.test(new URL(url).pathname) &&
90
+ new Headers(request.headers).get('content-type')?.split(';')[0] ===
91
+ 'application/x-www-form-urlencoded' &&
92
+ (typeof request.body === 'string' || request.body instanceof URLSearchParams));
23
93
  }
24
94
  //# sourceMappingURL=authentication.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"authentication.js","sourceRoot":"","sources":["../src/authentication.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAGpC,OAAO,EAAC,mBAAmB,EAAE,8BAA8B,EAAC,MAAM,0BAA0B,CAAC;AAE7F,+CAA+C;AAC/C,MAAM,OAAO,oBAAqB,SAAQ,mBAAmB;IAC3D,gDAAgD;IAChD,MAAM,CAAU,IAAI,GAAG,QAAQ,CAAC;IAChC,iDAAiD;IACjD,YAAY,OAAgC;QAC1C,KAAK,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;IACzC,CAAC;;AAWH,+DAA+D;AAC/D,MAAM,UAAU,sBAAsB,CAAC,OAAgC;IACrE,OAAO,8BAA8B,CAAC;QACpC,EAAE,EAAE,cAAc;QAClB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,aAAa,EAAE,OAAO;QACtB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,kBAAkB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;KACzC,CAAC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,CAAC,UAAU,CAAC;YAC3B,mFAAmF;YACnF,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;YAAS,CAAC;QACT,+EAA+E;QAC/E,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IACvC,CAAC;AACH,CAAC;AAED,6FAA6F;AAC7F,SAAS,sBAAsB,CAAC,GAAW,EAAE,OAAoB;IAC/D,OAAO,CACL,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,MAAM;QACxC,8CAA8C,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC;QAC1E,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YAC7D,mCAAmC;QACrC,CAAC,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,CAAC,IAAI,YAAY,eAAe,CAAC,CAC9E,CAAC;AACJ,CAAC"}
package/dist/bundled.d.ts CHANGED
@@ -4,7 +4,7 @@ export { ArcGISImageTileSourceLoaderWithParser as ArcGISImageTileSourceLoader, A
4
4
  export { ArcGISMapTileSourceLoaderWithParser as ArcGISMapTileSourceLoader, ArcGISMapTileSource } from "./arcgis/arcgis-map-tile-source-loader.js";
5
5
  export { ArcGISSceneServerSourceLoaderWithParser as ArcGISSceneServerSourceLoader, ArcGISSceneServerSource, ArcGISSceneServerQueryError } from "./arcgis/arcgis-scene-server-source-loader.js";
6
6
  export { ArcGISVectorTileServerSourceLoaderWithParser as ArcGISVectorTileServerSourceLoader, ArcGISVectorTileServerSource } from "./arcgis/arcgis-vector-tile-server-source-loader.js";
7
- export type * from "./index.js";
7
+ export type { ArcGISService, ArcGISCapabilityGraph, ArcGISCapabilityGraphOptions, ArcGISServiceCapabilities, ArcGISServiceSelection, ArcGISFeatureServiceQueryOptions, ArcGISFeatureServerSourceLoaderOptions, ArcGISExportImageParameters, ArcGISImageSourceLoaderProps, ArcGISImageTileSourceLoaderOptions, ArcGISMapTileSourceLoaderOptions, ArcGISVectorTileServiceMetadata, ArcGISVectorTileServerSourceLoaderOptions, ArcGISSceneServerSourceOptions, ArcGISSceneQueryOptions, ArcGISSceneQueryResult, ArcGISSceneAggregationOperation, ArcGISSceneAggregationSpec, ArcGISSceneAggregationOptions, ArcGISSceneAggregationGroup, ArcGISCredentialOptions, ArcGISFeatureQueryParameters, ArcGISFeatureQueryOptions, ArcGISFeatureQueryProgress, ArcGISFeatureQueryResult, ArcGISFeatureObjectIds, ArcGISFeatureExtent, ArcGISItem, ArcGISItemLayer, ArcGISItemResolution, ArcGISItemOptions } from "./index.js";
8
8
  export { getArcGISServices, discoverArcGISCapabilities, selectArcGISService } from "./arcgis/arcgis-capability-graph.js";
9
9
  export { aggregateArcGISSceneFeatures } from "./arcgis/arcgis-scene-aggregation.js";
10
10
  export { ArcGISAuthentication, createArcGISCredential } from "./authentication.js";
@@ -16,7 +16,7 @@ export declare const ARCGIS_LOADERS: ({
16
16
  readonly batchType: never;
17
17
  readonly preload: undefined;
18
18
  readonly getAuthentications: () => typeof import("./authentication").ArcGISAuthentication[];
19
- readonly createDataSource: (url: string, options: import("./arcgis-source-types").ArcGISFeatureServerSourceLoaderOptions, coreApi?: import("@loaders.gl/loader-utils").CoreAPI) => import("./index").ArcGISVectorSource;
19
+ readonly createDataSource: (url: string, options: import("./arcgis-source-types").ArcGISFeatureServerSourceLoaderOptions, coreApi?: import("@loaders.gl/core/loader-utils").CoreAPI) => import("./index").ArcGISVectorSource;
20
20
  readonly name: "ArcGISFeatureServer";
21
21
  readonly id: "arcgis-feature-server";
22
22
  readonly module: "arcgis";
@@ -40,7 +40,7 @@ export declare const ARCGIS_LOADERS: ({
40
40
  readonly batchType: never;
41
41
  readonly preload: undefined;
42
42
  readonly getAuthentications: () => typeof import("./authentication").ArcGISAuthentication[];
43
- readonly createDataSource: (url: string, props: import("./arcgis-source-types").ArcGISImageSourceLoaderProps, coreApi?: import("@loaders.gl/loader-utils").CoreAPI) => import("./index").ArcGISImageSource;
43
+ readonly createDataSource: (url: string, props: import("./arcgis-source-types").ArcGISImageSourceLoaderProps, coreApi?: import("@loaders.gl/core/loader-utils").CoreAPI) => import("./index").ArcGISImageSource;
44
44
  readonly name: "ArcGISImageServer";
45
45
  readonly id: "arcgis-image-server";
46
46
  readonly module: "arcgis";
@@ -62,7 +62,7 @@ export declare const ARCGIS_LOADERS: ({
62
62
  readonly batchType: never;
63
63
  readonly preload: undefined;
64
64
  readonly getAuthentications: () => typeof import("./authentication").ArcGISAuthentication[];
65
- readonly createDataSource: (url: string, options?: import("./arcgis-source-types").ArcGISImageTileSourceLoaderOptions, coreApi?: import("@loaders.gl/loader-utils").CoreAPI) => import("./index").ArcGISImageTileSource;
65
+ readonly createDataSource: (url: string, options?: import("./arcgis-source-types").ArcGISImageTileSourceLoaderOptions, coreApi?: import("@loaders.gl/core/loader-utils").CoreAPI) => import("./index").ArcGISImageTileSource;
66
66
  readonly name: "ArcGIS ImageServer tiles";
67
67
  readonly id: "arcgis-image-server-tiles";
68
68
  readonly module: "arcgis";
@@ -84,7 +84,7 @@ export declare const ARCGIS_LOADERS: ({
84
84
  readonly batchType: never;
85
85
  readonly preload: undefined;
86
86
  readonly getAuthentications: () => typeof import("./authentication").ArcGISAuthentication[];
87
- readonly createDataSource: (url: string, options?: import("./arcgis-source-types").ArcGISMapTileSourceLoaderOptions, coreApi?: import("@loaders.gl/loader-utils").CoreAPI) => import("./index").ArcGISMapTileSource;
87
+ readonly createDataSource: (url: string, options?: import("./arcgis-source-types").ArcGISMapTileSourceLoaderOptions, coreApi?: import("@loaders.gl/core/loader-utils").CoreAPI) => import("./index").ArcGISMapTileSource;
88
88
  readonly name: "ArcGIS MapServer tiles";
89
89
  readonly id: "arcgis-map-server";
90
90
  readonly module: "arcgis";
@@ -106,7 +106,7 @@ export declare const ARCGIS_LOADERS: ({
106
106
  readonly batchType: never;
107
107
  readonly preload: undefined;
108
108
  readonly getAuthentications: () => typeof import("./authentication").ArcGISAuthentication[];
109
- readonly createDataSource: (url: string, options?: import("./arcgis-source-types").ArcGISSceneServerSourceOptions, coreApi?: import("@loaders.gl/loader-utils").CoreAPI) => import("./index").ArcGISSceneServerSource;
109
+ readonly createDataSource: (url: string, options?: import("./arcgis-source-types").ArcGISSceneServerSourceOptions, coreApi?: import("@loaders.gl/core/loader-utils").CoreAPI) => import("./index").ArcGISSceneServerSource;
110
110
  readonly name: "ArcGIS SceneServer";
111
111
  readonly id: "arcgis-scene-server";
112
112
  readonly module: "arcgis";
@@ -128,7 +128,7 @@ export declare const ARCGIS_LOADERS: ({
128
128
  readonly batchType: never;
129
129
  readonly preload: undefined;
130
130
  readonly getAuthentications: () => typeof import("./authentication").ArcGISAuthentication[];
131
- readonly createDataSource: (url: string, options?: import("./arcgis-source-types").ArcGISVectorTileServerSourceLoaderOptions, coreApi?: import("@loaders.gl/loader-utils").CoreAPI) => import("./index").ArcGISVectorTileServerSource;
131
+ readonly createDataSource: (url: string, options?: import("./arcgis-source-types").ArcGISVectorTileServerSourceLoaderOptions, coreApi?: import("@loaders.gl/core/loader-utils").CoreAPI) => import("./index").ArcGISVectorTileServerSource;
132
132
  readonly name: "ArcGIS VectorTileServer";
133
133
  readonly id: "arcgis-vector-tile-server";
134
134
  readonly module: "arcgis";
@@ -148,4 +148,5 @@ export declare const ARCGIS_LOADERS: ({
148
148
  })[];
149
149
  /** Finds a runtime source loader by its canonical identifier or service type. */
150
150
  export declare function getArcGISLoader(serviceType: string): ArcGISLoader | undefined;
151
+ export { resolveArcGISItem } from "./arcgis-items.js";
151
152
  //# sourceMappingURL=bundled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundled.d.ts","sourceRoot":"","sources":["../src/bundled.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,yCAAyC,IAAI,+BAA+B,EAC5E,kBAAkB,EAClB,uBAAuB,EACxB,wDAAqD;AAEtD,OAAO,EACL,uCAAuC,IAAI,6BAA6B,EACxE,iBAAiB,EAClB,sDAAmD;AAEpD,OAAO,EACL,qCAAqC,IAAI,2BAA2B,EACpE,qBAAqB,EACtB,oDAAiD;AAElD,OAAO,EACL,mCAAmC,IAAI,yBAAyB,EAChE,mBAAmB,EACpB,kDAA+C;AAEhD,OAAO,EACL,uCAAuC,IAAI,6BAA6B,EACxE,uBAAuB,EACvB,2BAA2B,EAC5B,sDAAmD;AAEpD,OAAO,EACL,4CAA4C,IAAI,kCAAkC,EAClF,4BAA4B,EAC7B,4DAAyD;AAE1D,gCAA6B;AAC7B,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,mBAAmB,EACpB,4CAAyC;AAC1C,OAAO,EAAC,4BAA4B,EAAC,6CAA0C;AAC/E,OAAO,EAAC,oBAAoB,EAAE,sBAAsB,EAAC,4BAAyB;AAE9E,gFAAgF;AAChF,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,mFAAmF;AACnF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO1B,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAK7E"}
1
+ {"version":3,"file":"bundled.d.ts","sourceRoot":"","sources":["../src/bundled.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,yCAAyC,IAAI,+BAA+B,EAC5E,kBAAkB,EAClB,uBAAuB,EACxB,wDAAqD;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO1B,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAK7E;AAED,OAAO,EAAC,iBAAiB,EAAC,0BAAuB"}
package/dist/bundled.js CHANGED
@@ -30,4 +30,5 @@ export function getArcGISLoader(serviceType) {
30
30
  const normalizedServiceType = serviceType.toLowerCase();
31
31
  return ARCGIS_LOADERS.find(loader => loader.id === normalizedServiceType || loader.type === normalizedServiceType);
32
32
  }
33
+ export { resolveArcGISItem } from "./arcgis-items.js";
33
34
  //# sourceMappingURL=bundled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundled.js","sourceRoot":"","sources":["../src/bundled.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EAAC,yCAAyC,IAAI,+BAA+B,EAAC,wDAAqD;AAC1I,OAAO,EACL,yCAAyC,IAAI,+BAA+B,EAC5E,kBAAkB,EAClB,uBAAuB,EACxB,wDAAqD;AACtD,OAAO,EAAC,uCAAuC,IAAI,6BAA6B,EAAC,sDAAmD;AACpI,OAAO,EACL,uCAAuC,IAAI,6BAA6B,EACxE,iBAAiB,EAClB,sDAAmD;AACpD,OAAO,EAAC,qCAAqC,IAAI,2BAA2B,EAAC,oDAAiD;AAC9H,OAAO,EACL,qCAAqC,IAAI,2BAA2B,EACpE,qBAAqB,EACtB,oDAAiD;AAClD,OAAO,EAAC,mCAAmC,IAAI,yBAAyB,EAAC,kDAA+C;AACxH,OAAO,EACL,mCAAmC,IAAI,yBAAyB,EAChE,mBAAmB,EACpB,kDAA+C;AAChD,OAAO,EAAC,uCAAuC,IAAI,6BAA6B,EAAC,sDAAmD;AACpI,OAAO,EACL,uCAAuC,IAAI,6BAA6B,EACxE,uBAAuB,EACvB,2BAA2B,EAC5B,sDAAmD;AACpD,OAAO,E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