@loaders.gl/arcgis 5.0.0-alpha.9 → 5.0.0-beta.10
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/LICENSE +2 -30
- package/README.md +47 -15
- package/THIRD-PARTY-NOTICES.md +19 -0
- package/dist/arcgis/arcgis-capability-graph.d.ts +1 -1
- package/dist/arcgis/arcgis-capability-graph.d.ts.map +1 -1
- package/dist/arcgis/{arcgis-feature-server-source-loader-types.d.ts → arcgis-feature-server-loader-types.d.ts} +8 -8
- 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} +9 -9
- 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} +7 -6
- 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} +8 -8
- 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} +11 -12
- 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} +5 -5
- 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} +8 -8
- 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} +11 -12
- 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} +10 -6
- 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} +8 -8
- 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} +10 -11
- 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} +18 -22
- 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} +8 -8
- 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} +9 -9
- 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} +5 -5
- package/dist/arcgis/arcgis-scene-server-loader.js.map +1 -0
- package/dist/arcgis/arcgis-tile-grid.d.ts +5 -0
- package/dist/arcgis/arcgis-tile-grid.d.ts.map +1 -0
- package/dist/arcgis/arcgis-tile-grid.js +43 -0
- package/dist/arcgis/arcgis-tile-grid.js.map +1 -0
- package/dist/arcgis/{arcgis-vector-tile-server-source-loader-types.d.ts → arcgis-vector-tile-server-loader-types.d.ts} +8 -8
- 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} +11 -9
- 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} +23 -9
- package/dist/arcgis/arcgis-vector-tile-server-loader.js.map +1 -0
- package/dist/arcgis-feature-query-types.d.ts +2 -2
- package/dist/arcgis-feature-query-types.d.ts.map +1 -1
- 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-items.d.ts +64 -0
- package/dist/arcgis-items.d.ts.map +1 -0
- package/dist/arcgis-items.js +137 -0
- package/dist/arcgis-items.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 +20 -14
- 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/authentication.d.ts +9 -3
- package/dist/authentication.d.ts.map +1 -1
- package/dist/authentication.js +79 -9
- package/dist/authentication.js.map +1 -1
- package/dist/bundled.d.ts +20 -19
- package/dist/bundled.d.ts.map +1 -1
- package/dist/bundled.js +19 -18
- package/dist/bundled.js.map +1 -1
- package/dist/index.cjs +15247 -17467
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +14 -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 +40 -30
- package/src/arcgis/arcgis-capability-graph.ts +1 -1
- package/src/arcgis/arcgis-feature-query.ts +1 -1
- package/src/arcgis/arcgis-feature-server-loader-types.ts +34 -0
- package/src/arcgis/{arcgis-feature-server-source-loader.ts → arcgis-feature-server-loader.ts} +13 -15
- package/src/arcgis/arcgis-image-server-loader-types.ts +34 -0
- package/src/arcgis/{arcgis-image-server-source-loader.ts → arcgis-image-server-loader.ts} +13 -14
- package/src/arcgis/arcgis-image-tile-loader-types.ts +34 -0
- package/src/arcgis/{arcgis-image-tile-source-loader.ts → arcgis-image-tile-loader.ts} +23 -19
- package/src/arcgis/arcgis-map-tile-loader-types.ts +32 -0
- package/src/arcgis/{arcgis-map-tile-source-loader.ts → arcgis-map-tile-loader.ts} +33 -31
- package/src/arcgis/{arcgis-scene-server-source-loader-types.ts → arcgis-scene-server-loader-types.ts} +12 -12
- package/src/arcgis/{arcgis-scene-server-source-loader.ts → arcgis-scene-server-loader.ts} +10 -10
- package/src/arcgis/arcgis-tile-grid.ts +55 -0
- package/src/arcgis/{arcgis-vector-tile-server-source-loader-types.ts → arcgis-vector-tile-server-loader-types.ts} +12 -12
- package/src/arcgis/{arcgis-vector-tile-server-source-loader.ts → arcgis-vector-tile-server-loader.ts} +33 -18
- package/src/arcgis-feature-query-types.ts +2 -2
- 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-items.ts +233 -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 +24 -16
- package/src/arcgis-vector-tile-server-loader.ts +1 -0
- package/src/authentication.ts +93 -10
- package/src/bundled.ts +59 -25
- package/src/index.ts +25 -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
- package/src/arcgis/arcgis-feature-server-source-loader-types.ts +0 -34
- package/src/arcgis/arcgis-image-server-source-loader-types.ts +0 -34
- package/src/arcgis/arcgis-image-tile-source-loader-types.ts +0 -34
- package/src/arcgis/arcgis-map-tile-source-loader-types.ts +0 -34
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export type { Service as ArcGISService } from "./arcgis/arcgis-server.js";
|
|
2
2
|
export type { ArcGISCapabilityGraph, ArcGISCapabilityGraphOptions, ArcGISServiceCapabilities, ArcGISServiceSelection } from "./arcgis/arcgis-capability-graph.js";
|
|
3
|
-
export {
|
|
4
|
-
export type { ArcGISVectorSource } from "./arcgis/arcgis-feature-server-
|
|
5
|
-
export {
|
|
6
|
-
export type { ArcGISImageSource } from "./arcgis/arcgis-image-server-
|
|
7
|
-
export {
|
|
8
|
-
export type { ArcGISImageTileSource } from "./arcgis/arcgis-image-tile-
|
|
9
|
-
export {
|
|
10
|
-
export type { ArcGISMapTileSource } from "./arcgis/arcgis-map-tile-
|
|
11
|
-
export {
|
|
12
|
-
export type { ArcGISSceneServerSource, ArcGISSceneServerQueryError } from "./arcgis/arcgis-scene-server-
|
|
13
|
-
export {
|
|
14
|
-
export type { ArcGISVectorTileServerSource } from "./arcgis/arcgis-vector-tile-server-
|
|
15
|
-
export type { ArcGISFeatureServiceQueryOptions,
|
|
3
|
+
export { ArcGISFeatureServerLoader } from "./arcgis/arcgis-feature-server-loader-types.js";
|
|
4
|
+
export type { ArcGISVectorSource } from "./arcgis/arcgis-feature-server-loader.js";
|
|
5
|
+
export { ArcGISImageServerLoader } from "./arcgis/arcgis-image-server-loader-types.js";
|
|
6
|
+
export type { ArcGISImageSource } from "./arcgis/arcgis-image-server-loader.js";
|
|
7
|
+
export { ArcGISImageTileLoader } from "./arcgis/arcgis-image-tile-loader-types.js";
|
|
8
|
+
export type { ArcGISImageTileSource } from "./arcgis/arcgis-image-tile-loader.js";
|
|
9
|
+
export { ArcGISMapTileLoader } from "./arcgis/arcgis-map-tile-loader-types.js";
|
|
10
|
+
export type { ArcGISMapTileSource } from "./arcgis/arcgis-map-tile-loader.js";
|
|
11
|
+
export { ArcGISSceneServerLoader } from "./arcgis/arcgis-scene-server-loader-types.js";
|
|
12
|
+
export type { ArcGISSceneServerSource, ArcGISSceneServerQueryError } from "./arcgis/arcgis-scene-server-loader.js";
|
|
13
|
+
export { ArcGISVectorTileServerLoader } from "./arcgis/arcgis-vector-tile-server-loader-types.js";
|
|
14
|
+
export type { ArcGISVectorTileServerSource } from "./arcgis/arcgis-vector-tile-server-loader.js";
|
|
15
|
+
export type { ArcGISFeatureServiceQueryOptions, ArcGISFeatureServerLoaderOptions, ArcGISExportImageParameters, ArcGISImageServerLoaderOptions, ArcGISImageTileLoaderOptions, ArcGISMapTileLoaderOptions, ArcGISVectorTileServiceMetadata, ArcGISVectorTileServerLoaderOptions, ArcGISSceneServerLoaderOptions, ArcGISSceneQueryOptions, ArcGISSceneQueryResult } from "./arcgis-source-types.js";
|
|
16
16
|
export type { ArcGISSceneAggregationOperation, ArcGISSceneAggregationSpec, ArcGISSceneAggregationOptions, ArcGISSceneAggregationGroup } from "./arcgis/arcgis-scene-aggregation.js";
|
|
17
17
|
export type { ArcGISLoader } from "./service-registry.js";
|
|
18
18
|
export { ARCGIS_LOADERS, getArcGISLoader } from "./service-registry.js";
|
|
@@ -20,4 +20,5 @@ export type { ArcGISAuthentication } from "./authentication.js";
|
|
|
20
20
|
export type { ArcGISCredentialOptions } from "./authentication.js";
|
|
21
21
|
export type { ArcGISFeatureQueryParameters, ArcGISFeatureQueryOptions, ArcGISFeatureQueryProgress, ArcGISFeatureQueryResult, ArcGISFeatureObjectIds, ArcGISFeatureExtent } from "./arcgis-feature-query-types.js";
|
|
22
22
|
export type { ArcGISFeatureQueryError } from "./arcgis/arcgis-feature-query.js";
|
|
23
|
+
export type { ArcGISItem, ArcGISItemLayer, ArcGISItemResolution, ArcGISItemOptions } from "./arcgis-items.js";
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,YAAY,EAAC,OAAO,IAAI,aAAa,EAAC,kCAA+B;AACrE,YAAY,EACV,qBAAqB,EACrB,4BAA4B,EAC5B,yBAAyB,EACzB,sBAAsB,EACvB,4CAAyC;AAE1C,OAAO,EAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,YAAY,EAAC,OAAO,IAAI,aAAa,EAAC,kCAA+B;AACrE,YAAY,EACV,qBAAqB,EACrB,4BAA4B,EAC5B,yBAAyB,EACzB,sBAAsB,EACvB,4CAAyC;AAE1C,OAAO,EAAC,yBAAyB,EAAC,uDAAoD;AACtF,YAAY,EAAC,kBAAkB,EAAC,iDAA8C;AAC9E,OAAO,EAAC,uBAAuB,EAAC,qDAAkD;AAClF,YAAY,EAAC,iBAAiB,EAAC,+CAA4C;AAC3E,OAAO,EAAC,qBAAqB,EAAC,mDAAgD;AAC9E,YAAY,EAAC,qBAAqB,EAAC,6CAA0C;AAC7E,OAAO,EAAC,mBAAmB,EAAC,iDAA8C;AAC1E,YAAY,EAAC,mBAAmB,EAAC,2CAAwC;AACzE,OAAO,EAAC,uBAAuB,EAAC,qDAAkD;AAClF,YAAY,EACV,uBAAuB,EACvB,2BAA2B,EAC5B,+CAA4C;AAC7C,OAAO,EAAC,4BAA4B,EAAC,2DAAwD;AAC7F,YAAY,EAAC,4BAA4B,EAAC,qDAAkD;AAC5F,YAAY,EACV,gCAAgC,EAChC,gCAAgC,EAChC,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,0BAA0B,EAC1B,+BAA+B,EAC/B,mCAAmC,EACnC,8BAA8B,EAC9B,uBAAuB,EACvB,sBAAsB,EACvB,iCAA8B;AAE/B,YAAY,EACV,+BAA+B,EAC/B,0BAA0B,EAC1B,6BAA6B,EAC7B,2BAA2B,EAC5B,6CAA0C;AAE3C,YAAY,EAAC,YAAY,EAAC,8BAA2B;AACrD,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,8BAA2B;AAEnE,YAAY,EAAC,oBAAoB,EAAC,4BAAyB;AAC3D,YAAY,EAAC,uBAAuB,EAAC,4BAAyB;AAE9D,YAAY,EACV,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACpB,wCAAqC;AACtC,YAAY,EAAC,uBAAuB,EAAC,yCAAsC;AAE3E,YAAY,EACV,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EAClB,0BAAuB"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// loaders.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
4
|
+
export { ArcGISFeatureServerLoader } from "./arcgis/arcgis-feature-server-loader-types.js";
|
|
5
|
+
export { ArcGISImageServerLoader } from "./arcgis/arcgis-image-server-loader-types.js";
|
|
6
|
+
export { ArcGISImageTileLoader } from "./arcgis/arcgis-image-tile-loader-types.js";
|
|
7
|
+
export { ArcGISMapTileLoader } from "./arcgis/arcgis-map-tile-loader-types.js";
|
|
8
|
+
export { ArcGISSceneServerLoader } from "./arcgis/arcgis-scene-server-loader-types.js";
|
|
9
|
+
export { ArcGISVectorTileServerLoader } from "./arcgis/arcgis-vector-tile-server-loader-types.js";
|
|
10
10
|
export { ARCGIS_LOADERS, getArcGISLoader } from "./service-registry.js";
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAUpC,OAAO,EAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAUpC,OAAO,EAAC,yBAAyB,EAAC,uDAAoD;AAEtF,OAAO,EAAC,uBAAuB,EAAC,qDAAkD;AAElF,OAAO,EAAC,qBAAqB,EAAC,mDAAgD;AAE9E,OAAO,EAAC,mBAAmB,EAAC,iDAA8C;AAE1E,OAAO,EAAC,uBAAuB,EAAC,qDAAkD;AAKlF,OAAO,EAAC,4BAA4B,EAAC,2DAAwD;AAwB7F,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,8BAA2B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { ArcGISFeatureServerLoader } from "./arcgis/arcgis-feature-server-loader-types.js";
|
|
2
|
+
import { ArcGISImageServerLoader } from "./arcgis/arcgis-image-server-loader-types.js";
|
|
3
|
+
import { ArcGISImageTileLoader } from "./arcgis/arcgis-image-tile-loader-types.js";
|
|
4
|
+
import { ArcGISMapTileLoader } from "./arcgis/arcgis-map-tile-loader-types.js";
|
|
5
|
+
import { ArcGISSceneServerLoader } from "./arcgis/arcgis-scene-server-loader-types.js";
|
|
6
|
+
import { ArcGISVectorTileServerLoader } from "./arcgis/arcgis-vector-tile-server-loader-types.js";
|
|
7
7
|
/** A source loader currently exposed through the ArcGIS package. */
|
|
8
|
-
export type ArcGISLoader = typeof
|
|
8
|
+
export type ArcGISLoader = typeof ArcGISFeatureServerLoader | typeof ArcGISImageServerLoader | typeof ArcGISImageTileLoader | typeof ArcGISMapTileLoader | typeof ArcGISVectorTileServerLoader | typeof ArcGISSceneServerLoader;
|
|
9
9
|
/** All source loaders owned by `@loaders.gl/arcgis`, in URL-selection order. */
|
|
10
10
|
export declare const ARCGIS_LOADERS: ArcGISLoader[];
|
|
11
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-registry.d.ts","sourceRoot":"","sources":["../src/service-registry.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC
|
|
1
|
+
{"version":3,"file":"service-registry.d.ts","sourceRoot":"","sources":["../src/service-registry.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,yBAAyB,EAAC,uDAAoD;AACtF,OAAO,EAAC,uBAAuB,EAAC,qDAAkD;AAClF,OAAO,EAAC,qBAAqB,EAAC,mDAAgD;AAC9E,OAAO,EAAC,mBAAmB,EAAC,iDAA8C;AAC1E,OAAO,EAAC,uBAAuB,EAAC,qDAAkD;AAClF,OAAO,EAAC,4BAA4B,EAAC,2DAAwD;AAE7F,oEAAoE;AACpE,MAAM,MAAM,YAAY,GACpB,OAAO,yBAAyB,GAChC,OAAO,uBAAuB,GAC9B,OAAO,qBAAqB,GAC5B,OAAO,mBAAmB,GAC1B,OAAO,4BAA4B,GACnC,OAAO,uBAAuB,CAAC;AAEnC,gFAAgF;AAChF,eAAO,MAAM,cAAc,EAAE,YAAY,EAOxC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAM7E"}
|
package/dist/service-registry.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// loaders.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { ArcGISFeatureServerLoader } from "./arcgis/arcgis-feature-server-loader-types.js";
|
|
5
|
+
import { ArcGISImageServerLoader } from "./arcgis/arcgis-image-server-loader-types.js";
|
|
6
|
+
import { ArcGISImageTileLoader } from "./arcgis/arcgis-image-tile-loader-types.js";
|
|
7
|
+
import { ArcGISMapTileLoader } from "./arcgis/arcgis-map-tile-loader-types.js";
|
|
8
|
+
import { ArcGISSceneServerLoader } from "./arcgis/arcgis-scene-server-loader-types.js";
|
|
9
|
+
import { ArcGISVectorTileServerLoader } from "./arcgis/arcgis-vector-tile-server-loader-types.js";
|
|
10
10
|
/** All source loaders owned by `@loaders.gl/arcgis`, in URL-selection order. */
|
|
11
11
|
export const ARCGIS_LOADERS = [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
ArcGISFeatureServerLoader,
|
|
13
|
+
ArcGISImageServerLoader,
|
|
14
|
+
ArcGISImageTileLoader,
|
|
15
|
+
ArcGISMapTileLoader,
|
|
16
|
+
ArcGISVectorTileServerLoader,
|
|
17
|
+
ArcGISSceneServerLoader
|
|
18
18
|
];
|
|
19
19
|
/**
|
|
20
20
|
* Finds a service loader by its canonical loader id or service type.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-registry.js","sourceRoot":"","sources":["../src/service-registry.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EAAC
|
|
1
|
+
{"version":3,"file":"service-registry.js","sourceRoot":"","sources":["../src/service-registry.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EAAC,yBAAyB,EAAC,uDAAoD;AACtF,OAAO,EAAC,uBAAuB,EAAC,qDAAkD;AAClF,OAAO,EAAC,qBAAqB,EAAC,mDAAgD;AAC9E,OAAO,EAAC,mBAAmB,EAAC,iDAA8C;AAC1E,OAAO,EAAC,uBAAuB,EAAC,qDAAkD;AAClF,OAAO,EAAC,4BAA4B,EAAC,2DAAwD;AAW7F,gFAAgF;AAChF,MAAM,CAAC,MAAM,cAAc,GAAmB;IAC5C,yBAAyB;IACzB,uBAAuB;IACvB,qBAAqB;IACrB,mBAAmB;IACnB,4BAA4B;IAC5B,uBAAuB;CACxB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,WAAmB;IACjD,MAAM,qBAAqB,GAAG,WAAW,CAAC,WAAW,EAAE,CAAC;IACxD,OAAO,cAAc,CAAC,IAAI,CACxB,aAAa,CAAC,EAAE,CACd,aAAa,CAAC,EAAE,KAAK,qBAAqB,IAAI,aAAa,CAAC,IAAI,KAAK,qBAAqB,CAC7F,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/arcgis",
|
|
3
|
-
"version": "5.0.0-
|
|
4
|
-
"description": "ArcGIS REST
|
|
3
|
+
"version": "5.0.0-beta.10",
|
|
4
|
+
"description": "ArcGIS REST sources for feature, map, imagery, vector tile, and scene services",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"publishConfig": {
|
|
@@ -18,7 +18,13 @@
|
|
|
18
18
|
"ImageServer",
|
|
19
19
|
"MapServer",
|
|
20
20
|
"geospatial",
|
|
21
|
-
"loader"
|
|
21
|
+
"loader",
|
|
22
|
+
"loaders.gl",
|
|
23
|
+
"VectorTileServer",
|
|
24
|
+
"SceneServer",
|
|
25
|
+
"PBF",
|
|
26
|
+
"JSON",
|
|
27
|
+
"GeoJSON"
|
|
22
28
|
],
|
|
23
29
|
"types": "dist/index.d.ts",
|
|
24
30
|
"main": "dist/index.cjs",
|
|
@@ -33,29 +39,29 @@
|
|
|
33
39
|
"types": "./dist/bundled.d.ts",
|
|
34
40
|
"import": "./dist/bundled.js"
|
|
35
41
|
},
|
|
36
|
-
"./arcgis-feature-server-
|
|
37
|
-
"types": "./dist/arcgis
|
|
38
|
-
"import": "./dist/arcgis
|
|
42
|
+
"./arcgis-feature-server-loader": {
|
|
43
|
+
"types": "./dist/arcgis-feature-server-loader.d.ts",
|
|
44
|
+
"import": "./dist/arcgis-feature-server-loader.js"
|
|
39
45
|
},
|
|
40
|
-
"./arcgis-image-server-
|
|
41
|
-
"types": "./dist/arcgis
|
|
42
|
-
"import": "./dist/arcgis
|
|
46
|
+
"./arcgis-image-server-loader": {
|
|
47
|
+
"types": "./dist/arcgis-image-server-loader.d.ts",
|
|
48
|
+
"import": "./dist/arcgis-image-server-loader.js"
|
|
43
49
|
},
|
|
44
|
-
"./arcgis-image-tile-
|
|
45
|
-
"types": "./dist/arcgis
|
|
46
|
-
"import": "./dist/arcgis
|
|
50
|
+
"./arcgis-image-tile-loader": {
|
|
51
|
+
"types": "./dist/arcgis-image-tile-loader.d.ts",
|
|
52
|
+
"import": "./dist/arcgis-image-tile-loader.js"
|
|
47
53
|
},
|
|
48
|
-
"./arcgis-map-tile-
|
|
49
|
-
"types": "./dist/arcgis
|
|
50
|
-
"import": "./dist/arcgis
|
|
54
|
+
"./arcgis-map-tile-loader": {
|
|
55
|
+
"types": "./dist/arcgis-map-tile-loader.d.ts",
|
|
56
|
+
"import": "./dist/arcgis-map-tile-loader.js"
|
|
51
57
|
},
|
|
52
|
-
"./arcgis-scene-server-
|
|
53
|
-
"types": "./dist/arcgis
|
|
54
|
-
"import": "./dist/arcgis
|
|
58
|
+
"./arcgis-scene-server-loader": {
|
|
59
|
+
"types": "./dist/arcgis-scene-server-loader.d.ts",
|
|
60
|
+
"import": "./dist/arcgis-scene-server-loader.js"
|
|
55
61
|
},
|
|
56
|
-
"./arcgis-vector-tile-server-
|
|
57
|
-
"types": "./dist/arcgis
|
|
58
|
-
"import": "./dist/arcgis
|
|
62
|
+
"./arcgis-vector-tile-server-loader": {
|
|
63
|
+
"types": "./dist/arcgis-vector-tile-server-loader.d.ts",
|
|
64
|
+
"import": "./dist/arcgis-vector-tile-server-loader.js"
|
|
59
65
|
},
|
|
60
66
|
"./authentication": {
|
|
61
67
|
"types": "./dist/authentication.d.ts",
|
|
@@ -68,25 +74,29 @@
|
|
|
68
74
|
"./scene-aggregation": {
|
|
69
75
|
"types": "./dist/arcgis/arcgis-scene-aggregation.d.ts",
|
|
70
76
|
"import": "./dist/arcgis/arcgis-scene-aggregation.js"
|
|
77
|
+
},
|
|
78
|
+
"./items": {
|
|
79
|
+
"types": "./dist/arcgis-items.d.ts",
|
|
80
|
+
"import": "./dist/arcgis-items.js"
|
|
71
81
|
}
|
|
72
82
|
},
|
|
73
83
|
"sideEffects": false,
|
|
74
84
|
"files": [
|
|
75
85
|
"src",
|
|
76
86
|
"dist",
|
|
77
|
-
"README.md"
|
|
87
|
+
"README.md",
|
|
88
|
+
"LICENSE",
|
|
89
|
+
"THIRD-PARTY-NOTICES.md"
|
|
78
90
|
],
|
|
79
91
|
"dependencies": {
|
|
80
|
-
"@loaders.gl/
|
|
81
|
-
"@loaders.gl/
|
|
82
|
-
"@loaders.gl/
|
|
83
|
-
"@loaders.gl/
|
|
84
|
-
"
|
|
85
|
-
"@loaders.gl/mvt": "5.0.0-alpha.9",
|
|
86
|
-
"@loaders.gl/schema": "5.0.0-alpha.9"
|
|
92
|
+
"@loaders.gl/images": "5.0.0-beta.10",
|
|
93
|
+
"@loaders.gl/raster": "5.0.0-beta.10",
|
|
94
|
+
"@loaders.gl/tiles": "5.0.0-beta.10",
|
|
95
|
+
"@loaders.gl/tiles-3d": "5.0.0-beta.10",
|
|
96
|
+
"lerc": "^4.2.0"
|
|
87
97
|
},
|
|
88
98
|
"peerDependencies": {
|
|
89
99
|
"@loaders.gl/core": "~5.0.0-alpha.0"
|
|
90
100
|
},
|
|
91
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "efdd84034c25e2e5dbb41bc88b75af56cb2176da"
|
|
92
102
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import {getArcGISServices} from './arcgis-server';
|
|
6
6
|
export {getArcGISServices} from './arcgis-server';
|
|
7
7
|
export type {Service as ArcGISService} from './arcgis-server';
|
|
8
|
-
import type {ServiceCapabilities} from '@loaders.gl/loader-utils';
|
|
8
|
+
import type {ServiceCapabilities} from '@loaders.gl/core/loader-utils';
|
|
9
9
|
import type {Service as ArcGISService} from './arcgis-server';
|
|
10
10
|
|
|
11
11
|
/** Normalized capabilities discovered from one ArcGIS REST service. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {Feature, GeoJSONTable} from '@loaders.gl/schema';
|
|
5
|
+
import type {Feature, GeoJSONTable} from '@loaders.gl/core/schema';
|
|
6
6
|
import type {
|
|
7
7
|
ArcGISFeatureExtent,
|
|
8
8
|
ArcGISFeatureObjectIds,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
import {ARCGIS_FEATURE_SERVER_SOURCE_LOADER_METADATA} from '../arcgis-source-types';
|
|
6
|
+
import type {CoreAPI, SourceLoader} from '@loaders.gl/core/loader-utils';
|
|
7
|
+
import type {ArcGISVectorSource} from './arcgis-feature-server-loader';
|
|
8
|
+
import type {ArcGISFeatureServerLoaderOptions} from '../arcgis-source-types';
|
|
9
|
+
|
|
10
|
+
/** Loads the ArcGISFeatureServerLoader implementation on first asynchronous use. */
|
|
11
|
+
async function preloadArcGISFeatureServerSourceLoader(): Promise<SourceLoader<ArcGISVectorSource>> {
|
|
12
|
+
const {ArcGISFeatureServerLoaderWithParser} = await import(
|
|
13
|
+
'@loaders.gl/arcgis/arcgis-feature-server-loader'
|
|
14
|
+
);
|
|
15
|
+
return ArcGISFeatureServerLoaderWithParser;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Lightweight service descriptor; use createDataSource() or the synchronous /bundled entrypoint. */
|
|
19
|
+
export const ArcGISFeatureServerLoader = {
|
|
20
|
+
...ARCGIS_FEATURE_SERVER_SOURCE_LOADER_METADATA,
|
|
21
|
+
dataType: null as unknown as ArcGISVectorSource,
|
|
22
|
+
batchType: null as never,
|
|
23
|
+
preload: preloadArcGISFeatureServerSourceLoader,
|
|
24
|
+
/** Requires the runtime loader when constructing a source synchronously. */
|
|
25
|
+
createDataSourceSync(
|
|
26
|
+
_url: string,
|
|
27
|
+
_options: ArcGISFeatureServerLoaderOptions,
|
|
28
|
+
_coreApi?: CoreAPI
|
|
29
|
+
): ArcGISVectorSource {
|
|
30
|
+
throw new Error(
|
|
31
|
+
'ArcGISFeatureServerLoader requires async createDataSource() or an @loaders.gl/arcgis/bundled import'
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
} as const satisfies SourceLoader<ArcGISVectorSource>;
|
package/src/arcgis/{arcgis-feature-server-source-loader.ts → arcgis-feature-server-loader.ts}
RENAMED
|
@@ -6,23 +6,21 @@ import {ArcGISAuthentication} from '../authentication';
|
|
|
6
6
|
import {ARCGIS_FEATURE_SERVER_SOURCE_LOADER_METADATA} from '../arcgis-source-types';
|
|
7
7
|
import type {
|
|
8
8
|
ArcGISFeatureServiceQueryOptions,
|
|
9
|
-
|
|
9
|
+
ArcGISFeatureServerLoaderOptions
|
|
10
10
|
} from '../arcgis-source-types';
|
|
11
11
|
|
|
12
|
-
import type {DataType, Schema} from '@loaders.gl/schema';
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
convertGeojsonToBinaryFeatureCollection
|
|
16
|
-
} from '@loaders.gl/gis';
|
|
12
|
+
import type {DataType, Schema} from '@loaders.gl/core/schema';
|
|
13
|
+
import {convertFeaturesToWKBArrowTable} from '@loaders.gl/core/arrow-geometry/feature-collection-to-arrow';
|
|
14
|
+
import {convertGeojsonToBinaryFeatureCollection} from '@loaders.gl/core/arrow-geometry/legacy-binary';
|
|
17
15
|
import type {
|
|
18
16
|
CoreAPI,
|
|
19
17
|
VectorSourceMetadata,
|
|
20
18
|
GetFeaturesParameters,
|
|
21
19
|
VectorSource,
|
|
22
20
|
VectorSourceData
|
|
23
|
-
} from '@loaders.gl/loader-utils';
|
|
24
|
-
import type {SourceLoader} from '@loaders.gl/loader-utils';
|
|
25
|
-
import {DataSource} from '@loaders.gl/loader-utils';
|
|
21
|
+
} from '@loaders.gl/core/loader-utils';
|
|
22
|
+
import type {SourceLoader} from '@loaders.gl/core/loader-utils';
|
|
23
|
+
import {DataSource} from '@loaders.gl/core/loader-utils';
|
|
26
24
|
import {buildArcGISResourceURL} from './arcgis-url-utils';
|
|
27
25
|
import {ArcGISFeatureQueryClient} from './arcgis-feature-query';
|
|
28
26
|
import type {
|
|
@@ -35,16 +33,16 @@ import type {
|
|
|
35
33
|
export {ArcGISFeatureQueryError} from './arcgis-feature-query';
|
|
36
34
|
|
|
37
35
|
/** Runtime service loader for synchronous construction. */
|
|
38
|
-
export const
|
|
36
|
+
export const ArcGISFeatureServerLoaderWithParser = {
|
|
39
37
|
...ARCGIS_FEATURE_SERVER_SOURCE_LOADER_METADATA,
|
|
40
38
|
dataType: null as unknown as ArcGISVectorSource,
|
|
41
39
|
batchType: null as never,
|
|
42
40
|
preload: undefined,
|
|
43
41
|
/** Supplies ArcGIS credentials after loading the selected implementation. */
|
|
44
42
|
getAuthentications: () => [ArcGISAuthentication],
|
|
45
|
-
|
|
43
|
+
createDataSourceSync: (
|
|
46
44
|
url: string,
|
|
47
|
-
options:
|
|
45
|
+
options: ArcGISFeatureServerLoaderOptions,
|
|
48
46
|
coreApi?: CoreAPI
|
|
49
47
|
): ArcGISVectorSource => new ArcGISVectorSource(url, options, coreApi)
|
|
50
48
|
} as const satisfies SourceLoader<ArcGISVectorSource>;
|
|
@@ -55,14 +53,14 @@ export const ArcGISFeatureServerSourceLoaderWithParser = {
|
|
|
55
53
|
* @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm
|
|
56
54
|
*/
|
|
57
55
|
export class ArcGISVectorSource
|
|
58
|
-
extends DataSource<string,
|
|
56
|
+
extends DataSource<string, ArcGISFeatureServerLoaderOptions>
|
|
59
57
|
implements VectorSource
|
|
60
58
|
{
|
|
61
59
|
/** Cached ArcGIS FeatureServer metadata request. */
|
|
62
60
|
protected formatSpecificMetadata: Promise<any> | null = null;
|
|
63
61
|
|
|
64
62
|
/** Creates a query source for a FeatureServer or queryable MapServer layer. */
|
|
65
|
-
constructor(url: string, options:
|
|
63
|
+
constructor(url: string, options: ArcGISFeatureServerLoaderOptions, coreApi?: CoreAPI) {
|
|
66
64
|
super(url, options, ARCGIS_FEATURE_SERVER_SOURCE_LOADER_METADATA.defaultOptions, coreApi);
|
|
67
65
|
}
|
|
68
66
|
|
|
@@ -108,7 +106,7 @@ export class ArcGISVectorSource
|
|
|
108
106
|
default:
|
|
109
107
|
return convertFeaturesToWKBArrowTable(features, {
|
|
110
108
|
encodingPreference: parameters.geoarrow?.encodingPreference
|
|
111
|
-
});
|
|
109
|
+
}).data;
|
|
112
110
|
}
|
|
113
111
|
}
|
|
114
112
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
import {ARCGIS_IMAGE_SERVER_SOURCE_LOADER_METADATA} from '../arcgis-source-types';
|
|
6
|
+
import type {CoreAPI, SourceLoader} from '@loaders.gl/core/loader-utils';
|
|
7
|
+
import type {ArcGISImageSource} from './arcgis-image-server-loader';
|
|
8
|
+
import type {ArcGISImageServerLoaderOptions} from '../arcgis-source-types';
|
|
9
|
+
|
|
10
|
+
/** Loads the ArcGISImageServerLoader implementation on first asynchronous use. */
|
|
11
|
+
async function preloadArcGISImageServerSourceLoader(): Promise<SourceLoader<ArcGISImageSource>> {
|
|
12
|
+
const {ArcGISImageServerLoaderWithParser} = await import(
|
|
13
|
+
'@loaders.gl/arcgis/arcgis-image-server-loader'
|
|
14
|
+
);
|
|
15
|
+
return ArcGISImageServerLoaderWithParser;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Lightweight service descriptor; use createDataSource() or the synchronous /bundled entrypoint. */
|
|
19
|
+
export const ArcGISImageServerLoader = {
|
|
20
|
+
...ARCGIS_IMAGE_SERVER_SOURCE_LOADER_METADATA,
|
|
21
|
+
dataType: null as unknown as ArcGISImageSource,
|
|
22
|
+
batchType: null as never,
|
|
23
|
+
preload: preloadArcGISImageServerSourceLoader,
|
|
24
|
+
/** Requires the runtime loader when constructing a source synchronously. */
|
|
25
|
+
createDataSourceSync(
|
|
26
|
+
_url: string,
|
|
27
|
+
_options: ArcGISImageServerLoaderOptions,
|
|
28
|
+
_coreApi?: CoreAPI
|
|
29
|
+
): ArcGISImageSource {
|
|
30
|
+
throw new Error(
|
|
31
|
+
'ArcGISImageServerLoader requires async createDataSource() or an @loaders.gl/arcgis/bundled import'
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
} as const satisfies SourceLoader<ArcGISImageSource>;
|
|
@@ -5,11 +5,10 @@
|
|
|
5
5
|
import {ArcGISAuthentication} from '../authentication';
|
|
6
6
|
import {ARCGIS_IMAGE_SERVER_SOURCE_LOADER_METADATA} from '../arcgis-source-types';
|
|
7
7
|
import type {
|
|
8
|
-
|
|
8
|
+
ArcGISImageServerLoaderOptions,
|
|
9
9
|
ArcGISExportImageParameters
|
|
10
10
|
} from '../arcgis-source-types';
|
|
11
11
|
|
|
12
|
-
import type {ImageType} from '@loaders.gl/images';
|
|
13
12
|
import {ImageLoader} from '@loaders.gl/images';
|
|
14
13
|
import type {
|
|
15
14
|
CoreAPI,
|
|
@@ -17,23 +16,23 @@ import type {
|
|
|
17
16
|
ImageSource,
|
|
18
17
|
ImageSourceMetadata,
|
|
19
18
|
GetImageParameters
|
|
20
|
-
} from '@loaders.gl/loader-utils';
|
|
21
|
-
import {DataSource} from '@loaders.gl/loader-utils';
|
|
22
|
-
import type {LERCData} from '@loaders.gl/
|
|
23
|
-
import {LERCLoader} from '@loaders.gl/
|
|
19
|
+
} from '@loaders.gl/core/loader-utils';
|
|
20
|
+
import {DataSource} from '@loaders.gl/core/loader-utils';
|
|
21
|
+
import type {LERCData} from '@loaders.gl/raster';
|
|
22
|
+
import {LERCLoader} from '@loaders.gl/raster';
|
|
24
23
|
import {buildArcGISResourceURL} from './arcgis-url-utils';
|
|
25
24
|
|
|
26
25
|
/** Runtime service loader for synchronous construction. */
|
|
27
|
-
export const
|
|
26
|
+
export const ArcGISImageServerLoaderWithParser = {
|
|
28
27
|
...ARCGIS_IMAGE_SERVER_SOURCE_LOADER_METADATA,
|
|
29
28
|
dataType: null as unknown as ArcGISImageSource,
|
|
30
29
|
batchType: null as never,
|
|
31
30
|
preload: undefined,
|
|
32
31
|
/** Supplies ArcGIS credentials after loading the selected implementation. */
|
|
33
32
|
getAuthentications: () => [ArcGISAuthentication],
|
|
34
|
-
|
|
33
|
+
createDataSourceSync: (
|
|
35
34
|
url: string,
|
|
36
|
-
props:
|
|
35
|
+
props: ArcGISImageServerLoaderOptions,
|
|
37
36
|
coreApi?: CoreAPI
|
|
38
37
|
): ArcGISImageSource => new ArcGISImageSource(url, props, coreApi)
|
|
39
38
|
} as const satisfies SourceLoader<ArcGISImageSource>;
|
|
@@ -44,10 +43,10 @@ export const ArcGISImageServerSourceLoaderWithParser = {
|
|
|
44
43
|
* @see https://developers.arcgis.com/rest/services-reference/enterprise/image-service.htm
|
|
45
44
|
*/
|
|
46
45
|
export class ArcGISImageSource
|
|
47
|
-
extends DataSource<string,
|
|
46
|
+
extends DataSource<string, ArcGISImageServerLoaderOptions>
|
|
48
47
|
implements ImageSource
|
|
49
48
|
{
|
|
50
|
-
constructor(url: string, props:
|
|
49
|
+
constructor(url: string, props: ArcGISImageServerLoaderOptions, coreApi?: CoreAPI) {
|
|
51
50
|
super(url, props, ARCGIS_IMAGE_SERVER_SOURCE_LOADER_METADATA.defaultOptions, coreApi);
|
|
52
51
|
}
|
|
53
52
|
|
|
@@ -57,7 +56,7 @@ export class ArcGISImageSource
|
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
/** Requests an image from generic ImageSource parameters. */
|
|
60
|
-
async getImage(parameters: GetImageParameters): Promise<
|
|
59
|
+
async getImage(parameters: GetImageParameters): Promise<ImageBitmap> {
|
|
61
60
|
const {boundingBox, width, height, crs, format, signal} = parameters;
|
|
62
61
|
const spatialReference = normalizeArcGISSpatialReference(crs) || '4326';
|
|
63
62
|
const imageParameters: ArcGISExportImageParameters = {
|
|
@@ -82,11 +81,11 @@ export class ArcGISImageSource
|
|
|
82
81
|
async exportImage(
|
|
83
82
|
options: ArcGISExportImageParameters,
|
|
84
83
|
signal?: AbortSignal
|
|
85
|
-
): Promise<
|
|
84
|
+
): Promise<ImageBitmap> {
|
|
86
85
|
const response = await this.fetch(this.exportImageURL(options), signal ? {signal} : undefined);
|
|
87
86
|
await this.checkResponse(response);
|
|
88
87
|
const arrayBuffer = await response.arrayBuffer();
|
|
89
|
-
return (await this.coreApi.parse(arrayBuffer, ImageLoader, this.loadOptions)) as
|
|
88
|
+
return (await this.coreApi.parse(arrayBuffer, ImageLoader, this.loadOptions)) as ImageBitmap;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
/** Requests an analytical LERC raster from the ArcGIS ImageServer endpoint. */
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
import {ARCGIS_IMAGE_TILE_SOURCE_LOADER_METADATA} from '../arcgis-source-types';
|
|
6
|
+
import type {CoreAPI, SourceLoader} from '@loaders.gl/core/loader-utils';
|
|
7
|
+
import type {ArcGISImageTileSource} from './arcgis-image-tile-loader';
|
|
8
|
+
import type {ArcGISImageTileLoaderOptions} from '../arcgis-source-types';
|
|
9
|
+
|
|
10
|
+
/** Loads the ArcGISImageTileLoader implementation on first asynchronous use. */
|
|
11
|
+
async function preloadArcGISImageTileSourceLoader(): Promise<SourceLoader<ArcGISImageTileSource>> {
|
|
12
|
+
const {ArcGISImageTileLoaderWithParser} = await import(
|
|
13
|
+
'@loaders.gl/arcgis/arcgis-image-tile-loader'
|
|
14
|
+
);
|
|
15
|
+
return ArcGISImageTileLoaderWithParser;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Lightweight service descriptor; use createDataSource() or the synchronous /bundled entrypoint. */
|
|
19
|
+
export const ArcGISImageTileLoader = {
|
|
20
|
+
...ARCGIS_IMAGE_TILE_SOURCE_LOADER_METADATA,
|
|
21
|
+
dataType: null as unknown as ArcGISImageTileSource,
|
|
22
|
+
batchType: null as never,
|
|
23
|
+
preload: preloadArcGISImageTileSourceLoader,
|
|
24
|
+
/** Requires the runtime loader when constructing a source synchronously. */
|
|
25
|
+
createDataSourceSync(
|
|
26
|
+
_url: string,
|
|
27
|
+
_options: ArcGISImageTileLoaderOptions,
|
|
28
|
+
_coreApi?: CoreAPI
|
|
29
|
+
): ArcGISImageTileSource {
|
|
30
|
+
throw new Error(
|
|
31
|
+
'ArcGISImageTileLoader requires async createDataSource() or an @loaders.gl/arcgis/bundled import'
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
} as const satisfies SourceLoader<ArcGISImageTileSource>;
|