@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/LICENSE
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
loaders.gl is licensed under the MIT license
|
|
2
2
|
|
|
3
3
|
Copyright (c) vis.gl contributors
|
|
4
|
+
Copyright (c) 2015 Uber Technologies, Inc.
|
|
4
5
|
|
|
5
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
7
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -20,33 +21,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
20
21
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
22
|
THE SOFTWARE.
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Copyright (c) 2015 Uber Technologies, Inc.
|
|
26
|
-
|
|
27
|
-
Portions of modules/images/src/lib/category-api/binary-image-api.ts are based on
|
|
28
|
-
binary-gltf-utils (https://github.com/Qantas94Heavy/binary-gltf-utils) under the
|
|
29
|
-
MIT License reproduced above.
|
|
30
|
-
|
|
31
|
-
Copyright (c) 2016-17 Karl Cheng
|
|
32
|
-
|
|
33
|
-
Portions of modules/schema-utils/src/lib/utils/async-queue.ts are adapted from
|
|
34
|
-
async-iter-demo (https://github.com/rauschma/async-iter-demo) under the MIT
|
|
35
|
-
License reproduced above.
|
|
36
|
-
|
|
37
|
-
Copyright (c) 2016 Axel Rauschmayer
|
|
38
|
-
|
|
39
|
-
loaders.gl includes certain files from Cesium (https://github.com/CesiumGS/cesium)
|
|
40
|
-
under the Apache 2.0 License, including files in modules/3d-tiles.
|
|
41
|
-
|
|
42
|
-
Copyright 2011-2018 CesiumJS Contributors
|
|
43
|
-
|
|
44
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
|
-
you may not use this file except in compliance with the License.
|
|
46
|
-
You may obtain a copy of the License at
|
|
47
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
48
|
-
|
|
49
|
-
Unless required by applicable law or agreed to in writing, software
|
|
50
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
51
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
52
|
-
See the License for the specific language governing permissions and limitations under the License.
|
|
24
|
+
For adapted portions, see THIRD-PARTY-NOTICES.md and the applicable upstream terms.
|
package/README.md
CHANGED
|
@@ -1,26 +1,58 @@
|
|
|
1
1
|
# @loaders.gl/arcgis
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
ArcGIS REST sources for feature, map, imagery, vector tile, and scene services.
|
|
4
|
+
|
|
5
|
+
Supported formats: ArcGIS, FeatureServer, MapServer, ImageServer, VectorTileServer, SceneServer, PBF, JSON, GeoJSON.
|
|
6
|
+
|
|
7
|
+
Use data already published in ArcGIS Online or ArcGIS Enterprise from your own JavaScript
|
|
8
|
+
application. Connect to existing feature, map, imagery, vector tile and scene services without
|
|
9
|
+
exporting or republishing the data.
|
|
4
10
|
|
|
5
11
|
```ts
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
12
|
+
import {createDataSource} from '@loaders.gl/core';
|
|
13
|
+
import {ArcGISFeatureServerLoader} from '@loaders.gl/arcgis';
|
|
8
14
|
|
|
9
|
-
|
|
15
|
+
// Copy your layer's REST URL from its ArcGIS item page or Services Directory.
|
|
16
|
+
const source = await createDataSource(featureLayerUrl, ArcGISFeatureServerLoader);
|
|
10
17
|
const features = await source.getFeatures({format: 'geojson'});
|
|
11
18
|
```
|
|
12
19
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
Feature queries automatically retrieve bounded pages: ordered offsets when the layer advertises
|
|
21
|
+
pagination and ordering, otherwise object-ID batches. `getFeatures()` uses a 100,000-record default
|
|
22
|
+
cap and throws if it cannot establish completeness. Use `queryFeatures()` to configure the cap and
|
|
23
|
+
inspect partial results, `queryFeaturePages()` to consume pages progressively, or
|
|
24
|
+
`queryFeaturePage()` to request just one page. These checks do not provide a snapshot of a service
|
|
25
|
+
being edited. See the [feature query guide](https://loaders.gl/docs/developer-guide/arcgis/feature-layers).
|
|
26
|
+
|
|
27
|
+
## Connect to your organization
|
|
28
|
+
|
|
29
|
+
Public services need no credential. For secured layers, obtain a token through your application's
|
|
30
|
+
ArcGIS sign-in/session library and pass it through `ArcGISAuthentication` from
|
|
31
|
+
`@loaders.gl/arcgis/authentication`. It supports application-managed token renewal and exact trusted
|
|
32
|
+
origins; loaders.gl does not implement sign-in. Portal and service hosts may differ. Confirm item
|
|
33
|
+
sharing, service privileges and browser CORS access before deploying.
|
|
34
|
+
|
|
35
|
+
See [authentication](https://loaders.gl/docs/developer-guide/arcgis/authentication) and
|
|
36
|
+
[connection troubleshooting](https://loaders.gl/docs/developer-guide/arcgis/troubleshooting).
|
|
18
37
|
|
|
19
|
-
|
|
20
|
-
read operations, not full ArcGIS API parity. Feature queries currently issue one request; automatic
|
|
21
|
-
paging is not implemented. ImageServer tiles use dynamic exports, not native cached tiles.
|
|
38
|
+
## Choose imports and outputs
|
|
22
39
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
40
|
+
The root exports lightweight service loaders. Async `load()` and deck.gl `SourceLayer` import the
|
|
41
|
+
selected implementation on demand. For synchronous `createDataSourceSync()` or direct source classes,
|
|
42
|
+
use `@loaders.gl/arcgis/bundled`; network requests remain asynchronous. Authentication, discovery,
|
|
43
|
+
item resolution and scene aggregation have dedicated subpaths.
|
|
44
|
+
|
|
45
|
+
The clients implement selected read operations, not full ArcGIS API parity. ImageServer tiles use
|
|
46
|
+
dynamic exports rather than native cached tiles. Map images preserve server rendering; feature
|
|
47
|
+
and vector tile outputs need application styling. Web map symbology, popups and editing tools are
|
|
48
|
+
not reproduced automatically.
|
|
49
|
+
|
|
50
|
+
- [Use your existing ArcGIS data](https://loaders.gl/docs/developer-guide/arcgis)
|
|
51
|
+
- [Service protocols, formats and support](https://loaders.gl/docs/modules/arcgis)
|
|
52
|
+
- [Complete service inventory and limitations](https://loaders.gl/docs/modules/arcgis/services)
|
|
26
53
|
- [Examples](https://loaders.gl/examples/arcgis)
|
|
54
|
+
|
|
55
|
+
## Sources and credits
|
|
56
|
+
|
|
57
|
+
See [THIRD-PARTY-NOTICES.md](./THIRD-PARTY-NOTICES.md) for implementation lineage
|
|
58
|
+
and applicable notices, and the project-wide [Attributions and Credits](https://loaders.gl/docs/references-and-credits).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @loaders.gl/arcgis: sources and credits
|
|
2
|
+
|
|
3
|
+
ArcGIS REST service and source adapters developed by vis.gl contributors. Esri publishes the ArcGIS REST API and service specifications.
|
|
4
|
+
|
|
5
|
+
Separately installed `lerc` supplies raster decoding. See also the `raster` and `tiles-3d` package inventories.
|
|
6
|
+
|
|
7
|
+
## Scope and maintenance
|
|
8
|
+
|
|
9
|
+
Original loaders.gl contributions are covered by [LICENSE](./LICENSE). The upstream
|
|
10
|
+
notices above apply to their respective portions and do not change those terms.
|
|
11
|
+
Source adaptations, separately installed libraries, format definitions and test
|
|
12
|
+
data are different contributions. This index is not a transitive dependency
|
|
13
|
+
bill of materials. Runtime dependencies can bring additional notices.
|
|
14
|
+
|
|
15
|
+
Version information is recorded where the repository preserves it. Unpinned
|
|
16
|
+
historical ports are identified by retained source and Git history; no upstream
|
|
17
|
+
version is inferred from a current dependency. Keep copyright headers, full
|
|
18
|
+
terms, source/version information and material modification notes when updating.
|
|
19
|
+
Retain this file and the applicable licenses when redistributing bundles or workers.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getArcGISServices } from "./arcgis-server.js";
|
|
2
2
|
export type { Service as ArcGISService } from "./arcgis-server.js";
|
|
3
|
-
import type { ServiceCapabilities } from '@loaders.gl/loader-utils';
|
|
3
|
+
import type { ServiceCapabilities } from '@loaders.gl/core/loader-utils';
|
|
4
4
|
import type { Service as ArcGISService } from "./arcgis-server.js";
|
|
5
5
|
/** Normalized capabilities discovered from one ArcGIS REST service. */
|
|
6
6
|
export type ArcGISServiceCapabilities = ArcGISService & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arcgis-capability-graph.d.ts","sourceRoot":"","sources":["../../src/arcgis/arcgis-capability-graph.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,iBAAiB,EAAC,2BAAwB;AAClD,YAAY,EAAC,OAAO,IAAI,aAAa,EAAC,2BAAwB;AAC9D,OAAO,KAAK,EAAC,mBAAm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AAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB,CAAC;AAEF;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAC9C,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,4BAAiC,GACzC,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAgBvC;AAED,sEAAsE;AACtE,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,qBAAqB,EAC5B,YAAY,GAAE,sBAA2B,GACxC,yBAAyB,GAAG,SAAS,CAyBvC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { CoreAPI, SourceLoader } from '@loaders.gl/loader-utils';
|
|
2
|
-
import type { ArcGISVectorSource } from "./arcgis-feature-server-
|
|
3
|
-
import type {
|
|
4
|
-
/** Loads the
|
|
1
|
+
import type { CoreAPI, SourceLoader } from '@loaders.gl/core/loader-utils';
|
|
2
|
+
import type { ArcGISVectorSource } from "./arcgis-feature-server-loader.js";
|
|
3
|
+
import type { ArcGISFeatureServerLoaderOptions } from "../arcgis-source-types.js";
|
|
4
|
+
/** Loads the ArcGISFeatureServerLoader implementation on first asynchronous use. */
|
|
5
5
|
declare function preloadArcGISFeatureServerSourceLoader(): Promise<SourceLoader<ArcGISVectorSource>>;
|
|
6
|
-
/** Lightweight service descriptor; use
|
|
7
|
-
export declare const
|
|
6
|
+
/** Lightweight service descriptor; use createDataSource() or the synchronous /bundled entrypoint. */
|
|
7
|
+
export declare const ArcGISFeatureServerLoader: {
|
|
8
8
|
readonly dataType: ArcGISVectorSource;
|
|
9
9
|
readonly batchType: never;
|
|
10
10
|
readonly preload: typeof preloadArcGISFeatureServerSourceLoader;
|
|
11
11
|
/** Requires the runtime loader when constructing a source synchronously. */
|
|
12
|
-
readonly
|
|
12
|
+
readonly createDataSourceSync: (_url: string, _options: ArcGISFeatureServerLoaderOptions, _coreApi?: CoreAPI) => ArcGISVectorSource;
|
|
13
13
|
readonly name: "ArcGISFeatureServer";
|
|
14
14
|
readonly id: "arcgis-feature-server";
|
|
15
15
|
readonly module: "arcgis";
|
|
@@ -30,4 +30,4 @@ export declare const ArcGISFeatureServerSourceLoader: {
|
|
|
30
30
|
readonly testURL: (url: string) => boolean;
|
|
31
31
|
};
|
|
32
32
|
export {};
|
|
33
|
-
//# sourceMappingURL=arcgis-feature-server-
|
|
33
|
+
//# sourceMappingURL=arcgis-feature-server-loader-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcgis-feature-server-loader-types.d.ts","sourceRoot":"","sources":["../../src/arcgis/arcgis-feature-server-loader-types.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAC,kBAAkB,EAAC,0CAAuC;AACvE,OAAO,KAAK,EAAC,gCAAgC,EAAC,kCAA+B;AAE7E,oFAAoF;AACpF,iBAAe,sCAAsC,IAAI,OAAO,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,CAKjG;AAED,qGAAqG;AACrG,eAAO,MAAM,yBAAyB;uBAEP,kBAAkB;wBAC5B,KAAK;;IAExB,4EAA4E;0CAEpE,MAAM,YACF,gCAAgC,aAC/B,OAAO,KACjB,kBAAkB;;;;;;;;;;;;;;;;;;;CAK8B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 ArcGISFeatureServerLoader implementation on first asynchronous use. */
|
|
6
|
+
async function preloadArcGISFeatureServerSourceLoader() {
|
|
7
|
+
const { ArcGISFeatureServerLoaderWithParser } = await import('@loaders.gl/arcgis/arcgis-feature-server-loader');
|
|
8
|
+
return ArcGISFeatureServerLoaderWithParser;
|
|
9
|
+
}
|
|
10
|
+
/** Lightweight service descriptor; use createDataSource() or the synchronous /bundled entrypoint. */
|
|
11
|
+
export const ArcGISFeatureServerLoader = {
|
|
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
|
+
createDataSourceSync(_url, _options, _coreApi) {
|
|
18
|
+
throw new Error('ArcGISFeatureServerLoader requires async createDataSource() or an @loaders.gl/arcgis/bundled import');
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=arcgis-feature-server-loader-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcgis-feature-server-loader-types.js","sourceRoot":"","sources":["../../src/arcgis/arcgis-feature-server-loader-types.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EAAC,4CAA4C,EAAC,kCAA+B;AAKpF,oFAAoF;AACpF,KAAK,UAAU,sCAAsC;IACnD,MAAM,EAAC,mCAAmC,EAAC,GAAG,MAAM,MAAM,CACxD,iDAAiD,CAClD,CAAC;IACF,OAAO,mCAAmC,CAAC;AAC7C,CAAC;AAED,qGAAqG;AACrG,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,GAAG,4CAA4C;IAC/C,QAAQ,EAAE,IAAqC;IAC/C,SAAS,EAAE,IAAa;IACxB,OAAO,EAAE,sCAAsC;IAC/C,4EAA4E;IAC5E,oBAAoB,CAClB,IAAY,EACZ,QAA0C,EAC1C,QAAkB;QAElB,MAAM,IAAI,KAAK,CACb,qGAAqG,CACtG,CAAC;IACJ,CAAC;CACkD,CAAC"}
|
package/dist/arcgis/{arcgis-feature-server-source-loader.d.ts → arcgis-feature-server-loader.d.ts}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ArcGISAuthentication } from "../authentication.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type { Schema } from '@loaders.gl/schema';
|
|
4
|
-
import type { CoreAPI, VectorSourceMetadata, GetFeaturesParameters, VectorSource, VectorSourceData } from '@loaders.gl/loader-utils';
|
|
5
|
-
import { DataSource } from '@loaders.gl/loader-utils';
|
|
2
|
+
import type { ArcGISFeatureServerLoaderOptions } from "../arcgis-source-types.js";
|
|
3
|
+
import type { Schema } from '@loaders.gl/core/schema';
|
|
4
|
+
import type { CoreAPI, VectorSourceMetadata, GetFeaturesParameters, VectorSource, VectorSourceData } from '@loaders.gl/core/loader-utils';
|
|
5
|
+
import { DataSource } from '@loaders.gl/core/loader-utils';
|
|
6
6
|
import type { ArcGISFeatureQueryParameters, ArcGISFeatureQueryOptions, ArcGISFeatureQueryResult, ArcGISFeatureObjectIds, ArcGISFeatureExtent } from "../arcgis-feature-query-types.js";
|
|
7
7
|
export { ArcGISFeatureQueryError } from "./arcgis-feature-query.js";
|
|
8
8
|
/** Runtime service loader for synchronous construction. */
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const ArcGISFeatureServerLoaderWithParser: {
|
|
10
10
|
readonly dataType: ArcGISVectorSource;
|
|
11
11
|
readonly batchType: never;
|
|
12
12
|
readonly preload: undefined;
|
|
13
13
|
/** Supplies ArcGIS credentials after loading the selected implementation. */
|
|
14
14
|
readonly getAuthentications: () => (typeof ArcGISAuthentication)[];
|
|
15
|
-
readonly
|
|
15
|
+
readonly createDataSourceSync: (url: string, options: ArcGISFeatureServerLoaderOptions, coreApi?: CoreAPI) => ArcGISVectorSource;
|
|
16
16
|
readonly name: "ArcGISFeatureServer";
|
|
17
17
|
readonly id: "arcgis-feature-server";
|
|
18
18
|
readonly module: "arcgis";
|
|
@@ -37,11 +37,11 @@ export declare const ArcGISFeatureServerSourceLoaderWithParser: {
|
|
|
37
37
|
* Note - exports a big API, that could be exposed here if there is a use case
|
|
38
38
|
* @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm
|
|
39
39
|
*/
|
|
40
|
-
export declare class ArcGISVectorSource extends DataSource<string,
|
|
40
|
+
export declare class ArcGISVectorSource extends DataSource<string, ArcGISFeatureServerLoaderOptions> implements VectorSource {
|
|
41
41
|
/** Cached ArcGIS FeatureServer metadata request. */
|
|
42
42
|
protected formatSpecificMetadata: Promise<any> | null;
|
|
43
43
|
/** Creates a query source for a FeatureServer or queryable MapServer layer. */
|
|
44
|
-
constructor(url: string, options:
|
|
44
|
+
constructor(url: string, options: ArcGISFeatureServerLoaderOptions, coreApi?: CoreAPI);
|
|
45
45
|
/** Returns a schema inferred from ArcGIS FeatureServer metadata fields. */
|
|
46
46
|
getSchema(): Promise<Schema>;
|
|
47
47
|
/** Returns normalized VectorSource metadata. */
|
|
@@ -81,4 +81,4 @@ export declare class ArcGISVectorSource extends DataSource<string, ArcGISFeature
|
|
|
81
81
|
/** Builds an ArcGIS FeatureServer URL. */
|
|
82
82
|
protected getUrl(path: string, options: Record<string, unknown>, extra?: Record<string, unknown>): string;
|
|
83
83
|
}
|
|
84
|
-
//# sourceMappingURL=arcgis-feature-server-
|
|
84
|
+
//# sourceMappingURL=arcgis-feature-server-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcgis-feature-server-loader.d.ts","sourceRoot":"","sources":["../../src/arcgis/arcgis-feature-server-loader.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,oBAAoB,EAAC,6BAA0B;AAEvD,OAAO,KAAK,EAEV,gCAAgC,EACjC,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,w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G,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"}
|
package/dist/arcgis/{arcgis-feature-server-source-loader.js → arcgis-feature-server-loader.js}
RENAMED
|
@@ -3,20 +3,21 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import { ArcGISAuthentication } from "../authentication.js";
|
|
5
5
|
import { ARCGIS_FEATURE_SERVER_SOURCE_LOADER_METADATA } from "../arcgis-source-types.js";
|
|
6
|
-
import { convertFeaturesToWKBArrowTable
|
|
7
|
-
import {
|
|
6
|
+
import { convertFeaturesToWKBArrowTable } from '@loaders.gl/core/arrow-geometry/feature-collection-to-arrow';
|
|
7
|
+
import { convertGeojsonToBinaryFeatureCollection } from '@loaders.gl/core/arrow-geometry/legacy-binary';
|
|
8
|
+
import { DataSource } from '@loaders.gl/core/loader-utils';
|
|
8
9
|
import { buildArcGISResourceURL } from "./arcgis-url-utils.js";
|
|
9
10
|
import { ArcGISFeatureQueryClient } from "./arcgis-feature-query.js";
|
|
10
11
|
export { ArcGISFeatureQueryError } from "./arcgis-feature-query.js";
|
|
11
12
|
/** Runtime service loader for synchronous construction. */
|
|
12
|
-
export const
|
|
13
|
+
export const ArcGISFeatureServerLoaderWithParser = {
|
|
13
14
|
...ARCGIS_FEATURE_SERVER_SOURCE_LOADER_METADATA,
|
|
14
15
|
dataType: null,
|
|
15
16
|
batchType: null,
|
|
16
17
|
preload: undefined,
|
|
17
18
|
/** Supplies ArcGIS credentials after loading the selected implementation. */
|
|
18
19
|
getAuthentications: () => [ArcGISAuthentication],
|
|
19
|
-
|
|
20
|
+
createDataSourceSync: (url, options, coreApi) => new ArcGISVectorSource(url, options, coreApi)
|
|
20
21
|
};
|
|
21
22
|
/**
|
|
22
23
|
* ArcGIS FeatureServer
|
|
@@ -64,7 +65,7 @@ export class ArcGISVectorSource extends DataSource {
|
|
|
64
65
|
default:
|
|
65
66
|
return convertFeaturesToWKBArrowTable(features, {
|
|
66
67
|
encodingPreference: parameters.geoarrow?.encodingPreference
|
|
67
|
-
});
|
|
68
|
+
}).data;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
/** Collects a bounded query and returns explicit completeness evidence alongside its data. */
|
|
@@ -277,4 +278,4 @@ function getSchemaTypeFromArcGISFieldType(type) {
|
|
|
277
278
|
return 'utf8';
|
|
278
279
|
}
|
|
279
280
|
}
|
|
280
|
-
//# sourceMappingURL=arcgis-feature-server-
|
|
281
|
+
//# sourceMappingURL=arcgis-feature-server-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcgis-feature-server-loader.js","sourceRoot":"","sources":["../../src/arcgis/arcgis-feature-server-loader.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EAAC,oBAAoB,EAAC,6BAA0B;AACvD,OAAO,EAAC,4CA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ArcGISImageSource } from "./arcgis-image-server-
|
|
3
|
-
import type {
|
|
4
|
-
/** Loads the
|
|
1
|
+
import type { CoreAPI, SourceLoader } from '@loaders.gl/core/loader-utils';
|
|
2
|
+
import type { ArcGISImageSource } from "./arcgis-image-server-loader.js";
|
|
3
|
+
import type { ArcGISImageServerLoaderOptions } from "../arcgis-source-types.js";
|
|
4
|
+
/** Loads the ArcGISImageServerLoader implementation on first asynchronous use. */
|
|
5
5
|
declare function preloadArcGISImageServerSourceLoader(): Promise<SourceLoader<ArcGISImageSource>>;
|
|
6
|
-
/** Lightweight service descriptor; use
|
|
7
|
-
export declare const
|
|
6
|
+
/** Lightweight service descriptor; use createDataSource() or the synchronous /bundled entrypoint. */
|
|
7
|
+
export declare const ArcGISImageServerLoader: {
|
|
8
8
|
readonly dataType: ArcGISImageSource;
|
|
9
9
|
readonly batchType: never;
|
|
10
10
|
readonly preload: typeof preloadArcGISImageServerSourceLoader;
|
|
11
11
|
/** Requires the runtime loader when constructing a source synchronously. */
|
|
12
|
-
readonly
|
|
12
|
+
readonly createDataSourceSync: (_url: string, _options: ArcGISImageServerLoaderOptions, _coreApi?: CoreAPI) => ArcGISImageSource;
|
|
13
13
|
readonly name: "ArcGISImageServer";
|
|
14
14
|
readonly id: "arcgis-image-server";
|
|
15
15
|
readonly module: "arcgis";
|
|
@@ -28,4 +28,4 @@ export declare const ArcGISImageServerSourceLoader: {
|
|
|
28
28
|
readonly testURL: (url: string) => boolean;
|
|
29
29
|
};
|
|
30
30
|
export {};
|
|
31
|
-
//# sourceMappingURL=arcgis-image-server-
|
|
31
|
+
//# sourceMappingURL=arcgis-image-server-loader-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcgis-image-server-loader-types.d.ts","sourceRoot":"","sources":["../../src/arcgis/arcgis-image-server-loader-types.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAC,iBAAiB,EAAC,wCAAqC;AACpE,OAAO,KAAK,EAAC,8BAA8B,EAAC,kCAA+B;AAE3E,kFAAkF;AAClF,iBAAe,oCAAoC,IAAI,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC,CAK9F;AAED,qGAAqG;AACrG,eAAO,MAAM,uBAAuB;uBAEL,iBAAiB;wBAC3B,KAAK;;IAExB,4EAA4E;0CAEpE,MAAM,YACF,8BAA8B,aAC7B,OAAO,KACjB,iBAAiB;;;;;;;;;;;;;;;;;CAK8B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
4
|
+
import { ARCGIS_IMAGE_SERVER_SOURCE_LOADER_METADATA } from "../arcgis-source-types.js";
|
|
5
|
+
/** Loads the ArcGISImageServerLoader implementation on first asynchronous use. */
|
|
6
|
+
async function preloadArcGISImageServerSourceLoader() {
|
|
7
|
+
const { ArcGISImageServerLoaderWithParser } = await import('@loaders.gl/arcgis/arcgis-image-server-loader');
|
|
8
|
+
return ArcGISImageServerLoaderWithParser;
|
|
9
|
+
}
|
|
10
|
+
/** Lightweight service descriptor; use createDataSource() or the synchronous /bundled entrypoint. */
|
|
11
|
+
export const ArcGISImageServerLoader = {
|
|
12
|
+
...ARCGIS_IMAGE_SERVER_SOURCE_LOADER_METADATA,
|
|
13
|
+
dataType: null,
|
|
14
|
+
batchType: null,
|
|
15
|
+
preload: preloadArcGISImageServerSourceLoader,
|
|
16
|
+
/** Requires the runtime loader when constructing a source synchronously. */
|
|
17
|
+
createDataSourceSync(_url, _options, _coreApi) {
|
|
18
|
+
throw new Error('ArcGISImageServerLoader requires async createDataSource() or an @loaders.gl/arcgis/bundled import');
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=arcgis-image-server-loader-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcgis-image-server-loader-types.js","sourceRoot":"","sources":["../../src/arcgis/arcgis-image-server-loader-types.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EAAC,0CAA0C,EAAC,kCAA+B;AAKlF,kFAAkF;AAClF,KAAK,UAAU,oCAAoC;IACjD,MAAM,EAAC,iCAAiC,EAAC,GAAG,MAAM,MAAM,CACtD,+CAA+C,CAChD,CAAC;IACF,OAAO,iCAAiC,CAAC;AAC3C,CAAC;AAED,qGAAqG;AACrG,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,GAAG,0CAA0C;IAC7C,QAAQ,EAAE,IAAoC;IAC9C,SAAS,EAAE,IAAa;IACxB,OAAO,EAAE,oCAAoC;IAC7C,4EAA4E;IAC5E,oBAAoB,CAClB,IAAY,EACZ,QAAwC,EACxC,QAAkB;QAElB,MAAM,IAAI,KAAK,CACb,mGAAmG,CACpG,CAAC;IACJ,CAAC;CACiD,CAAC"}
|
package/dist/arcgis/{arcgis-image-server-source-loader.d.ts → arcgis-image-server-loader.d.ts}
RENAMED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { ArcGISAuthentication } from "../authentication.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import type { LERCData } from '@loaders.gl/lerc';
|
|
2
|
+
import type { ArcGISImageServerLoaderOptions, ArcGISExportImageParameters } from "../arcgis-source-types.js";
|
|
3
|
+
import type { CoreAPI, ImageSource, ImageSourceMetadata, GetImageParameters } from '@loaders.gl/core/loader-utils';
|
|
4
|
+
import { DataSource } from '@loaders.gl/core/loader-utils';
|
|
5
|
+
import type { LERCData } from '@loaders.gl/raster';
|
|
7
6
|
/** Runtime service loader for synchronous construction. */
|
|
8
|
-
export declare const
|
|
7
|
+
export declare const ArcGISImageServerLoaderWithParser: {
|
|
9
8
|
readonly dataType: ArcGISImageSource;
|
|
10
9
|
readonly batchType: never;
|
|
11
10
|
readonly preload: undefined;
|
|
12
11
|
/** Supplies ArcGIS credentials after loading the selected implementation. */
|
|
13
12
|
readonly getAuthentications: () => (typeof ArcGISAuthentication)[];
|
|
14
|
-
readonly
|
|
13
|
+
readonly createDataSourceSync: (url: string, props: ArcGISImageServerLoaderOptions, coreApi?: CoreAPI) => ArcGISImageSource;
|
|
15
14
|
readonly name: "ArcGISImageServer";
|
|
16
15
|
readonly id: "arcgis-image-server";
|
|
17
16
|
readonly module: "arcgis";
|
|
@@ -34,16 +33,16 @@ export declare const ArcGISImageServerSourceLoaderWithParser: {
|
|
|
34
33
|
* Note - exports a big API, that could be exposed here if there is a use case
|
|
35
34
|
* @see https://developers.arcgis.com/rest/services-reference/enterprise/image-service.htm
|
|
36
35
|
*/
|
|
37
|
-
export declare class ArcGISImageSource extends DataSource<string,
|
|
38
|
-
constructor(url: string, props:
|
|
36
|
+
export declare class ArcGISImageSource extends DataSource<string, ArcGISImageServerLoaderOptions> implements ImageSource {
|
|
37
|
+
constructor(url: string, props: ArcGISImageServerLoaderOptions, coreApi?: CoreAPI);
|
|
39
38
|
/** Returns normalized ImageSource metadata. */
|
|
40
39
|
getMetadata(): Promise<ImageSourceMetadata>;
|
|
41
40
|
/** Requests an image from generic ImageSource parameters. */
|
|
42
|
-
getImage(parameters: GetImageParameters): Promise<
|
|
41
|
+
getImage(parameters: GetImageParameters): Promise<ImageBitmap>;
|
|
43
42
|
/** Requests the ArcGIS ImageServer metadata document. */
|
|
44
43
|
metadata(): Promise<unknown>;
|
|
45
44
|
/** Requests an exported image from the ArcGIS ImageServer endpoint. */
|
|
46
|
-
exportImage(options: ArcGISExportImageParameters, signal?: AbortSignal): Promise<
|
|
45
|
+
exportImage(options: ArcGISExportImageParameters, signal?: AbortSignal): Promise<ImageBitmap>;
|
|
47
46
|
/** Requests an analytical LERC raster from the ArcGIS ImageServer endpoint. */
|
|
48
47
|
exportRaster(options: ArcGISExportImageParameters, signal?: AbortSignal): Promise<LERCData>;
|
|
49
48
|
/** Builds a metadata URL for the ArcGIS ImageServer endpoint. */
|
|
@@ -57,4 +56,4 @@ export declare class ArcGISImageSource extends DataSource<string, ArcGISImageSou
|
|
|
57
56
|
/** Checks an ArcGIS ImageServer response. */
|
|
58
57
|
protected checkResponse(response: Response): Promise<void>;
|
|
59
58
|
}
|
|
60
|
-
//# sourceMappingURL=arcgis-image-server-
|
|
59
|
+
//# sourceMappingURL=arcgis-image-server-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcgis-image-server-loader.d.ts","sourceRoot":"","sources":["../../src/arcgis/arcgis-image-server-loader.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,oBAAoB,EAAC,6BAA0B;AAEvD,OAAO,KAAK,EACV,8BAA8B,EAC9B,2BAA2B,EAC5B,kCAA+B;AAGhC,OAAO,KAAK,EACV,OAAO,EAEP,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AACzD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAIjD,2DAA2D;AAC3D,eAAO,MAAM,iCAAiC;uBAEf,iBAAiB;wBAC3B,KAAK;;IAExB,6EAA6E;;yCAGtE,MAAM,SACJ,8BAA8B,YAC3B,OAAO,KAChB,iBAAiB;;;;;;;;;;;;;;;;;CAC8B,CAAC;AAErD;;;;GAIG;AACH,qBAAa,iBACX,SAAQ,UAAU,CAAC,MAAM,EAAE,8BAA8B,CACzD,YAAW,WAAW;gBAEV,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,8BAA8B,EAAE,OAAO,CAAC,EAAE,OAAO;IAIjF,+CAA+C;IACzC,WAAW,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAIjD,6DAA6D;IACvD,QAAQ,CAAC,UAAU,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC;IAcpE,yDAAyD;IACnD,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAMlC,uEAAuE;IACjE,WAAW,CACf,OAAO,EAAE,2BAA2B,EACpC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,WAAW,CAAC;IAOvB,+EAA+E;IACzE,YAAY,CAChB,OAAO,EAAE,2BAA2B,EACpC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,QAAQ,CAAC;IAapB,iEAAiE;IACjE,WAAW,CAAC,OAAO,CAAC,EAAE;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAC,GAAG,MAAM;IAIrE,qEAAqE;IACrE,cAAc,CAAC,OAAO,EAAE,2BAA2B,GAAG,MAAM;IAW5D,wCAAwC;IACxC,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;IAIT,6CAA6C;cAC7B,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAOjE"}
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
import { ArcGISAuthentication } from "../authentication.js";
|
|
5
5
|
import { ARCGIS_IMAGE_SERVER_SOURCE_LOADER_METADATA } from "../arcgis-source-types.js";
|
|
6
6
|
import { ImageLoader } from '@loaders.gl/images';
|
|
7
|
-
import { DataSource } from '@loaders.gl/loader-utils';
|
|
8
|
-
import { LERCLoader } from '@loaders.gl/
|
|
7
|
+
import { DataSource } from '@loaders.gl/core/loader-utils';
|
|
8
|
+
import { LERCLoader } from '@loaders.gl/raster';
|
|
9
9
|
import { buildArcGISResourceURL } from "./arcgis-url-utils.js";
|
|
10
10
|
/** Runtime service loader for synchronous construction. */
|
|
11
|
-
export const
|
|
11
|
+
export const ArcGISImageServerLoaderWithParser = {
|
|
12
12
|
...ARCGIS_IMAGE_SERVER_SOURCE_LOADER_METADATA,
|
|
13
13
|
dataType: null,
|
|
14
14
|
batchType: null,
|
|
15
15
|
preload: undefined,
|
|
16
16
|
/** Supplies ArcGIS credentials after loading the selected implementation. */
|
|
17
17
|
getAuthentications: () => [ArcGISAuthentication],
|
|
18
|
-
|
|
18
|
+
createDataSourceSync: (url, props, coreApi) => new ArcGISImageSource(url, props, coreApi)
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* ArcGIS ImageServer
|
|
@@ -127,4 +127,4 @@ function normalizeArcGISImageServerMetadata(metadata) {
|
|
|
127
127
|
]
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
-
//# sourceMappingURL=arcgis-image-server-
|
|
130
|
+
//# sourceMappingURL=arcgis-image-server-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcgis-image-server-loader.js","sourceRoot":"","sources":["../../src/arcgis/arcgis-image-server-loader.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EAAC,oBAAoB,EAAC,6BAA0B;AACvD,OAAO,EAAC,0CAA0C,EAAC,kCAA+B;AAMlF,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAQ/C,OAAO,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AAEzD,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAC,sBAAsB,EAAC,8BAA2B;AAE1D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,GAAG,0CAA0C;IAC7C,QAAQ,EAAE,IAAoC;IAC9C,SAAS,EAAE,IAAa;IACxB,OAAO,EAAE,SAAS;IAClB,6EAA6E;IAC7E,kBAAkB,EAAE,GAAG,EAAE,CAAC,CAAC,oBAAoB,CAAC;IAChD,oBA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
|
|
|
1
|
-
import type { CoreAPI, SourceLoader } from '@loaders.gl/loader-utils';
|
|
2
|
-
import type { ArcGISImageTileSource } from "./arcgis-image-tile-
|
|
3
|
-
import type {
|
|
4
|
-
/** Loads the
|
|
1
|
+
import type { CoreAPI, SourceLoader } from '@loaders.gl/core/loader-utils';
|
|
2
|
+
import type { ArcGISImageTileSource } from "./arcgis-image-tile-loader.js";
|
|
3
|
+
import type { ArcGISImageTileLoaderOptions } from "../arcgis-source-types.js";
|
|
4
|
+
/** Loads the ArcGISImageTileLoader implementation on first asynchronous use. */
|
|
5
5
|
declare function preloadArcGISImageTileSourceLoader(): Promise<SourceLoader<ArcGISImageTileSource>>;
|
|
6
|
-
/** Lightweight service descriptor; use
|
|
7
|
-
export declare const
|
|
6
|
+
/** Lightweight service descriptor; use createDataSource() or the synchronous /bundled entrypoint. */
|
|
7
|
+
export declare const ArcGISImageTileLoader: {
|
|
8
8
|
readonly dataType: ArcGISImageTileSource;
|
|
9
9
|
readonly batchType: never;
|
|
10
10
|
readonly preload: typeof preloadArcGISImageTileSourceLoader;
|
|
11
11
|
/** Requires the runtime loader when constructing a source synchronously. */
|
|
12
|
-
readonly
|
|
12
|
+
readonly createDataSourceSync: (_url: string, _options: ArcGISImageTileLoaderOptions, _coreApi?: CoreAPI) => ArcGISImageTileSource;
|
|
13
13
|
readonly name: "ArcGIS ImageServer tiles";
|
|
14
14
|
readonly id: "arcgis-image-server-tiles";
|
|
15
15
|
readonly module: "arcgis";
|
|
@@ -28,4 +28,4 @@ export declare const ArcGISImageTileSourceLoader: {
|
|
|
28
28
|
readonly testURL: (url: string) => boolean;
|
|
29
29
|
};
|
|
30
30
|
export {};
|
|
31
|
-
//# sourceMappingURL=arcgis-image-tile-
|
|
31
|
+
//# sourceMappingURL=arcgis-image-tile-loader-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcgis-image-tile-loader-types.d.ts","sourceRoot":"","sources":["../../src/arcgis/arcgis-image-tile-loader-types.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAC,qBAAqB,EAAC,sCAAmC;AACtE,OAAO,KAAK,EAAC,4BAA4B,EAAC,kCAA+B;AAEzE,gFAAgF;AAChF,iBAAe,kCAAkC,IAAI,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC,CAKhG;AAED,qGAAqG;AACrG,eAAO,MAAM,qBAAqB;uBAEH,qBAAqB;wBAC/B,KAAK;;IAExB,4EAA4E;0CAEpE,MAAM,YACF,4BAA4B,aAC3B,OAAO,KACjB,qBAAqB;;;;;;;;;;;;;;;;;CAK8B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
4
|
+
import { ARCGIS_IMAGE_TILE_SOURCE_LOADER_METADATA } from "../arcgis-source-types.js";
|
|
5
|
+
/** Loads the ArcGISImageTileLoader implementation on first asynchronous use. */
|
|
6
|
+
async function preloadArcGISImageTileSourceLoader() {
|
|
7
|
+
const { ArcGISImageTileLoaderWithParser } = await import('@loaders.gl/arcgis/arcgis-image-tile-loader');
|
|
8
|
+
return ArcGISImageTileLoaderWithParser;
|
|
9
|
+
}
|
|
10
|
+
/** Lightweight service descriptor; use createDataSource() or the synchronous /bundled entrypoint. */
|
|
11
|
+
export const ArcGISImageTileLoader = {
|
|
12
|
+
...ARCGIS_IMAGE_TILE_SOURCE_LOADER_METADATA,
|
|
13
|
+
dataType: null,
|
|
14
|
+
batchType: null,
|
|
15
|
+
preload: preloadArcGISImageTileSourceLoader,
|
|
16
|
+
/** Requires the runtime loader when constructing a source synchronously. */
|
|
17
|
+
createDataSourceSync(_url, _options, _coreApi) {
|
|
18
|
+
throw new Error('ArcGISImageTileLoader requires async createDataSource() or an @loaders.gl/arcgis/bundled import');
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=arcgis-image-tile-loader-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcgis-image-tile-loader-types.js","sourceRoot":"","sources":["../../src/arcgis/arcgis-image-tile-loader-types.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EAAC,wCAAwC,EAAC,kCAA+B;AAKhF,gFAAgF;AAChF,KAAK,UAAU,kCAAkC;IAC/C,MAAM,EAAC,+BAA+B,EAAC,GAAG,MAAM,MAAM,CACpD,6CAA6C,CAC9C,CAAC;IACF,OAAO,+BAA+B,CAAC;AACzC,CAAC;AAED,qGAAqG;AACrG,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,GAAG,wCAAwC;IAC3C,QAAQ,EAAE,IAAwC;IAClD,SAAS,EAAE,IAAa;IACxB,OAAO,EAAE,kCAAkC;IAC3C,4EAA4E;IAC5E,oBAAoB,CAClB,IAAY,EACZ,QAAsC,EACtC,QAAkB;QAElB,MAAM,IAAI,KAAK,CACb,iGAAiG,CAClG,CAAC;IACJ,CAAC;CACqD,CAAC"}
|