@loaders.gl/arcgis 5.0.0-beta.1 → 5.0.0-beta.11
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/README.md +9 -5
- package/dist/arcgis/{arcgis-feature-server-source-loader-types.d.ts → arcgis-feature-server-loader-types.d.ts} +7 -7
- package/dist/arcgis/arcgis-feature-server-loader-types.d.ts.map +1 -0
- package/dist/arcgis/arcgis-feature-server-loader-types.js +21 -0
- package/dist/arcgis/arcgis-feature-server-loader-types.js.map +1 -0
- package/dist/arcgis/{arcgis-feature-server-source-loader.d.ts → arcgis-feature-server-loader.d.ts} +6 -6
- package/dist/arcgis/arcgis-feature-server-loader.d.ts.map +1 -0
- package/dist/arcgis/{arcgis-feature-server-source-loader.js → arcgis-feature-server-loader.js} +3 -3
- package/dist/arcgis/arcgis-feature-server-loader.js.map +1 -0
- package/dist/arcgis/{arcgis-image-server-source-loader-types.d.ts → arcgis-image-server-loader-types.d.ts} +7 -7
- package/dist/arcgis/arcgis-image-server-loader-types.d.ts.map +1 -0
- package/dist/arcgis/arcgis-image-server-loader-types.js +21 -0
- package/dist/arcgis/arcgis-image-server-loader-types.js.map +1 -0
- package/dist/arcgis/{arcgis-image-server-source-loader.d.ts → arcgis-image-server-loader.d.ts} +8 -9
- package/dist/arcgis/arcgis-image-server-loader.d.ts.map +1 -0
- package/dist/arcgis/{arcgis-image-server-source-loader.js → arcgis-image-server-loader.js} +3 -3
- package/dist/arcgis/arcgis-image-server-loader.js.map +1 -0
- package/dist/arcgis/{arcgis-image-tile-source-loader-types.d.ts → arcgis-image-tile-loader-types.d.ts} +7 -7
- package/dist/arcgis/arcgis-image-tile-loader-types.d.ts.map +1 -0
- package/dist/arcgis/arcgis-image-tile-loader-types.js +21 -0
- package/dist/arcgis/arcgis-image-tile-loader-types.js.map +1 -0
- package/dist/arcgis/{arcgis-image-tile-source-loader.d.ts → arcgis-image-tile-loader.d.ts} +8 -9
- package/dist/arcgis/arcgis-image-tile-loader.d.ts.map +1 -0
- package/dist/arcgis/{arcgis-image-tile-source-loader.js → arcgis-image-tile-loader.js} +3 -3
- package/dist/arcgis/arcgis-image-tile-loader.js.map +1 -0
- package/dist/arcgis/{arcgis-map-tile-source-loader-types.d.ts → arcgis-map-tile-loader-types.d.ts} +7 -7
- package/dist/arcgis/arcgis-map-tile-loader-types.d.ts.map +1 -0
- package/dist/arcgis/arcgis-map-tile-loader-types.js +21 -0
- package/dist/arcgis/arcgis-map-tile-loader-types.js.map +1 -0
- package/dist/arcgis/{arcgis-map-tile-source-loader.d.ts → arcgis-map-tile-loader.d.ts} +8 -9
- package/dist/arcgis/arcgis-map-tile-loader.d.ts.map +1 -0
- package/dist/arcgis/{arcgis-map-tile-source-loader.js → arcgis-map-tile-loader.js} +3 -3
- package/dist/arcgis/arcgis-map-tile-loader.js.map +1 -0
- package/dist/arcgis/{arcgis-scene-server-source-loader-types.d.ts → arcgis-scene-server-loader-types.d.ts} +7 -7
- package/dist/arcgis/arcgis-scene-server-loader-types.d.ts.map +1 -0
- package/dist/arcgis/arcgis-scene-server-loader-types.js +21 -0
- package/dist/arcgis/arcgis-scene-server-loader-types.js.map +1 -0
- package/dist/arcgis/{arcgis-scene-server-source-loader.d.ts → arcgis-scene-server-loader.d.ts} +6 -6
- package/dist/arcgis/arcgis-scene-server-loader.d.ts.map +1 -0
- package/dist/arcgis/{arcgis-scene-server-source-loader.js → arcgis-scene-server-loader.js} +3 -3
- package/dist/arcgis/arcgis-scene-server-loader.js.map +1 -0
- package/dist/arcgis/{arcgis-vector-tile-server-source-loader-types.d.ts → arcgis-vector-tile-server-loader-types.d.ts} +7 -7
- package/dist/arcgis/arcgis-vector-tile-server-loader-types.d.ts.map +1 -0
- package/dist/arcgis/arcgis-vector-tile-server-loader-types.js +21 -0
- package/dist/arcgis/arcgis-vector-tile-server-loader-types.js.map +1 -0
- package/dist/arcgis/{arcgis-vector-tile-server-source-loader.d.ts → arcgis-vector-tile-server-loader.d.ts} +6 -6
- package/dist/arcgis/arcgis-vector-tile-server-loader.d.ts.map +1 -0
- package/dist/arcgis/{arcgis-vector-tile-server-source-loader.js → arcgis-vector-tile-server-loader.js} +3 -3
- package/dist/arcgis/arcgis-vector-tile-server-loader.js.map +1 -0
- package/dist/arcgis-feature-server-loader.d.ts +2 -0
- package/dist/arcgis-feature-server-loader.d.ts.map +1 -0
- package/dist/arcgis-feature-server-loader.js +2 -0
- package/dist/arcgis-feature-server-loader.js.map +1 -0
- package/dist/arcgis-image-server-loader.d.ts +2 -0
- package/dist/arcgis-image-server-loader.d.ts.map +1 -0
- package/dist/arcgis-image-server-loader.js +2 -0
- package/dist/arcgis-image-server-loader.js.map +1 -0
- package/dist/arcgis-image-tile-loader.d.ts +2 -0
- package/dist/arcgis-image-tile-loader.d.ts.map +1 -0
- package/dist/arcgis-image-tile-loader.js +2 -0
- package/dist/arcgis-image-tile-loader.js.map +1 -0
- package/dist/arcgis-map-tile-loader.d.ts +2 -0
- package/dist/arcgis-map-tile-loader.d.ts.map +1 -0
- package/dist/arcgis-map-tile-loader.js +2 -0
- package/dist/arcgis-map-tile-loader.js.map +1 -0
- package/dist/arcgis-scene-server-loader.d.ts +2 -0
- package/dist/arcgis-scene-server-loader.d.ts.map +1 -0
- package/dist/arcgis-scene-server-loader.js +2 -0
- package/dist/arcgis-scene-server-loader.js.map +1 -0
- package/dist/arcgis-source-types.d.ts +12 -12
- package/dist/arcgis-source-types.d.ts.map +1 -1
- package/dist/arcgis-source-types.js +6 -6
- package/dist/arcgis-source-types.js.map +1 -1
- package/dist/arcgis-vector-tile-server-loader.d.ts +2 -0
- package/dist/arcgis-vector-tile-server-loader.d.ts.map +1 -0
- package/dist/arcgis-vector-tile-server-loader.js +2 -0
- package/dist/arcgis-vector-tile-server-loader.js.map +1 -0
- package/dist/bundled.d.ts +19 -19
- package/dist/bundled.d.ts.map +1 -1
- package/dist/bundled.js +18 -18
- package/dist/bundled.js.map +1 -1
- package/dist/index.cjs +5189 -4664
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +13 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/service-registry.d.ts +7 -7
- package/dist/service-registry.d.ts.map +1 -1
- package/dist/service-registry.js +12 -12
- package/dist/service-registry.js.map +1 -1
- package/package.json +32 -26
- package/src/arcgis/{arcgis-feature-server-source-loader-types.ts → arcgis-feature-server-loader-types.ts} +11 -11
- package/src/arcgis/{arcgis-feature-server-source-loader.ts → arcgis-feature-server-loader.ts} +6 -6
- package/src/arcgis/{arcgis-image-server-source-loader-types.ts → arcgis-image-server-loader-types.ts} +11 -11
- package/src/arcgis/{arcgis-image-server-source-loader.ts → arcgis-image-server-loader.ts} +9 -10
- package/src/arcgis/{arcgis-image-tile-source-loader-types.ts → arcgis-image-tile-loader-types.ts} +11 -11
- package/src/arcgis/{arcgis-image-tile-source-loader.ts → arcgis-image-tile-loader.ts} +11 -14
- package/src/arcgis/{arcgis-map-tile-source-loader-types.ts → arcgis-map-tile-loader-types.ts} +10 -12
- package/src/arcgis/{arcgis-map-tile-source-loader.ts → arcgis-map-tile-loader.ts} +9 -10
- package/src/arcgis/{arcgis-scene-server-source-loader-types.ts → arcgis-scene-server-loader-types.ts} +11 -11
- package/src/arcgis/{arcgis-scene-server-source-loader.ts → arcgis-scene-server-loader.ts} +6 -6
- package/src/arcgis/{arcgis-vector-tile-server-source-loader-types.ts → arcgis-vector-tile-server-loader-types.ts} +11 -11
- package/src/arcgis/{arcgis-vector-tile-server-source-loader.ts → arcgis-vector-tile-server-loader.ts} +6 -10
- package/src/arcgis-feature-server-loader.ts +1 -0
- package/src/arcgis-image-server-loader.ts +1 -0
- package/src/arcgis-image-tile-loader.ts +1 -0
- package/src/arcgis-map-tile-loader.ts +1 -0
- package/src/arcgis-scene-server-loader.ts +1 -0
- package/src/arcgis-source-types.ts +13 -13
- package/src/arcgis-vector-tile-server-loader.ts +1 -0
- package/src/bundled.ts +30 -30
- package/src/index.ts +18 -18
- package/src/service-registry.ts +18 -18
- package/dist/arcgis/arcgis-feature-server-source-loader-types.d.ts.map +0 -1
- package/dist/arcgis/arcgis-feature-server-source-loader-types.js +0 -21
- package/dist/arcgis/arcgis-feature-server-source-loader-types.js.map +0 -1
- package/dist/arcgis/arcgis-feature-server-source-loader.d.ts.map +0 -1
- package/dist/arcgis/arcgis-feature-server-source-loader.js.map +0 -1
- package/dist/arcgis/arcgis-image-server-source-loader-types.d.ts.map +0 -1
- package/dist/arcgis/arcgis-image-server-source-loader-types.js +0 -21
- package/dist/arcgis/arcgis-image-server-source-loader-types.js.map +0 -1
- package/dist/arcgis/arcgis-image-server-source-loader.d.ts.map +0 -1
- package/dist/arcgis/arcgis-image-server-source-loader.js.map +0 -1
- package/dist/arcgis/arcgis-image-tile-source-loader-types.d.ts.map +0 -1
- package/dist/arcgis/arcgis-image-tile-source-loader-types.js +0 -21
- package/dist/arcgis/arcgis-image-tile-source-loader-types.js.map +0 -1
- package/dist/arcgis/arcgis-image-tile-source-loader.d.ts.map +0 -1
- package/dist/arcgis/arcgis-image-tile-source-loader.js.map +0 -1
- package/dist/arcgis/arcgis-map-tile-source-loader-types.d.ts.map +0 -1
- package/dist/arcgis/arcgis-map-tile-source-loader-types.js +0 -21
- package/dist/arcgis/arcgis-map-tile-source-loader-types.js.map +0 -1
- package/dist/arcgis/arcgis-map-tile-source-loader.d.ts.map +0 -1
- package/dist/arcgis/arcgis-map-tile-source-loader.js.map +0 -1
- package/dist/arcgis/arcgis-scene-server-source-loader-types.d.ts.map +0 -1
- package/dist/arcgis/arcgis-scene-server-source-loader-types.js +0 -21
- package/dist/arcgis/arcgis-scene-server-source-loader-types.js.map +0 -1
- package/dist/arcgis/arcgis-scene-server-source-loader.d.ts.map +0 -1
- package/dist/arcgis/arcgis-scene-server-source-loader.js.map +0 -1
- package/dist/arcgis/arcgis-vector-tile-server-source-loader-types.d.ts.map +0 -1
- package/dist/arcgis/arcgis-vector-tile-server-source-loader-types.js +0 -21
- package/dist/arcgis/arcgis-vector-tile-server-source-loader-types.js.map +0 -1
- package/dist/arcgis/arcgis-vector-tile-server-source-loader.d.ts.map +0 -1
- package/dist/arcgis/arcgis-vector-tile-server-source-loader.js.map +0 -1
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
import {ArcGISAuthentication} from '../authentication';
|
|
6
6
|
import {ARCGIS_MAP_TILE_SOURCE_LOADER_METADATA} from '../arcgis-source-types';
|
|
7
7
|
import type {
|
|
8
|
-
|
|
8
|
+
ArcGISMapTileLoaderOptions,
|
|
9
9
|
ArcGISMapServerMetadata,
|
|
10
10
|
ArcGISMapTileParameters
|
|
11
11
|
} from '../arcgis-source-types';
|
|
12
12
|
|
|
13
|
-
import type {ImageType} from '@loaders.gl/images';
|
|
14
13
|
import {ImageLoader} from '@loaders.gl/images';
|
|
15
14
|
import type {
|
|
16
15
|
CoreAPI,
|
|
@@ -25,7 +24,7 @@ import {createArcGISTileGrid} from './arcgis-tile-grid';
|
|
|
25
24
|
|
|
26
25
|
/** ArcGIS MapServer source for cached `/tile/{z}/{y}/{x}` image tiles. */
|
|
27
26
|
export class ArcGISMapTileSource
|
|
28
|
-
extends DataSource<string,
|
|
27
|
+
extends DataSource<string, ArcGISMapTileLoaderOptions>
|
|
29
28
|
implements TileSource
|
|
30
29
|
{
|
|
31
30
|
/** MIME type rendered by the generic deck.gl tile adapter. */
|
|
@@ -39,7 +38,7 @@ export class ArcGISMapTileSource
|
|
|
39
38
|
private _runtimeParameters: ArcGISMapTileParameters = {};
|
|
40
39
|
|
|
41
40
|
/** Creates an ArcGIS MapServer tile source. */
|
|
42
|
-
constructor(url: string, options:
|
|
41
|
+
constructor(url: string, options: ArcGISMapTileLoaderOptions = {}, coreApi?: CoreAPI) {
|
|
43
42
|
super(
|
|
44
43
|
url.replace(/\/$/, ''),
|
|
45
44
|
options,
|
|
@@ -82,7 +81,7 @@ export class ArcGISMapTileSource
|
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
/** Fetches and decodes one cached ArcGIS tile. */
|
|
85
|
-
async getTile(parameters: GetTileParameters, signal?: AbortSignal): Promise<
|
|
84
|
+
async getTile(parameters: GetTileParameters, signal?: AbortSignal): Promise<ImageBitmap | null> {
|
|
86
85
|
const options = this.options['arcgis-map-server'] || {};
|
|
87
86
|
const mode = options.mode || 'auto';
|
|
88
87
|
const metadata = mode === 'auto' ? await this._getMetadata() : null;
|
|
@@ -100,11 +99,11 @@ export class ArcGISMapTileSource
|
|
|
100
99
|
await response.arrayBuffer(),
|
|
101
100
|
ImageLoader,
|
|
102
101
|
this.loadOptions
|
|
103
|
-
)) as
|
|
102
|
+
)) as ImageBitmap;
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
/** Fetches a tile using the deck.gl-compatible request shape. */
|
|
107
|
-
async getTileData(parameters: GetTileDataParameters): Promise<
|
|
106
|
+
async getTileData(parameters: GetTileDataParameters): Promise<ImageBitmap | null> {
|
|
108
107
|
return this.getTile(
|
|
109
108
|
{...parameters.index, tileMatrix: parameters.tileMatrix, signal: parameters.signal},
|
|
110
109
|
parameters.signal
|
|
@@ -236,16 +235,16 @@ function getWebMercatorTileBounds(parameters: GetTileParameters): [number, numbe
|
|
|
236
235
|
}
|
|
237
236
|
|
|
238
237
|
/** Runtime service loader for synchronous construction. */
|
|
239
|
-
export const
|
|
238
|
+
export const ArcGISMapTileLoaderWithParser = {
|
|
240
239
|
...ARCGIS_MAP_TILE_SOURCE_LOADER_METADATA,
|
|
241
240
|
dataType: null as unknown as ArcGISMapTileSource,
|
|
242
241
|
batchType: null as never,
|
|
243
242
|
preload: undefined,
|
|
244
243
|
/** Supplies ArcGIS credentials after loading the selected implementation. */
|
|
245
244
|
getAuthentications: () => [ArcGISAuthentication],
|
|
246
|
-
|
|
245
|
+
createDataSourceSync: (
|
|
247
246
|
url: string,
|
|
248
|
-
options:
|
|
247
|
+
options: ArcGISMapTileLoaderOptions = {},
|
|
249
248
|
coreApi?: CoreAPI
|
|
250
249
|
) => new ArcGISMapTileSource(url, options, coreApi)
|
|
251
250
|
} as const satisfies SourceLoader<ArcGISMapTileSource>;
|
|
@@ -4,33 +4,33 @@
|
|
|
4
4
|
|
|
5
5
|
import {ARCGIS_SCENE_SERVER_SOURCE_LOADER_METADATA} from '../arcgis-source-types';
|
|
6
6
|
import type {CoreAPI, SourceLoader} from '@loaders.gl/core/loader-utils';
|
|
7
|
-
import type {ArcGISSceneServerSource} from './arcgis-scene-server-
|
|
8
|
-
import type {
|
|
7
|
+
import type {ArcGISSceneServerSource} from './arcgis-scene-server-loader';
|
|
8
|
+
import type {ArcGISSceneServerLoaderOptions} from '../arcgis-source-types';
|
|
9
9
|
|
|
10
|
-
/** Loads the
|
|
10
|
+
/** Loads the ArcGISSceneServerLoader implementation on first asynchronous use. */
|
|
11
11
|
async function preloadArcGISSceneServerSourceLoader(): Promise<
|
|
12
12
|
SourceLoader<ArcGISSceneServerSource>
|
|
13
13
|
> {
|
|
14
|
-
const {
|
|
15
|
-
'@loaders.gl/arcgis/arcgis-scene-server-
|
|
14
|
+
const {ArcGISSceneServerLoaderWithParser} = await import(
|
|
15
|
+
'@loaders.gl/arcgis/arcgis-scene-server-loader'
|
|
16
16
|
);
|
|
17
|
-
return
|
|
17
|
+
return ArcGISSceneServerLoaderWithParser;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
/** Lightweight service descriptor; use
|
|
21
|
-
export const
|
|
20
|
+
/** Lightweight service descriptor; use createDataSource() or the synchronous /bundled entrypoint. */
|
|
21
|
+
export const ArcGISSceneServerLoader = {
|
|
22
22
|
...ARCGIS_SCENE_SERVER_SOURCE_LOADER_METADATA,
|
|
23
23
|
dataType: null as unknown as ArcGISSceneServerSource,
|
|
24
24
|
batchType: null as never,
|
|
25
25
|
preload: preloadArcGISSceneServerSourceLoader,
|
|
26
26
|
/** Requires the runtime loader when constructing a source synchronously. */
|
|
27
|
-
|
|
27
|
+
createDataSourceSync(
|
|
28
28
|
_url: string,
|
|
29
|
-
_options:
|
|
29
|
+
_options: ArcGISSceneServerLoaderOptions,
|
|
30
30
|
_coreApi?: CoreAPI
|
|
31
31
|
): ArcGISSceneServerSource {
|
|
32
32
|
throw new Error(
|
|
33
|
-
'
|
|
33
|
+
'ArcGISSceneServerLoader requires async createDataSource() or an @loaders.gl/arcgis/bundled import'
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
36
|
} as const satisfies SourceLoader<ArcGISSceneServerSource>;
|
|
@@ -7,7 +7,7 @@ import {ARCGIS_SCENE_SERVER_SOURCE_LOADER_METADATA} from '../arcgis-source-types
|
|
|
7
7
|
import type {
|
|
8
8
|
ArcGISSceneQueryOptions,
|
|
9
9
|
ArcGISSceneQueryResult,
|
|
10
|
-
|
|
10
|
+
ArcGISSceneServerLoaderOptions
|
|
11
11
|
} from '../arcgis-source-types';
|
|
12
12
|
|
|
13
13
|
import type {CoreAPI, DataSourceOptions, SourceLoader} from '@loaders.gl/core/loader-utils';
|
|
@@ -34,14 +34,14 @@ export class ArcGISSceneServerQueryError extends Error {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/** Source facade for an ArcGIS SceneServer I3S layer. */
|
|
37
|
-
export class ArcGISSceneServerSource extends DataSource<string,
|
|
37
|
+
export class ArcGISSceneServerSource extends DataSource<string, ArcGISSceneServerLoaderOptions> {
|
|
38
38
|
/** Cached normalized layer metadata. */
|
|
39
39
|
private metadataPromise: Promise<I3SServiceMetadata> | null = null;
|
|
40
40
|
/** Cached profile-specific tileset source. */
|
|
41
41
|
private sourcePromise: Promise<I3SLayerSource> | null = null;
|
|
42
42
|
|
|
43
43
|
/** Creates a SceneServer source. */
|
|
44
|
-
constructor(url: string, options:
|
|
44
|
+
constructor(url: string, options: ArcGISSceneServerLoaderOptions = {}, coreApi?: CoreAPI) {
|
|
45
45
|
super(
|
|
46
46
|
trimTrailingSlashes(url),
|
|
47
47
|
options,
|
|
@@ -192,16 +192,16 @@ export class ArcGISSceneServerSource extends DataSource<string, ArcGISSceneServe
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
/** Runtime service loader for synchronous construction. */
|
|
195
|
-
export const
|
|
195
|
+
export const ArcGISSceneServerLoaderWithParser = {
|
|
196
196
|
...ARCGIS_SCENE_SERVER_SOURCE_LOADER_METADATA,
|
|
197
197
|
dataType: null as unknown as ArcGISSceneServerSource,
|
|
198
198
|
batchType: null as never,
|
|
199
199
|
preload: undefined,
|
|
200
200
|
/** Supplies ArcGIS credentials after loading the selected implementation. */
|
|
201
201
|
getAuthentications: () => [ArcGISAuthentication],
|
|
202
|
-
|
|
202
|
+
createDataSourceSync: (
|
|
203
203
|
url: string,
|
|
204
|
-
options:
|
|
204
|
+
options: ArcGISSceneServerLoaderOptions = {},
|
|
205
205
|
coreApi?: CoreAPI
|
|
206
206
|
) => new ArcGISSceneServerSource(url, options, coreApi)
|
|
207
207
|
} as const satisfies SourceLoader<ArcGISSceneServerSource>;
|
|
@@ -4,33 +4,33 @@
|
|
|
4
4
|
|
|
5
5
|
import {ARCGIS_VECTOR_TILE_SERVER_SOURCE_LOADER_METADATA} from '../arcgis-source-types';
|
|
6
6
|
import type {CoreAPI, SourceLoader} from '@loaders.gl/core/loader-utils';
|
|
7
|
-
import type {ArcGISVectorTileServerSource} from './arcgis-vector-tile-server-
|
|
8
|
-
import type {
|
|
7
|
+
import type {ArcGISVectorTileServerSource} from './arcgis-vector-tile-server-loader';
|
|
8
|
+
import type {ArcGISVectorTileServerLoaderOptions} from '../arcgis-source-types';
|
|
9
9
|
|
|
10
|
-
/** Loads the
|
|
10
|
+
/** Loads the ArcGISVectorTileServerLoader implementation on first asynchronous use. */
|
|
11
11
|
async function preloadArcGISVectorTileServerSourceLoader(): Promise<
|
|
12
12
|
SourceLoader<ArcGISVectorTileServerSource>
|
|
13
13
|
> {
|
|
14
|
-
const {
|
|
15
|
-
'@loaders.gl/arcgis/arcgis-vector-tile-server-
|
|
14
|
+
const {ArcGISVectorTileServerLoaderWithParser} = await import(
|
|
15
|
+
'@loaders.gl/arcgis/arcgis-vector-tile-server-loader'
|
|
16
16
|
);
|
|
17
|
-
return
|
|
17
|
+
return ArcGISVectorTileServerLoaderWithParser;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
/** Lightweight service descriptor; use
|
|
21
|
-
export const
|
|
20
|
+
/** Lightweight service descriptor; use createDataSource() or the synchronous /bundled entrypoint. */
|
|
21
|
+
export const ArcGISVectorTileServerLoader = {
|
|
22
22
|
...ARCGIS_VECTOR_TILE_SERVER_SOURCE_LOADER_METADATA,
|
|
23
23
|
dataType: null as unknown as ArcGISVectorTileServerSource,
|
|
24
24
|
batchType: null as never,
|
|
25
25
|
preload: preloadArcGISVectorTileServerSourceLoader,
|
|
26
26
|
/** Requires the runtime loader when constructing a source synchronously. */
|
|
27
|
-
|
|
27
|
+
createDataSourceSync(
|
|
28
28
|
_url: string,
|
|
29
|
-
_options:
|
|
29
|
+
_options: ArcGISVectorTileServerLoaderOptions,
|
|
30
30
|
_coreApi?: CoreAPI
|
|
31
31
|
): ArcGISVectorTileServerSource {
|
|
32
32
|
throw new Error(
|
|
33
|
-
'
|
|
33
|
+
'ArcGISVectorTileServerLoader requires async createDataSource() or an @loaders.gl/arcgis/bundled import'
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
36
|
} as const satisfies SourceLoader<ArcGISVectorTileServerSource>;
|
|
@@ -6,7 +6,7 @@ import {ArcGISAuthentication} from '../authentication';
|
|
|
6
6
|
import {ARCGIS_VECTOR_TILE_SERVER_SOURCE_LOADER_METADATA} from '../arcgis-source-types';
|
|
7
7
|
import type {
|
|
8
8
|
ArcGISVectorTileServiceMetadata,
|
|
9
|
-
|
|
9
|
+
ArcGISVectorTileServerLoaderOptions
|
|
10
10
|
} from '../arcgis-source-types';
|
|
11
11
|
|
|
12
12
|
import type {
|
|
@@ -26,7 +26,7 @@ import type {Schema} from '@loaders.gl/core/schema';
|
|
|
26
26
|
|
|
27
27
|
/** A source for ArcGIS VectorTileServer metadata and PBF tiles. */
|
|
28
28
|
export class ArcGISVectorTileServerSource
|
|
29
|
-
extends DataSource<string,
|
|
29
|
+
extends DataSource<string, ArcGISVectorTileServerLoaderOptions>
|
|
30
30
|
implements VectorTileSource
|
|
31
31
|
{
|
|
32
32
|
/** Decoded tile family consumed by generic tile renderers. */
|
|
@@ -41,11 +41,7 @@ export class ArcGISVectorTileServerSource
|
|
|
41
41
|
private readonly serviceQueryParameters: URLSearchParams;
|
|
42
42
|
|
|
43
43
|
/** Creates an ArcGIS VectorTileServer source. */
|
|
44
|
-
constructor(
|
|
45
|
-
url: string,
|
|
46
|
-
options: ArcGISVectorTileServerSourceLoaderOptions = {},
|
|
47
|
-
coreApi?: CoreAPI
|
|
48
|
-
) {
|
|
44
|
+
constructor(url: string, options: ArcGISVectorTileServerLoaderOptions = {}, coreApi?: CoreAPI) {
|
|
49
45
|
const serviceURL = new URL(url);
|
|
50
46
|
serviceURL.pathname = serviceURL.pathname.replace(/\/$/, '');
|
|
51
47
|
super(
|
|
@@ -189,16 +185,16 @@ export class ArcGISVectorTileServerSource
|
|
|
189
185
|
}
|
|
190
186
|
|
|
191
187
|
/** Runtime service loader for synchronous construction. */
|
|
192
|
-
export const
|
|
188
|
+
export const ArcGISVectorTileServerLoaderWithParser = {
|
|
193
189
|
...ARCGIS_VECTOR_TILE_SERVER_SOURCE_LOADER_METADATA,
|
|
194
190
|
dataType: null as unknown as ArcGISVectorTileServerSource,
|
|
195
191
|
batchType: null as never,
|
|
196
192
|
preload: undefined,
|
|
197
193
|
/** Supplies ArcGIS credentials after loading the selected implementation. */
|
|
198
194
|
getAuthentications: () => [ArcGISAuthentication],
|
|
199
|
-
|
|
195
|
+
createDataSourceSync: (
|
|
200
196
|
url: string,
|
|
201
|
-
options:
|
|
197
|
+
options: ArcGISVectorTileServerLoaderOptions = {},
|
|
202
198
|
coreApi?: CoreAPI
|
|
203
199
|
) => new ArcGISVectorTileServerSource(url, options, coreApi)
|
|
204
200
|
} as const satisfies SourceLoader<ArcGISVectorTileServerSource>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './arcgis/arcgis-feature-server-loader.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './arcgis/arcgis-image-server-loader.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './arcgis/arcgis-image-tile-loader.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './arcgis/arcgis-map-tile-loader.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './arcgis/arcgis-scene-server-loader.js';
|
|
@@ -7,7 +7,7 @@ import type {ImageLoaderOptions} from '@loaders.gl/images';
|
|
|
7
7
|
import type {MVTLoaderOptions} from '@loaders.gl/tiles/mvt';
|
|
8
8
|
|
|
9
9
|
/** Static source metadata shared by lazy descriptors and runtime loaders. */
|
|
10
|
-
type ArcGISSourceMetadata = Omit<SourceLoader, 'dataType' | 'batchType' | '
|
|
10
|
+
type ArcGISSourceMetadata = Omit<SourceLoader, 'dataType' | 'batchType' | 'createDataSourceSync'>;
|
|
11
11
|
|
|
12
12
|
/** Parameters for ArcGIS FeatureServer query requests. */
|
|
13
13
|
export type ArcGISFeatureServiceQueryOptions = {
|
|
@@ -58,7 +58,7 @@ export type ArcGISFeatureServiceQueryOptions = {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
/** Options for the ArcGIS FeatureServer source. */
|
|
61
|
-
export type
|
|
61
|
+
export type ArcGISFeatureServerLoaderOptions = DataSourceOptions & {
|
|
62
62
|
'arcgis-feature-server'?: {
|
|
63
63
|
/** Default ArcGIS query request parameters. */
|
|
64
64
|
queryParameters?: Partial<ArcGISFeatureServiceQueryOptions>;
|
|
@@ -66,7 +66,7 @@ export type ArcGISFeatureServerSourceLoaderOptions = DataSourceOptions & {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
/** Options for the ArcGIS ImageServer source. */
|
|
69
|
-
export type
|
|
69
|
+
export type ArcGISImageServerLoaderOptions = DataSourceOptions &
|
|
70
70
|
ImageLoaderOptions & {
|
|
71
71
|
'arcgis-image-server'?: {
|
|
72
72
|
/** Default ArcGIS exportImage request parameters. */
|
|
@@ -111,7 +111,7 @@ export type ArcGISExportImageParameters = {
|
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
/** Options for the ArcGIS ImageServer tile source. */
|
|
114
|
-
export type
|
|
114
|
+
export type ArcGISImageTileLoaderOptions = DataSourceOptions &
|
|
115
115
|
ImageLoaderOptions & {
|
|
116
116
|
'arcgis-image-server-tiles'?: {
|
|
117
117
|
/** Tile size used for exportImage requests. */
|
|
@@ -126,7 +126,7 @@ export type ArcGISImageTileSourceLoaderOptions = DataSourceOptions &
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
/** Options for an ArcGIS cached MapServer tile source. */
|
|
129
|
-
export type
|
|
129
|
+
export type ArcGISMapTileLoaderOptions = DataSourceOptions &
|
|
130
130
|
ImageLoaderOptions & {
|
|
131
131
|
'arcgis-map-server'?: {
|
|
132
132
|
/** Select cached tiles, dynamic export tiles, or automatic metadata-based selection. */
|
|
@@ -220,7 +220,7 @@ export type ArcGISSceneQueryResult = {
|
|
|
220
220
|
};
|
|
221
221
|
|
|
222
222
|
/** Options for an ArcGIS SceneServer source. */
|
|
223
|
-
export type
|
|
223
|
+
export type ArcGISSceneServerLoaderOptions = DataSourceOptions & {
|
|
224
224
|
'arcgis-scene-server'?: {
|
|
225
225
|
/** Layer identifier used when the input URL ends at `/SceneServer`. */
|
|
226
226
|
layerId?: number | string;
|
|
@@ -259,7 +259,7 @@ export type ArcGISVectorTileServiceMetadata = {
|
|
|
259
259
|
};
|
|
260
260
|
|
|
261
261
|
/** Options for the ArcGIS VectorTileServer source. */
|
|
262
|
-
export type
|
|
262
|
+
export type ArcGISVectorTileServerLoaderOptions = DataSourceOptions &
|
|
263
263
|
MVTLoaderOptions & {
|
|
264
264
|
'arcgis-vector-tile-server'?: {
|
|
265
265
|
/** Optional MVT parser options. */
|
|
@@ -267,7 +267,7 @@ export type ArcGISVectorTileServerSourceLoaderOptions = DataSourceOptions &
|
|
|
267
267
|
};
|
|
268
268
|
};
|
|
269
269
|
|
|
270
|
-
/** Shared
|
|
270
|
+
/** Shared ArcGISFeatureServerLoader metadata, without runtime or lazy-loading dependencies. */
|
|
271
271
|
export const ARCGIS_FEATURE_SERVER_SOURCE_LOADER_METADATA = {
|
|
272
272
|
name: 'ArcGISFeatureServer',
|
|
273
273
|
id: 'arcgis-feature-server',
|
|
@@ -290,7 +290,7 @@ export const ARCGIS_FEATURE_SERVER_SOURCE_LOADER_METADATA = {
|
|
|
290
290
|
/\/featureserver(?:[/?#]|$)/i.test(url) || /\/mapserver\/\d+(?:[/?#]|$)/i.test(url)
|
|
291
291
|
} as const satisfies ArcGISSourceMetadata;
|
|
292
292
|
|
|
293
|
-
/** Shared
|
|
293
|
+
/** Shared ArcGISImageServerLoader metadata, without runtime or lazy-loading dependencies. */
|
|
294
294
|
export const ARCGIS_IMAGE_SERVER_SOURCE_LOADER_METADATA = {
|
|
295
295
|
name: 'ArcGISImageServer',
|
|
296
296
|
id: 'arcgis-image-server',
|
|
@@ -314,7 +314,7 @@ export const ARCGIS_IMAGE_SERVER_SOURCE_LOADER_METADATA = {
|
|
|
314
314
|
testURL: (url: string): boolean => url.toLowerCase().includes('imageserver')
|
|
315
315
|
} as const satisfies ArcGISSourceMetadata;
|
|
316
316
|
|
|
317
|
-
/** Shared
|
|
317
|
+
/** Shared ArcGISImageTileLoader metadata, without runtime or lazy-loading dependencies. */
|
|
318
318
|
export const ARCGIS_IMAGE_TILE_SOURCE_LOADER_METADATA = {
|
|
319
319
|
name: 'ArcGIS ImageServer tiles',
|
|
320
320
|
id: 'arcgis-image-server-tiles',
|
|
@@ -330,7 +330,7 @@ export const ARCGIS_IMAGE_TILE_SOURCE_LOADER_METADATA = {
|
|
|
330
330
|
testURL: (url: string): boolean => /imageserver/i.test(url)
|
|
331
331
|
} as const satisfies ArcGISSourceMetadata;
|
|
332
332
|
|
|
333
|
-
/** Shared
|
|
333
|
+
/** Shared ArcGISMapTileLoader metadata, without runtime or lazy-loading dependencies. */
|
|
334
334
|
export const ARCGIS_MAP_TILE_SOURCE_LOADER_METADATA = {
|
|
335
335
|
name: 'ArcGIS MapServer tiles',
|
|
336
336
|
id: 'arcgis-map-server',
|
|
@@ -347,7 +347,7 @@ export const ARCGIS_MAP_TILE_SOURCE_LOADER_METADATA = {
|
|
|
347
347
|
/mapserver/i.test(url) && !/imageserver|featureserver/i.test(url)
|
|
348
348
|
} as const satisfies ArcGISSourceMetadata;
|
|
349
349
|
|
|
350
|
-
/** Shared
|
|
350
|
+
/** Shared ArcGISSceneServerLoader metadata, without runtime or lazy-loading dependencies. */
|
|
351
351
|
export const ARCGIS_SCENE_SERVER_SOURCE_LOADER_METADATA = {
|
|
352
352
|
name: 'ArcGIS SceneServer',
|
|
353
353
|
id: 'arcgis-scene-server',
|
|
@@ -363,7 +363,7 @@ export const ARCGIS_SCENE_SERVER_SOURCE_LOADER_METADATA = {
|
|
|
363
363
|
testURL: (url: string): boolean => /\/SceneServer(?:[\/?#]|$)/i.test(url)
|
|
364
364
|
} as const satisfies ArcGISSourceMetadata;
|
|
365
365
|
|
|
366
|
-
/** Shared
|
|
366
|
+
/** Shared ArcGISVectorTileServerLoader metadata, without runtime or lazy-loading dependencies. */
|
|
367
367
|
export const ARCGIS_VECTOR_TILE_SERVER_SOURCE_LOADER_METADATA = {
|
|
368
368
|
name: 'ArcGIS VectorTileServer',
|
|
369
369
|
id: 'arcgis-vector-tile-server',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './arcgis/arcgis-vector-tile-server-loader.js';
|
package/src/bundled.ts
CHANGED
|
@@ -2,38 +2,38 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {ArcGISFeatureServerLoaderWithParser as ArcGISFeatureServerLoader} from './arcgis/arcgis-feature-server-loader';
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
ArcGISFeatureServerLoaderWithParser as ArcGISFeatureServerLoader,
|
|
8
8
|
ArcGISVectorSource,
|
|
9
9
|
ArcGISFeatureQueryError
|
|
10
|
-
} from './arcgis/arcgis-feature-server-
|
|
11
|
-
import {
|
|
10
|
+
} from './arcgis/arcgis-feature-server-loader';
|
|
11
|
+
import {ArcGISImageServerLoaderWithParser as ArcGISImageServerLoader} from './arcgis/arcgis-image-server-loader';
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
ArcGISImageServerLoaderWithParser as ArcGISImageServerLoader,
|
|
14
14
|
ArcGISImageSource
|
|
15
|
-
} from './arcgis/arcgis-image-server-
|
|
16
|
-
import {
|
|
15
|
+
} from './arcgis/arcgis-image-server-loader';
|
|
16
|
+
import {ArcGISImageTileLoaderWithParser as ArcGISImageTileLoader} from './arcgis/arcgis-image-tile-loader';
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
ArcGISImageTileLoaderWithParser as ArcGISImageTileLoader,
|
|
19
19
|
ArcGISImageTileSource
|
|
20
|
-
} from './arcgis/arcgis-image-tile-
|
|
21
|
-
import {
|
|
20
|
+
} from './arcgis/arcgis-image-tile-loader';
|
|
21
|
+
import {ArcGISMapTileLoaderWithParser as ArcGISMapTileLoader} from './arcgis/arcgis-map-tile-loader';
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
ArcGISMapTileLoaderWithParser as ArcGISMapTileLoader,
|
|
24
24
|
ArcGISMapTileSource
|
|
25
|
-
} from './arcgis/arcgis-map-tile-
|
|
26
|
-
import {
|
|
25
|
+
} from './arcgis/arcgis-map-tile-loader';
|
|
26
|
+
import {ArcGISSceneServerLoaderWithParser as ArcGISSceneServerLoader} from './arcgis/arcgis-scene-server-loader';
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
ArcGISSceneServerLoaderWithParser as ArcGISSceneServerLoader,
|
|
29
29
|
ArcGISSceneServerSource,
|
|
30
30
|
ArcGISSceneServerQueryError
|
|
31
|
-
} from './arcgis/arcgis-scene-server-
|
|
32
|
-
import {
|
|
31
|
+
} from './arcgis/arcgis-scene-server-loader';
|
|
32
|
+
import {ArcGISVectorTileServerLoaderWithParser as ArcGISVectorTileServerLoader} from './arcgis/arcgis-vector-tile-server-loader';
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
ArcGISVectorTileServerLoaderWithParser as ArcGISVectorTileServerLoader,
|
|
35
35
|
ArcGISVectorTileServerSource
|
|
36
|
-
} from './arcgis/arcgis-vector-tile-server-
|
|
36
|
+
} from './arcgis/arcgis-vector-tile-server-loader';
|
|
37
37
|
|
|
38
38
|
export type {
|
|
39
39
|
ArcGISService,
|
|
@@ -42,14 +42,14 @@ export type {
|
|
|
42
42
|
ArcGISServiceCapabilities,
|
|
43
43
|
ArcGISServiceSelection,
|
|
44
44
|
ArcGISFeatureServiceQueryOptions,
|
|
45
|
-
|
|
45
|
+
ArcGISFeatureServerLoaderOptions,
|
|
46
46
|
ArcGISExportImageParameters,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
ArcGISImageServerLoaderOptions,
|
|
48
|
+
ArcGISImageTileLoaderOptions,
|
|
49
|
+
ArcGISMapTileLoaderOptions,
|
|
50
50
|
ArcGISVectorTileServiceMetadata,
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
ArcGISVectorTileServerLoaderOptions,
|
|
52
|
+
ArcGISSceneServerLoaderOptions,
|
|
53
53
|
ArcGISSceneQueryOptions,
|
|
54
54
|
ArcGISSceneQueryResult,
|
|
55
55
|
ArcGISSceneAggregationOperation,
|
|
@@ -81,12 +81,12 @@ export type ArcGISLoader = (typeof ARCGIS_LOADERS)[number];
|
|
|
81
81
|
|
|
82
82
|
/** All runtime ArcGIS loaders, in the same selection order as the package root. */
|
|
83
83
|
export const ARCGIS_LOADERS = [
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
ArcGISFeatureServerLoader,
|
|
85
|
+
ArcGISImageServerLoader,
|
|
86
|
+
ArcGISImageTileLoader,
|
|
87
|
+
ArcGISMapTileLoader,
|
|
88
|
+
ArcGISVectorTileServerLoader,
|
|
89
|
+
ArcGISSceneServerLoader
|
|
90
90
|
];
|
|
91
91
|
|
|
92
92
|
/** Finds a runtime source loader by its canonical identifier or service type. */
|
package/src/index.ts
CHANGED
|
@@ -10,31 +10,31 @@ export type {
|
|
|
10
10
|
ArcGISServiceSelection
|
|
11
11
|
} from './arcgis/arcgis-capability-graph';
|
|
12
12
|
|
|
13
|
-
export {
|
|
14
|
-
export type {ArcGISVectorSource} from './arcgis/arcgis-feature-server-
|
|
15
|
-
export {
|
|
16
|
-
export type {ArcGISImageSource} from './arcgis/arcgis-image-server-
|
|
17
|
-
export {
|
|
18
|
-
export type {ArcGISImageTileSource} from './arcgis/arcgis-image-tile-
|
|
19
|
-
export {
|
|
20
|
-
export type {ArcGISMapTileSource} from './arcgis/arcgis-map-tile-
|
|
21
|
-
export {
|
|
13
|
+
export {ArcGISFeatureServerLoader} from './arcgis/arcgis-feature-server-loader-types';
|
|
14
|
+
export type {ArcGISVectorSource} from './arcgis/arcgis-feature-server-loader';
|
|
15
|
+
export {ArcGISImageServerLoader} from './arcgis/arcgis-image-server-loader-types';
|
|
16
|
+
export type {ArcGISImageSource} from './arcgis/arcgis-image-server-loader';
|
|
17
|
+
export {ArcGISImageTileLoader} from './arcgis/arcgis-image-tile-loader-types';
|
|
18
|
+
export type {ArcGISImageTileSource} from './arcgis/arcgis-image-tile-loader';
|
|
19
|
+
export {ArcGISMapTileLoader} from './arcgis/arcgis-map-tile-loader-types';
|
|
20
|
+
export type {ArcGISMapTileSource} from './arcgis/arcgis-map-tile-loader';
|
|
21
|
+
export {ArcGISSceneServerLoader} from './arcgis/arcgis-scene-server-loader-types';
|
|
22
22
|
export type {
|
|
23
23
|
ArcGISSceneServerSource,
|
|
24
24
|
ArcGISSceneServerQueryError
|
|
25
|
-
} from './arcgis/arcgis-scene-server-
|
|
26
|
-
export {
|
|
27
|
-
export type {ArcGISVectorTileServerSource} from './arcgis/arcgis-vector-tile-server-
|
|
25
|
+
} from './arcgis/arcgis-scene-server-loader';
|
|
26
|
+
export {ArcGISVectorTileServerLoader} from './arcgis/arcgis-vector-tile-server-loader-types';
|
|
27
|
+
export type {ArcGISVectorTileServerSource} from './arcgis/arcgis-vector-tile-server-loader';
|
|
28
28
|
export type {
|
|
29
29
|
ArcGISFeatureServiceQueryOptions,
|
|
30
|
-
|
|
30
|
+
ArcGISFeatureServerLoaderOptions,
|
|
31
31
|
ArcGISExportImageParameters,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
ArcGISImageServerLoaderOptions,
|
|
33
|
+
ArcGISImageTileLoaderOptions,
|
|
34
|
+
ArcGISMapTileLoaderOptions,
|
|
35
35
|
ArcGISVectorTileServiceMetadata,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
ArcGISVectorTileServerLoaderOptions,
|
|
37
|
+
ArcGISSceneServerLoaderOptions,
|
|
38
38
|
ArcGISSceneQueryOptions,
|
|
39
39
|
ArcGISSceneQueryResult
|
|
40
40
|
} from './arcgis-source-types';
|
package/src/service-registry.ts
CHANGED
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import {ArcGISFeatureServerLoader} from './arcgis/arcgis-feature-server-loader-types';
|
|
6
|
+
import {ArcGISImageServerLoader} from './arcgis/arcgis-image-server-loader-types';
|
|
7
|
+
import {ArcGISImageTileLoader} from './arcgis/arcgis-image-tile-loader-types';
|
|
8
|
+
import {ArcGISMapTileLoader} from './arcgis/arcgis-map-tile-loader-types';
|
|
9
|
+
import {ArcGISSceneServerLoader} from './arcgis/arcgis-scene-server-loader-types';
|
|
10
|
+
import {ArcGISVectorTileServerLoader} from './arcgis/arcgis-vector-tile-server-loader-types';
|
|
11
11
|
|
|
12
12
|
/** A source loader currently exposed through the ArcGIS package. */
|
|
13
13
|
export type ArcGISLoader =
|
|
14
|
-
| typeof
|
|
15
|
-
| typeof
|
|
16
|
-
| typeof
|
|
17
|
-
| typeof
|
|
18
|
-
| typeof
|
|
19
|
-
| typeof
|
|
14
|
+
| typeof ArcGISFeatureServerLoader
|
|
15
|
+
| typeof ArcGISImageServerLoader
|
|
16
|
+
| typeof ArcGISImageTileLoader
|
|
17
|
+
| typeof ArcGISMapTileLoader
|
|
18
|
+
| typeof ArcGISVectorTileServerLoader
|
|
19
|
+
| typeof ArcGISSceneServerLoader;
|
|
20
20
|
|
|
21
21
|
/** All source loaders owned by `@loaders.gl/arcgis`, in URL-selection order. */
|
|
22
22
|
export const ARCGIS_LOADERS: ArcGISLoader[] = [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
ArcGISFeatureServerLoader,
|
|
24
|
+
ArcGISImageServerLoader,
|
|
25
|
+
ArcGISImageTileLoader,
|
|
26
|
+
ArcGISMapTileLoader,
|
|
27
|
+
ArcGISVectorTileServerLoader,
|
|
28
|
+
ArcGISSceneServerLoader
|
|
29
29
|
];
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arcgis-feature-server-source-loader-types.d.ts","sourceRoot":"","sources":["../../src/arcgis/arcgis-feature-server-source-loader-types.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAC,kBAAkB,EAAC,iDAA8C;AAC9E,OAAO,KAAK,EAAC,sCAAsC,EAAC,kCAA+B;AAEnF,0FAA0F;AAC1F,iBAAe,sCAAsC,IAAI,OAAO,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,CAKjG;AAED,yFAAyF;AACzF,eAAO,MAAM,+BAA+B;uBAEb,kBAAkB;wBAC5B,KAAK;;IAExB,4EAA4E;sCAEpE,MAAM,YACF,sCAAsC,aACrC,OAAO,KACjB,kBAAkB;;;;;;;;;;;;;;;;;;;CAK8B,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// loaders.gl
|
|
2
|
-
// SPDX-License-Identifier: MIT
|
|
3
|
-
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { ARCGIS_FEATURE_SERVER_SOURCE_LOADER_METADATA } from "../arcgis-source-types.js";
|
|
5
|
-
/** Loads the ArcGISFeatureServerSourceLoader implementation on first asynchronous use. */
|
|
6
|
-
async function preloadArcGISFeatureServerSourceLoader() {
|
|
7
|
-
const { ArcGISFeatureServerSourceLoaderWithParser } = await import('@loaders.gl/arcgis/arcgis-feature-server-source-loader');
|
|
8
|
-
return ArcGISFeatureServerSourceLoaderWithParser;
|
|
9
|
-
}
|
|
10
|
-
/** Lightweight service descriptor; use load() or the synchronous /bundled entrypoint. */
|
|
11
|
-
export const ArcGISFeatureServerSourceLoader = {
|
|
12
|
-
...ARCGIS_FEATURE_SERVER_SOURCE_LOADER_METADATA,
|
|
13
|
-
dataType: null,
|
|
14
|
-
batchType: null,
|
|
15
|
-
preload: preloadArcGISFeatureServerSourceLoader,
|
|
16
|
-
/** Requires the runtime loader when constructing a source synchronously. */
|
|
17
|
-
createDataSource(_url, _options, _coreApi) {
|
|
18
|
-
throw new Error('ArcGISFeatureServerSourceLoader requires async load() or an @loaders.gl/arcgis/bundled import');
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=arcgis-feature-server-source-loader-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arcgis-feature-server-source-loader-types.js","sourceRoot":"","sources":["../../src/arcgis/arcgis-feature-server-source-loader-types.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EAAC,4CAA4C,EAAC,kCAA+B;AAKpF,0FAA0F;AAC1F,KAAK,UAAU,sCAAsC;IACnD,MAAM,EAAC,yCAAyC,EAAC,GAAG,MAAM,MAAM,CAC9D,wDAAwD,CACzD,CAAC;IACF,OAAO,yCAAyC,CAAC;AACnD,CAAC;AAED,yFAAyF;AACzF,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,GAAG,4CAA4C;IAC/C,QAAQ,EAAE,IAAqC;IAC/C,SAAS,EAAE,IAAa;IACxB,OAAO,EAAE,sCAAsC;IAC/C,4EAA4E;IAC5E,gBAAgB,CACd,IAAY,EACZ,QAAgD,EAChD,QAAkB;QAElB,MAAM,IAAI,KAAK,CACb,+FAA+F,CAChG,CAAC;IACJ,CAAC;CACkD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arcgis-feature-server-source-loader.d.ts","sourceRoot":"","sources":["../../src/arcgis/arcgis-feature-server-source-loader.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,oBAAoB,EAAC,6BAA0B;AAEvD,OAAO,KAAK,EAEV,sCAAsC,EACvC,kCAA+B;AAEhC,OAAO,KAAK,EAAW,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAG9D,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AAGzD,OAAO,KAAK,EACV,4BAA4B,EAC5B,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACpB,yCAAsC;AACvC,OAAO,EAAC,uBAAuB,EAAC,kCAA+B;AAE/D,2DAA2D;AAC3D,eAAO,MAAM,yCAAyC;uBAEvB,kBAAkB;wBAC5B,KAAK;;IAExB,6EAA6E;;qCAGtE,MAAM,WACF,sCAAsC,YACrC,OAAO,KAChB,kBAAkB;;;;;;;;;;;;;;;;;;;CAC8B,CAAC;AAEtD;;;;GAIG;AACH,qBAAa,kBACX,SAAQ,UAAU,CAAC,MAAM,EAAE,sCAAsC,CACjE,YAAW,YAAY;IAEvB,oDAAoD;IACpD,SAAS,CAAC,sBAAsB,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAE7D,+EAA+E;gBACnE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,sCAAsC,EAAE,OAAO,CAAC,EAAE,OAAO;IAI3F,2EAA2E;IACrE,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;IAKlC,gDAAgD;IAC1C,WAAW,CACf,OAAO,GAAE;QAAC,sBAAsB,CAAC,EAAE,OAAO,CAAA;KAAM,GAC/C,OAAO,CAAC,oBAAoB,CAAC;IAahC,iGAAiG;IAC3F,WAAW,CAAC,UAAU,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAuB/E,8FAA8F;IACxF,aAAa,CACjB,UAAU,GAAE,yBAA8B,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAUpC,iGAAiG;IACjG,iBAAiB,CACf,UAAU,GAAE,yBAA8B,GACzC,cAAc,CAAC,wBAAwB,CAAC;IAI3C,8FAA8F;IAC9F,gBAAgB,CAAC,UAAU,GAAE,yBAA8B,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAI/F,gEAAgE;IAChE,UAAU,CAAC,UAAU,GAAE,4BAAiC,GAAG,OAAO,CAAC,MAAM,CAAC;IAI1E,kGAAkG;IAClG,cAAc,CAAC,UAAU,GAAE,4BAAiC,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAI9F,iEAAiE;IACjE,WAAW,CAAC,UAAU,GAAE,4BAAiC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIxF,6EAA6E;IAC7E,OAAO,CAAC,iBAAiB;IASzB,+DAA+D;cAC/C,0BAA0B;IAM1C,8DAA8D;cAC9C,yBAAyB,IAAI,OAAO,CAAC,GAAG,CAAC;IAQzD,mEAAmE;IACnE,WAAW,CAAC,OAAO,CAAC,EAAE;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAC,GAAG,MAAM;IAIrE,gEAAgE;IAChE,cAAc,CAAC,UAAU,EAAE,4BAA4B,GAAG,MAAM;IAQhE,6FAA6F;IAC7F,OAAO,CAAC,WAAW;IAsBnB,gGAAgG;IAChG,OAAO,CAAC,kBAAkB;IAqC1B,0CAA0C;IAC1C,SAAS,CAAC,MAAM,CACd,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM;CAGV"}
|