@loaders.gl/services 5.0.0-alpha.6 → 5.0.0-alpha.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/services",
3
- "version": "5.0.0-alpha.6",
3
+ "version": "5.0.0-alpha.7",
4
4
  "description": "Framework-independent loaders and sources for geospatial services",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,16 +49,16 @@
49
49
  "README.md"
50
50
  ],
51
51
  "dependencies": {
52
- "@loaders.gl/gis": "5.0.0-alpha.6",
53
- "@loaders.gl/i3s": "5.0.0-alpha.6",
54
- "@loaders.gl/images": "5.0.0-alpha.6",
55
- "@loaders.gl/lerc": "5.0.0-alpha.6",
56
- "@loaders.gl/loader-utils": "5.0.0-alpha.6",
57
- "@loaders.gl/mvt": "5.0.0-alpha.6",
58
- "@loaders.gl/schema": "5.0.0-alpha.6"
52
+ "@loaders.gl/gis": "5.0.0-alpha.7",
53
+ "@loaders.gl/i3s": "5.0.0-alpha.7",
54
+ "@loaders.gl/images": "5.0.0-alpha.7",
55
+ "@loaders.gl/lerc": "5.0.0-alpha.7",
56
+ "@loaders.gl/loader-utils": "5.0.0-alpha.7",
57
+ "@loaders.gl/mvt": "5.0.0-alpha.7",
58
+ "@loaders.gl/schema": "5.0.0-alpha.7"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@loaders.gl/core": "~5.0.0-alpha.0"
62
62
  },
63
- "gitHead": "9b9ea7738e0fe63e55c19c136283705f99e0b9bf"
63
+ "gitHead": "e1e6174f9e66f4f3e695e8778f769429508342f1"
64
64
  }
@@ -184,13 +184,15 @@ export class ArcGISVectorSource
184
184
  /** Builds a query URL from generic vector source parameters. */
185
185
  getFeaturesURL(parameters: GetFeaturesParameters): string {
186
186
  const defaultParameters = this.options['arcgis-feature-server']?.queryParameters || {};
187
- const spatialReference = normalizeArcGISSpatialReference(parameters.crs) || 4326;
187
+ const outputSpatialReference = normalizeArcGISSpatialReference(parameters.crs) || 4326;
188
+ const requestSpatialReference =
189
+ normalizeArcGISSpatialReference(parameters.requestCrs) || outputSpatialReference;
188
190
  const queryParameters: ArcGISFeatureServiceQueryOptions = {
189
191
  returnGeometry: true,
190
192
  where: '1=1',
191
193
  outFields: '*',
192
- outSR: spatialReference,
193
- inSR: spatialReference,
194
+ outSR: outputSpatialReference,
195
+ inSR: requestSpatialReference,
194
196
  f: 'geojson',
195
197
  ...defaultParameters
196
198
  };
@@ -114,10 +114,10 @@ export class ArcGISImageSource
114
114
 
115
115
  /** Requests an image from generic ImageSource parameters. */
116
116
  async getImage(parameters: GetImageParameters): Promise<ImageType> {
117
- const {boundingBox, bbox, width, height, crs, format, signal} = parameters;
117
+ const {boundingBox, width, height, crs, format, signal} = parameters;
118
118
  const spatialReference = normalizeArcGISSpatialReference(crs) || '4326';
119
119
  const imageParameters: ArcGISExportImageParameters = {
120
- bbox: boundingBox ? [...boundingBox[0], ...boundingBox[1]] : bbox!,
120
+ bbox: [...boundingBox[0], ...boundingBox[1]],
121
121
  bboxSR: spatialReference,
122
122
  imageSR: spatialReference,
123
123
  width,