@itwin/map-layers-formats 5.0.0-dev.1 → 5.0.0-dev.100
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/CHANGELOG.md +73 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js +3 -3
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts +4 -4
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js +70 -67
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js +17 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts +2 -2
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js +4 -2
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js +7 -4
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.d.ts +2 -2
- package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.js +3 -2
- package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.d.ts +5 -5
- package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.js +20 -20
- package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +3 -3
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js +37 -32
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/cjs/ArcGisFeature/EsriSymbology.d.ts +1 -1
- package/lib/cjs/ArcGisFeature/EsriSymbology.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/EsriSymbology.js +28 -7
- package/lib/cjs/ArcGisFeature/EsriSymbology.js.map +1 -1
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js +48 -72
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/cjs/Feature/DefaultMarkerIcon.js +9 -9
- package/lib/cjs/Feature/DefaultMarkerIcon.js.map +1 -1
- package/lib/cjs/Feature/FeatureCanvasRenderer.d.ts +2 -2
- package/lib/cjs/Feature/FeatureCanvasRenderer.d.ts.map +1 -1
- package/lib/cjs/Feature/FeatureCanvasRenderer.js +2 -0
- package/lib/cjs/Feature/FeatureCanvasRenderer.js.map +1 -1
- package/lib/cjs/Feature/FeatureInfoReader.js +20 -20
- package/lib/cjs/Feature/FeatureInfoReader.js.map +1 -1
- package/lib/cjs/Feature/FeatureSymbology.js.map +1 -1
- package/lib/cjs/Feature/RandomMapColor.js +10 -10
- package/lib/cjs/Feature/RandomMapColor.js.map +1 -1
- package/lib/cjs/GeoJSON/GeoJSONGeometry.d.ts +1 -1
- package/lib/cjs/GeoJSON/GeoJSONGeometry.d.ts.map +1 -1
- package/lib/cjs/GeoJSON/GeoJSONGeometry.js.map +1 -1
- package/lib/cjs/GeoJSON/GeoJSONGeometryReader.d.ts +1 -1
- package/lib/cjs/GeoJSON/GeoJSONGeometryReader.d.ts.map +1 -1
- package/lib/cjs/GeoJSON/GeoJSONGeometryReader.js +5 -4
- package/lib/cjs/GeoJSON/GeoJSONGeometryReader.js.map +1 -1
- package/lib/cjs/GoogleMaps/GoogleMapDecorator.d.ts +36 -0
- package/lib/cjs/GoogleMaps/GoogleMapDecorator.d.ts.map +1 -0
- package/lib/cjs/GoogleMaps/GoogleMapDecorator.js +87 -0
- package/lib/cjs/GoogleMaps/GoogleMapDecorator.js.map +1 -0
- package/lib/cjs/GoogleMaps/GoogleMaps.d.ts +166 -0
- package/lib/cjs/GoogleMaps/GoogleMaps.d.ts.map +1 -0
- package/lib/cjs/GoogleMaps/GoogleMaps.js +56 -0
- package/lib/cjs/GoogleMaps/GoogleMaps.js.map +1 -0
- package/lib/cjs/GoogleMaps/GoogleMapsImageryFormat.d.ts +10 -0
- package/lib/cjs/GoogleMaps/GoogleMapsImageryFormat.d.ts.map +1 -0
- package/lib/cjs/GoogleMaps/GoogleMapsImageryFormat.js +20 -0
- package/lib/cjs/GoogleMaps/GoogleMapsImageryFormat.js.map +1 -0
- package/lib/cjs/GoogleMaps/GoogleMapsImageryProvider.d.ts +25 -0
- package/lib/cjs/GoogleMaps/GoogleMapsImageryProvider.d.ts.map +1 -0
- package/lib/cjs/GoogleMaps/GoogleMapsImageryProvider.js +232 -0
- package/lib/cjs/GoogleMaps/GoogleMapsImageryProvider.js.map +1 -0
- package/lib/cjs/Icons/MapInfoIcon.js.map +1 -1
- package/lib/cjs/OgcApiFeatures/OgcApiFeaturesFormat.js +3 -3
- package/lib/cjs/OgcApiFeatures/OgcApiFeaturesFormat.js.map +1 -1
- package/lib/cjs/OgcApiFeatures/OgcApiFeaturesProvider.d.ts +4 -4
- package/lib/cjs/OgcApiFeatures/OgcApiFeaturesProvider.d.ts.map +1 -1
- package/lib/cjs/OgcApiFeatures/OgcApiFeaturesProvider.js +58 -51
- package/lib/cjs/OgcApiFeatures/OgcApiFeaturesProvider.js.map +1 -1
- package/lib/cjs/OgcApiFeatures/OgcApiFeaturesReader.d.ts +3 -3
- package/lib/cjs/OgcApiFeatures/OgcApiFeaturesReader.d.ts.map +1 -1
- package/lib/cjs/OgcApiFeatures/OgcApiFeaturesReader.js +6 -5
- package/lib/cjs/OgcApiFeatures/OgcApiFeaturesReader.js.map +1 -1
- package/lib/cjs/Tools/GeometryTerrainDraper.d.ts +1 -1
- package/lib/cjs/Tools/GeometryTerrainDraper.d.ts.map +1 -1
- package/lib/cjs/Tools/GeometryTerrainDraper.js +13 -9
- package/lib/cjs/Tools/GeometryTerrainDraper.js.map +1 -1
- package/lib/cjs/Tools/MapFeatureInfoDecorator.d.ts +1 -1
- package/lib/cjs/Tools/MapFeatureInfoDecorator.d.ts.map +1 -1
- package/lib/cjs/Tools/MapFeatureInfoDecorator.js +60 -56
- package/lib/cjs/Tools/MapFeatureInfoDecorator.js.map +1 -1
- package/lib/cjs/Tools/MapFeatureInfoTool.d.ts +1 -1
- package/lib/cjs/Tools/MapFeatureInfoTool.d.ts.map +1 -1
- package/lib/cjs/Tools/MapFeatureInfoTool.js +16 -19
- package/lib/cjs/Tools/MapFeatureInfoTool.js.map +1 -1
- package/lib/cjs/internal/GoogleMapsUtils.d.ts +38 -0
- package/lib/cjs/internal/GoogleMapsUtils.d.ts.map +1 -0
- package/lib/cjs/internal/GoogleMapsUtils.js +104 -0
- package/lib/cjs/internal/GoogleMapsUtils.js.map +1 -0
- package/lib/cjs/map-layers-formats.d.ts +4 -3
- package/lib/cjs/map-layers-formats.d.ts.map +1 -1
- package/lib/cjs/map-layers-formats.js +4 -3
- package/lib/cjs/map-layers-formats.js.map +1 -1
- package/lib/cjs/mapLayersFormats.d.ts.map +1 -1
- package/lib/cjs/mapLayersFormats.js +10 -7
- package/lib/cjs/mapLayersFormats.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js +2 -2
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts +4 -4
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js +52 -49
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js +17 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts +2 -2
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js +3 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js +5 -2
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.d.ts +2 -2
- package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.js +2 -1
- package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.d.ts +5 -5
- package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.js +2 -2
- package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +3 -3
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js +37 -32
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/esm/ArcGisFeature/EsriSymbology.d.ts +1 -1
- package/lib/esm/ArcGisFeature/EsriSymbology.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/EsriSymbology.js +27 -6
- package/lib/esm/ArcGisFeature/EsriSymbology.js.map +1 -1
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js +48 -72
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/esm/Feature/DefaultMarkerIcon.js +9 -9
- package/lib/esm/Feature/DefaultMarkerIcon.js.map +1 -1
- package/lib/esm/Feature/FeatureCanvasRenderer.d.ts +2 -2
- package/lib/esm/Feature/FeatureCanvasRenderer.d.ts.map +1 -1
- package/lib/esm/Feature/FeatureCanvasRenderer.js +2 -0
- package/lib/esm/Feature/FeatureCanvasRenderer.js.map +1 -1
- package/lib/esm/Feature/FeatureInfoReader.js +20 -20
- package/lib/esm/Feature/FeatureInfoReader.js.map +1 -1
- package/lib/esm/Feature/FeatureSymbology.js.map +1 -1
- package/lib/esm/Feature/RandomMapColor.js +10 -10
- package/lib/esm/Feature/RandomMapColor.js.map +1 -1
- package/lib/esm/GeoJSON/GeoJSONGeometry.d.ts +1 -1
- package/lib/esm/GeoJSON/GeoJSONGeometry.d.ts.map +1 -1
- package/lib/esm/GeoJSON/GeoJSONGeometry.js.map +1 -1
- package/lib/esm/GeoJSON/GeoJSONGeometryReader.d.ts +1 -1
- package/lib/esm/GeoJSON/GeoJSONGeometryReader.d.ts.map +1 -1
- package/lib/esm/GeoJSON/GeoJSONGeometryReader.js +2 -1
- package/lib/esm/GeoJSON/GeoJSONGeometryReader.js.map +1 -1
- package/lib/esm/GoogleMaps/GoogleMapDecorator.d.ts +36 -0
- package/lib/esm/GoogleMaps/GoogleMapDecorator.d.ts.map +1 -0
- package/lib/esm/GoogleMaps/GoogleMapDecorator.js +82 -0
- package/lib/esm/GoogleMaps/GoogleMapDecorator.js.map +1 -0
- package/lib/esm/GoogleMaps/GoogleMaps.d.ts +166 -0
- package/lib/esm/GoogleMaps/GoogleMaps.d.ts.map +1 -0
- package/lib/esm/GoogleMaps/GoogleMaps.js +53 -0
- package/lib/esm/GoogleMaps/GoogleMaps.js.map +1 -0
- package/lib/esm/GoogleMaps/GoogleMapsImageryFormat.d.ts +10 -0
- package/lib/esm/GoogleMaps/GoogleMapsImageryFormat.d.ts.map +1 -0
- package/lib/esm/GoogleMaps/GoogleMapsImageryFormat.js +16 -0
- package/lib/esm/GoogleMaps/GoogleMapsImageryFormat.js.map +1 -0
- package/lib/esm/GoogleMaps/GoogleMapsImageryProvider.d.ts +25 -0
- package/lib/esm/GoogleMaps/GoogleMapsImageryProvider.d.ts.map +1 -0
- package/lib/esm/GoogleMaps/GoogleMapsImageryProvider.js +228 -0
- package/lib/esm/GoogleMaps/GoogleMapsImageryProvider.js.map +1 -0
- package/lib/esm/Icons/MapInfoIcon.js.map +1 -1
- package/lib/esm/OgcApiFeatures/OgcApiFeaturesFormat.js +2 -2
- package/lib/esm/OgcApiFeatures/OgcApiFeaturesFormat.js.map +1 -1
- package/lib/esm/OgcApiFeatures/OgcApiFeaturesProvider.d.ts +4 -4
- package/lib/esm/OgcApiFeatures/OgcApiFeaturesProvider.d.ts.map +1 -1
- package/lib/esm/OgcApiFeatures/OgcApiFeaturesProvider.js +49 -42
- package/lib/esm/OgcApiFeatures/OgcApiFeaturesProvider.js.map +1 -1
- package/lib/esm/OgcApiFeatures/OgcApiFeaturesReader.d.ts +3 -3
- package/lib/esm/OgcApiFeatures/OgcApiFeaturesReader.d.ts.map +1 -1
- package/lib/esm/OgcApiFeatures/OgcApiFeaturesReader.js +3 -2
- package/lib/esm/OgcApiFeatures/OgcApiFeaturesReader.js.map +1 -1
- package/lib/esm/Tools/GeometryTerrainDraper.d.ts +1 -1
- package/lib/esm/Tools/GeometryTerrainDraper.d.ts.map +1 -1
- package/lib/esm/Tools/GeometryTerrainDraper.js +11 -7
- package/lib/esm/Tools/GeometryTerrainDraper.js.map +1 -1
- package/lib/esm/Tools/MapFeatureInfoDecorator.d.ts +1 -1
- package/lib/esm/Tools/MapFeatureInfoDecorator.d.ts.map +1 -1
- package/lib/esm/Tools/MapFeatureInfoDecorator.js +58 -54
- package/lib/esm/Tools/MapFeatureInfoDecorator.js.map +1 -1
- package/lib/esm/Tools/MapFeatureInfoTool.d.ts +1 -1
- package/lib/esm/Tools/MapFeatureInfoTool.d.ts.map +1 -1
- package/lib/esm/Tools/MapFeatureInfoTool.js +16 -19
- package/lib/esm/Tools/MapFeatureInfoTool.js.map +1 -1
- package/lib/esm/internal/GoogleMapsUtils.d.ts +38 -0
- package/lib/esm/internal/GoogleMapsUtils.d.ts.map +1 -0
- package/lib/esm/internal/GoogleMapsUtils.js +101 -0
- package/lib/esm/internal/GoogleMapsUtils.js.map +1 -0
- package/lib/esm/map-layers-formats.d.ts +4 -3
- package/lib/esm/map-layers-formats.d.ts.map +1 -1
- package/lib/esm/map-layers-formats.js +4 -3
- package/lib/esm/map-layers-formats.js.map +1 -1
- package/lib/esm/mapLayersFormats.d.ts.map +1 -1
- package/lib/esm/mapLayersFormats.js +7 -4
- package/lib/esm/mapLayersFormats.js.map +1 -1
- package/lib/public/images/google_on_non_white.png +0 -0
- package/lib/public/images/google_on_non_white_hdpi.png +0 -0
- package/lib/public/images/google_on_white.png +0 -0
- package/lib/public/images/google_on_white_hdpi.png +0 -0
- package/lib/public/locales/en/mapLayersFormats.json +18 -18
- package/package.json +32 -28
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,78 @@
|
|
|
1
1
|
# Change Log - @itwin/map-layers-formats
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 02 Apr 2025 19:38:36 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 4.10.12
|
|
6
|
+
Wed, 02 Apr 2025 19:35:47 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 4.10.11
|
|
11
|
+
Wed, 19 Mar 2025 15:30:39 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
14
|
+
|
|
15
|
+
## 4.10.10
|
|
16
|
+
Tue, 11 Mar 2025 15:25:11 GMT
|
|
17
|
+
|
|
18
|
+
_Version update only_
|
|
19
|
+
|
|
20
|
+
## 4.10.9
|
|
21
|
+
Tue, 11 Mar 2025 05:17:33 GMT
|
|
22
|
+
|
|
23
|
+
_Version update only_
|
|
24
|
+
|
|
25
|
+
## 4.10.8
|
|
26
|
+
Thu, 06 Mar 2025 14:13:37 GMT
|
|
27
|
+
|
|
28
|
+
_Version update only_
|
|
29
|
+
|
|
30
|
+
## 4.10.7
|
|
31
|
+
Tue, 18 Feb 2025 17:27:03 GMT
|
|
32
|
+
|
|
33
|
+
_Version update only_
|
|
34
|
+
|
|
35
|
+
## 4.10.6
|
|
36
|
+
Fri, 24 Jan 2025 08:02:40 GMT
|
|
37
|
+
|
|
38
|
+
_Version update only_
|
|
39
|
+
|
|
40
|
+
## 4.10.5
|
|
41
|
+
Tue, 21 Jan 2025 21:56:45 GMT
|
|
42
|
+
|
|
43
|
+
_Version update only_
|
|
44
|
+
|
|
45
|
+
## 4.10.4
|
|
46
|
+
Mon, 13 Jan 2025 14:06:43 GMT
|
|
47
|
+
|
|
48
|
+
_Version update only_
|
|
49
|
+
|
|
50
|
+
## 4.10.3
|
|
51
|
+
Mon, 06 Jan 2025 14:00:13 GMT
|
|
52
|
+
|
|
53
|
+
_Version update only_
|
|
54
|
+
|
|
55
|
+
## 4.10.2
|
|
56
|
+
Thu, 21 Nov 2024 15:22:20 GMT
|
|
57
|
+
|
|
58
|
+
_Version update only_
|
|
59
|
+
|
|
60
|
+
## 4.10.1
|
|
61
|
+
Thu, 14 Nov 2024 18:11:00 GMT
|
|
62
|
+
|
|
63
|
+
_Version update only_
|
|
64
|
+
|
|
65
|
+
## 4.10.0
|
|
66
|
+
Wed, 13 Nov 2024 15:23:39 GMT
|
|
67
|
+
|
|
68
|
+
### Updates
|
|
69
|
+
|
|
70
|
+
- Fix ArcGIS Feature request failures on specific server
|
|
71
|
+
|
|
72
|
+
## 4.9.7
|
|
73
|
+
Wed, 06 Nov 2024 19:23:04 GMT
|
|
74
|
+
|
|
75
|
+
_Version update only_
|
|
4
76
|
|
|
5
77
|
## 4.9.6
|
|
6
78
|
Tue, 05 Nov 2024 15:22:46 GMT
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ArcGisFeatureMapLayerFormat = void 0;
|
|
4
4
|
const core_frontend_1 = require("@itwin/core-frontend");
|
|
5
|
-
const
|
|
5
|
+
const ArcGisFeatureProvider_js_1 = require("./ArcGisFeatureProvider.js");
|
|
6
6
|
/** @internal */
|
|
7
7
|
class ArcGisFeatureMapLayerFormat extends core_frontend_1.ImageryMapLayerFormat {
|
|
8
|
-
static
|
|
8
|
+
static formatId = "ArcGISFeature";
|
|
9
|
+
static createImageryProvider(settings) { return new ArcGisFeatureProvider_js_1.ArcGisFeatureProvider(settings); }
|
|
9
10
|
static async validateSource(url, userName, password, ignoreCache) {
|
|
10
11
|
const urlValidation = core_frontend_1.ArcGisUtilities.validateUrl(url, "FeatureServer");
|
|
11
12
|
if (urlValidation !== core_frontend_1.MapLayerSourceStatus.Valid)
|
|
@@ -26,5 +27,4 @@ class ArcGisFeatureMapLayerFormat extends core_frontend_1.ImageryMapLayerFormat
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
exports.ArcGisFeatureMapLayerFormat = ArcGisFeatureMapLayerFormat;
|
|
29
|
-
ArcGisFeatureMapLayerFormat.formatId = "ArcGISFeature";
|
|
30
30
|
//# sourceMappingURL=ArcGisFeatureFormat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArcGisFeatureFormat.js","sourceRoot":"","sources":["../../../src/ArcGisFeature/ArcGisFeatureFormat.ts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AE,eAAe,CAAC,CAAC;QACpF,IAAI,aAAa,KAAK,oCAAoB,CAAC,KAAK;YAC9C,OAAO,EAAC,MAAM,EAAE,aAAa,EAAC,CAAC;QAEjC,gHAAgH;QAChH,OAAO,+BAAe,CAAC,cAAc,CAAC,EAAC,GAAG,IAAI,EAAE,kBAAkB,EAAE,CAAC,OAAO,CAAC,EAAC,CAAC,CAAC;IAClF,CAAC;;AAzBH,kEA0BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { ImageMapLayerSettings } from \"@itwin/core-common\";\nimport { ArcGisUtilities, ImageryMapLayerFormat, MapLayerImageryProvider, MapLayerSource, MapLayerSourceStatus, MapLayerSourceValidation, ValidateSourceArgs } from \"@itwin/core-frontend\";\nimport { ArcGisFeatureProvider } from \"./ArcGisFeatureProvider.js\";\n\n/** @internal */\nexport class ArcGisFeatureMapLayerFormat extends ImageryMapLayerFormat {\n public static override formatId = \"ArcGISFeature\";\n public static override createImageryProvider(settings: ImageMapLayerSettings): MapLayerImageryProvider | undefined { return new ArcGisFeatureProvider(settings); }\n public static override async validateSource(url: string, userName?: string, password?: string, ignoreCache?: boolean): Promise<MapLayerSourceValidation> {\n const urlValidation = ArcGisUtilities.validateUrl(url, \"FeatureServer\");\n if (urlValidation !== MapLayerSourceStatus.Valid)\n return { status: urlValidation };\n\n const source = MapLayerSource.fromJSON({name: \"\", url, formatId: this.formatId});\n if (!source)\n return {status: MapLayerSourceStatus.InvalidFormat};\n source.userName = userName;\n source.password = password;\n\n return ArcGisUtilities.validateSource({source, capabilitiesFilter: [\"query\"], ignoreCache});\n }\n\n public static override async validate(args: ValidateSourceArgs): Promise<MapLayerSourceValidation> {\n\n const urlValidation = ArcGisUtilities.validateUrl(args.source.url, \"FeatureServer\");\n if (urlValidation !== MapLayerSourceStatus.Valid)\n return {status: urlValidation};\n\n // Some Map service supporting only tiles don't include the 'Map' capabilities, thus we can't make it mandatory.\n return ArcGisUtilities.validateSource({...args, capabilitiesFilter: [\"query\"]});\n }\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Cartographic, ImageMapLayerSettings, ImageSource } from "@itwin/core-common";
|
|
2
|
-
import { Transform } from "@itwin/core-geometry";
|
|
3
2
|
import { ArcGISImageryProvider, HitDetail, ImageryMapTileTree, MapFeatureInfoOptions, MapLayerFeatureInfo, QuadId } from "@itwin/core-frontend";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { Transform } from "@itwin/core-geometry";
|
|
4
|
+
import { FeatureDefaultSymbology } from "../Feature/FeatureSymbology.js";
|
|
5
|
+
import { ArcGisExtent, ArcGisFeatureFormat, ArcGisFeatureResultType, ArcGisGeometry } from "./ArcGisFeatureQuery.js";
|
|
6
|
+
import { EsriPMS, EsriSFS, EsriSLS, EsriSLSProps, EsriSymbol } from "./EsriSymbology.js";
|
|
7
7
|
/**
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArcGisFeatureProvider.d.ts","sourceRoot":"","sources":["../../../src/ArcGisFeature/ArcGisFeatureProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArcGisFeatureProvider.d.ts","sourceRoot":"","sources":["../../../src/ArcGisFeature/ArcGisFeatureProvider.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,WAAW,EAAkC,MAAM,oBAAoB,CAAC;AACtH,OAAO,EAAmB,qBAAqB,EAAmE,SAAS,EAAE,kBAAkB,EAAqB,qBAAqB,EAAE,mBAAmB,EAAiC,MAAM,EAAqB,MAAM,sBAAsB,CAAC;AACvS,OAAO,EAA8B,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,gC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|
|
@@ -3,84 +3,89 @@
|
|
|
3
3
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
4
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
var _a;
|
|
7
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
7
|
exports.ArcGisFeatureProvider = exports.DefaultArcGiSymbology = void 0;
|
|
9
|
-
const core_common_1 = require("@itwin/core-common");
|
|
10
8
|
const core_bentley_1 = require("@itwin/core-bentley");
|
|
11
|
-
const
|
|
9
|
+
const core_common_1 = require("@itwin/core-common");
|
|
12
10
|
const core_frontend_1 = require("@itwin/core-frontend");
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
11
|
+
const core_geometry_1 = require("@itwin/core-geometry");
|
|
12
|
+
const FeatureCanvasRenderer_js_1 = require("../Feature/FeatureCanvasRenderer.js");
|
|
13
|
+
const ArcGisFeatureQuery_js_1 = require("./ArcGisFeatureQuery.js");
|
|
14
|
+
const ArcGisFeatureResponse_js_1 = require("./ArcGisFeatureResponse.js");
|
|
15
|
+
const ArcGisJsonFeatureReader_js_1 = require("./ArcGisJsonFeatureReader.js");
|
|
16
|
+
const ArcGisPbfFeatureReader_js_1 = require("./ArcGisPbfFeatureReader.js");
|
|
17
|
+
const ArcGisSymbologyRenderer_js_1 = require("./ArcGisSymbologyRenderer.js");
|
|
18
|
+
const EsriSymbology_js_1 = require("./EsriSymbology.js");
|
|
20
19
|
const loggerCategory = "MapLayersFormats.ArcGISFeature";
|
|
21
20
|
/**
|
|
22
21
|
* @internal
|
|
23
22
|
*/
|
|
24
23
|
class DefaultArcGiSymbology {
|
|
24
|
+
static defaultPMS = EsriSymbology_js_1.EsriPMS.fromJSON({
|
|
25
|
+
type: "esriPMS",
|
|
26
|
+
url: "",
|
|
27
|
+
contentType: "image/png",
|
|
28
|
+
imageData: "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAmBJREFUOE+Nk01IVFEUx//n3jfvOZOaJkMtiiJ7o9RG3LgoqKhFSFJBTS1ahFBBi0ijfJXCIyQr+hBbSIsoW7iQoKKFCw2CkAI3tZAgy8Ei+xhoTCbnje/NPfHGnA816KzuPR+/c8/HJRQJE7o+VUhym0DcCOYGgBQEXjOLlyqo+nHanCkMoaL4rslKjZwOQLT4ek3Mmz3FACFNLB67ut6M1nWphbg8wI6VyJK5KEH0EQFVJRKbwzokAW++p/ErraAYSQK3u47bC3vLnA+ZB9i2gHF0oyQMCfCGNaUa+vauxs71wWz2V18cnBj8gQ8J1/eeBnHUa4sMFQDGdGno+4gwEAoQzjVUon3rqlx1KY9x7+0MWobjAPg3QJ2eZV4tAEyFNCN5FkSXyw2B3j1hRGvLcgBXMV5MptA4MOXr0gT0u5bZnAf0jBsyiSgJPAxqhON1K3FlRxUMvwFAtv7u0Wl0jvwEmJNEuOhakTt5wKEBifr6Oo14BIBRpgt07w6jcVMIngKGY7NofR5HwlF+zDcpsC193vyYB/innvHywCzdZfAR/+onX1segBTAxHzzfPE7/8yzzIPLjJE1LTixHZx5CtCK4gXLzovBiDPUsYxVM7gUkB3nWKlm6DYEnQGzXARxCOK+a1WfKtQXb6LNAvr7iCboCUA1Ocdsdv5KLPe7F6pH/w3wLbc+BwOuc5IZ1wEE/jonQbjptZn24tKKX7BgvR2r0NKZRwDvAqCI+Z30VJPTURv7P4A9psuQcYAUPwAoReBLrmX2Lmls7i8sZ7kWLwuoxA1FVJGxzMPLufi6P2r+2xFbOUjGAAAAAElFTkSuQmCC",
|
|
29
|
+
width: 16,
|
|
30
|
+
height: 16,
|
|
31
|
+
xoffset: -8,
|
|
32
|
+
yoffset: -16,
|
|
33
|
+
});
|
|
34
|
+
static defaultSLSProps = {
|
|
35
|
+
type: "esriSLS",
|
|
36
|
+
color: [0, 0, 255, 255],
|
|
37
|
+
width: 1,
|
|
38
|
+
style: "esriSLSSolid",
|
|
39
|
+
};
|
|
40
|
+
static defaultSLS = EsriSymbology_js_1.EsriSLS.fromJSON(this.defaultSLSProps);
|
|
41
|
+
static defaultSFS = EsriSymbology_js_1.EsriSFS.fromJSON({
|
|
42
|
+
type: "esriSFS",
|
|
43
|
+
color: [0, 0, 255, 100], // blue fill
|
|
44
|
+
style: "esriSFSSolid",
|
|
45
|
+
outline: this.defaultSLSProps,
|
|
46
|
+
});
|
|
25
47
|
async initialize() {
|
|
26
48
|
// Marker image need to be loaded upfront;
|
|
27
|
-
await
|
|
49
|
+
await DefaultArcGiSymbology.defaultPMS.loadImage();
|
|
28
50
|
}
|
|
29
51
|
getSymbology(geomType) {
|
|
30
52
|
if (geomType === "esriGeometryPoint" || geomType === "esriGeometryMultipoint") {
|
|
31
|
-
return
|
|
53
|
+
return DefaultArcGiSymbology.defaultPMS;
|
|
32
54
|
}
|
|
33
55
|
else if (geomType === "esriGeometryLine" || geomType === "esriGeometryPolyline") {
|
|
34
|
-
return
|
|
56
|
+
return DefaultArcGiSymbology.defaultSLS;
|
|
35
57
|
}
|
|
36
58
|
else if (geomType === "esriGeometryPolygon") {
|
|
37
|
-
return
|
|
59
|
+
return DefaultArcGiSymbology.defaultSFS;
|
|
38
60
|
}
|
|
39
61
|
throw new Error(`Could not get default symbology for geometry type: '${geomType}'`);
|
|
40
62
|
}
|
|
41
63
|
}
|
|
42
64
|
exports.DefaultArcGiSymbology = DefaultArcGiSymbology;
|
|
43
|
-
_a = DefaultArcGiSymbology;
|
|
44
|
-
DefaultArcGiSymbology.defaultPMS = EsriSymbology_1.EsriPMS.fromJSON({
|
|
45
|
-
type: "esriPMS",
|
|
46
|
-
url: "",
|
|
47
|
-
contentType: "image/png",
|
|
48
|
-
imageData: "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAmBJREFUOE+Nk01IVFEUx//n3jfvOZOaJkMtiiJ7o9RG3LgoqKhFSFJBTS1ahFBBi0ijfJXCIyQr+hBbSIsoW7iQoKKFCw2CkAI3tZAgy8Ei+xhoTCbnje/NPfHGnA816KzuPR+/c8/HJRQJE7o+VUhym0DcCOYGgBQEXjOLlyqo+nHanCkMoaL4rslKjZwOQLT4ek3Mmz3FACFNLB67ut6M1nWphbg8wI6VyJK5KEH0EQFVJRKbwzokAW++p/ErraAYSQK3u47bC3vLnA+ZB9i2gHF0oyQMCfCGNaUa+vauxs71wWz2V18cnBj8gQ8J1/eeBnHUa4sMFQDGdGno+4gwEAoQzjVUon3rqlx1KY9x7+0MWobjAPg3QJ2eZV4tAEyFNCN5FkSXyw2B3j1hRGvLcgBXMV5MptA4MOXr0gT0u5bZnAf0jBsyiSgJPAxqhON1K3FlRxUMvwFAtv7u0Wl0jvwEmJNEuOhakTt5wKEBifr6Oo14BIBRpgt07w6jcVMIngKGY7NofR5HwlF+zDcpsC193vyYB/innvHywCzdZfAR/+onX1segBTAxHzzfPE7/8yzzIPLjJE1LTixHZx5CtCK4gXLzovBiDPUsYxVM7gUkB3nWKlm6DYEnQGzXARxCOK+a1WfKtQXb6LNAvr7iCboCUA1Ocdsdv5KLPe7F6pH/w3wLbc+BwOuc5IZ1wEE/jonQbjptZn24tKKX7BgvR2r0NKZRwDvAqCI+Z30VJPTURv7P4A9psuQcYAUPwAoReBLrmX2Lmls7i8sZ7kWLwuoxA1FVJGxzMPLufi6P2r+2xFbOUjGAAAAAElFTkSuQmCC",
|
|
49
|
-
width: 16,
|
|
50
|
-
height: 16,
|
|
51
|
-
xoffset: -8,
|
|
52
|
-
yoffset: -16,
|
|
53
|
-
});
|
|
54
|
-
DefaultArcGiSymbology.defaultSLSProps = {
|
|
55
|
-
type: "esriSLS",
|
|
56
|
-
color: [0, 0, 255, 255],
|
|
57
|
-
width: 1,
|
|
58
|
-
style: "esriSLSSolid",
|
|
59
|
-
};
|
|
60
|
-
DefaultArcGiSymbology.defaultSLS = EsriSymbology_1.EsriSLS.fromJSON(_a.defaultSLSProps);
|
|
61
|
-
DefaultArcGiSymbology.defaultSFS = EsriSymbology_1.EsriSFS.fromJSON({
|
|
62
|
-
type: "esriSFS",
|
|
63
|
-
color: [0, 0, 255, 100], // blue fill
|
|
64
|
-
style: "esriSFSSolid",
|
|
65
|
-
outline: _a.defaultSLSProps,
|
|
66
|
-
});
|
|
67
65
|
/** Provide tiles from a ESRI ArcGIS Feature service
|
|
68
66
|
* @internal
|
|
69
67
|
*/
|
|
70
68
|
class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
69
|
+
// Debug flags, should always be committed to FALSE !
|
|
70
|
+
_drawDebugInfo = false;
|
|
71
|
+
_debugFeatureGeom = false;
|
|
72
|
+
_supportsCoordinatesQuantization = false;
|
|
73
|
+
_layerId = 0;
|
|
74
|
+
_layerMetadata;
|
|
75
|
+
_format;
|
|
76
|
+
_outSR = 102100;
|
|
77
|
+
_maxDepthFromLod = 0;
|
|
78
|
+
_minDepthFromLod = 0;
|
|
79
|
+
_defaultSymbol = new DefaultArcGiSymbology();
|
|
80
|
+
_renderer;
|
|
81
|
+
_symbologyRenderer;
|
|
82
|
+
static _nbSubTiles = 2; // Number of subtiles for a single axis
|
|
83
|
+
serviceJson;
|
|
71
84
|
get minimumZoomLevel() { return this._minDepthFromLod; }
|
|
72
85
|
get maximumZoomLevel() { return this._maxDepthFromLod; }
|
|
86
|
+
static _extentCache = new Map();
|
|
73
87
|
constructor(settings) {
|
|
74
88
|
super(settings, true);
|
|
75
|
-
// Debug flags, should always be committed to FALSE !
|
|
76
|
-
this._drawDebugInfo = false;
|
|
77
|
-
this._debugFeatureGeom = false;
|
|
78
|
-
this._supportsCoordinatesQuantization = false;
|
|
79
|
-
this._layerId = 0;
|
|
80
|
-
this._outSR = 102100;
|
|
81
|
-
this._maxDepthFromLod = 0;
|
|
82
|
-
this._minDepthFromLod = 0;
|
|
83
|
-
this._defaultSymbol = new DefaultArcGiSymbology();
|
|
84
89
|
}
|
|
85
90
|
async initialize() {
|
|
86
91
|
const metadata = await this.getServiceJson();
|
|
@@ -176,11 +181,11 @@ class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
|
176
181
|
// Also, since PBF format does not support floating points, there is no point using this format if supportsCoordinatesQuantization is not available.
|
|
177
182
|
if (this._layerMetadata.supportedQueryFormats) {
|
|
178
183
|
const formats = this._layerMetadata.supportedQueryFormats.split(",").map((s) => s.trim().toLowerCase());
|
|
179
|
-
if (formats.includes(
|
|
180
|
-
this._format =
|
|
184
|
+
if (formats.includes(ArcGisFeatureQuery_js_1.arcgisFeatureFormats.pbf) && this._supportsCoordinatesQuantization) {
|
|
185
|
+
this._format = ArcGisFeatureQuery_js_1.arcgisFeatureFormats.pbf;
|
|
181
186
|
}
|
|
182
|
-
else if (formats.includes(
|
|
183
|
-
this._format =
|
|
187
|
+
else if (formats.includes(ArcGisFeatureQuery_js_1.arcgisFeatureFormats.json)) {
|
|
188
|
+
this._format = ArcGisFeatureQuery_js_1.arcgisFeatureFormats.json;
|
|
184
189
|
}
|
|
185
190
|
}
|
|
186
191
|
if (!this._format) {
|
|
@@ -216,7 +221,7 @@ class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
|
216
221
|
// Some servers advertises a max LOD of 0, it should be interpreted as 'not defined' (otherwise a max lod of 0 would would mean never display anything)
|
|
217
222
|
this._maxDepthFromLod = (scales.maxLod ? scales.maxLod : this.defaultMaximumZoomLevel);
|
|
218
223
|
try {
|
|
219
|
-
this._renderer =
|
|
224
|
+
this._renderer = EsriSymbology_js_1.EsriRenderer.fromJSON(this._layerMetadata?.drawingInfo?.renderer);
|
|
220
225
|
await this._renderer.initialize();
|
|
221
226
|
}
|
|
222
227
|
catch (e) {
|
|
@@ -226,7 +231,7 @@ class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
|
226
231
|
// if not, it will throw
|
|
227
232
|
this._defaultSymbol.getSymbology(this._layerMetadata?.geometryType);
|
|
228
233
|
await this._defaultSymbol.initialize(); // images must be loaded upfront
|
|
229
|
-
this._symbologyRenderer =
|
|
234
|
+
this._symbologyRenderer = ArcGisSymbologyRenderer_js_1.ArcGisSymbologyCanvasRenderer.create(this._renderer, this._defaultSymbol, this._layerMetadata?.geometryType);
|
|
230
235
|
}
|
|
231
236
|
async fetchLayerExtent() {
|
|
232
237
|
let extentJson;
|
|
@@ -235,7 +240,7 @@ class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
|
235
240
|
tmpUrl.searchParams.append("where", "1=1");
|
|
236
241
|
tmpUrl.searchParams.append("outSR", "3857");
|
|
237
242
|
tmpUrl.searchParams.append("returnExtentOnly", "true");
|
|
238
|
-
tmpUrl.searchParams.append("f",
|
|
243
|
+
tmpUrl.searchParams.append("f", ArcGisFeatureQuery_js_1.arcgisFeatureFormats.json);
|
|
239
244
|
const cached = ArcGisFeatureProvider._extentCache.get(tmpUrl.toString());
|
|
240
245
|
if (cached) {
|
|
241
246
|
extentJson = cached;
|
|
@@ -311,7 +316,7 @@ class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
|
311
316
|
extent: tileEnvelope,
|
|
312
317
|
};
|
|
313
318
|
}
|
|
314
|
-
const url = new
|
|
319
|
+
const url = new ArcGisFeatureQuery_js_1.ArcGisFeatureQuery(this._settings.url, this._layerId, format, this._outSR, {
|
|
315
320
|
geometry,
|
|
316
321
|
geometryType: "esriGeometryEnvelope",
|
|
317
322
|
returnExceededLimitFeatures: false,
|
|
@@ -359,17 +364,17 @@ class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
|
359
364
|
return undefined;
|
|
360
365
|
}
|
|
361
366
|
const response = this.fetch(new URL(infoUrl.url), { method: "GET" });
|
|
362
|
-
const featureResponse = new
|
|
367
|
+
const featureResponse = new ArcGisFeatureResponse_js_1.ArcGisFeatureResponse(format, response);
|
|
363
368
|
return featureResponse.getResponseData();
|
|
364
369
|
};
|
|
365
370
|
if (this._debugFeatureGeom) {
|
|
366
371
|
try {
|
|
367
|
-
let responseData = await doFeatureInfoQuery(
|
|
372
|
+
let responseData = await doFeatureInfoQuery(ArcGisFeatureQuery_js_1.arcgisFeatureFormats.pbf, "", true);
|
|
368
373
|
if (responseData) {
|
|
369
374
|
const json = JSON.stringify(responseData.data.toObject());
|
|
370
375
|
core_bentley_1.Logger.logInfo(loggerCategory, json);
|
|
371
376
|
}
|
|
372
|
-
responseData = await doFeatureInfoQuery(
|
|
377
|
+
responseData = await doFeatureInfoQuery(ArcGisFeatureQuery_js_1.arcgisFeatureFormats.json, "", true);
|
|
373
378
|
if (responseData) {
|
|
374
379
|
const json = JSON.stringify(responseData.data);
|
|
375
380
|
core_bentley_1.Logger.logInfo(loggerCategory, json);
|
|
@@ -381,7 +386,7 @@ class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
|
381
386
|
}
|
|
382
387
|
try {
|
|
383
388
|
// Feature Info requests are always made in JSON for now.
|
|
384
|
-
const responseData = await doFeatureInfoQuery(
|
|
389
|
+
const responseData = await doFeatureInfoQuery(ArcGisFeatureQuery_js_1.arcgisFeatureFormats.json, "*", true);
|
|
385
390
|
if (!responseData) {
|
|
386
391
|
core_bentley_1.Logger.logError(loggerCategory, `Could not get feature info data`);
|
|
387
392
|
return;
|
|
@@ -390,7 +395,7 @@ class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
|
390
395
|
core_bentley_1.Logger.logError(loggerCategory, `Could not get feature info : transfer limit exceeded.`);
|
|
391
396
|
return;
|
|
392
397
|
}
|
|
393
|
-
const featureReader = new
|
|
398
|
+
const featureReader = new ArcGisJsonFeatureReader_js_1.ArcGisJsonFeatureReader(this._settings, this._layerMetadata);
|
|
394
399
|
const renderer = new core_frontend_1.FeatureGraphicsRenderer({ viewport: hit.viewport, crs: "webMercator" });
|
|
395
400
|
await featureReader.readFeatureInfo(responseData, featureInfos, renderer);
|
|
396
401
|
}
|
|
@@ -413,7 +418,7 @@ class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
|
413
418
|
return undefined;
|
|
414
419
|
}
|
|
415
420
|
const response = this.fetch(new URL(tileUrl.url), { method: "GET" });
|
|
416
|
-
return new
|
|
421
|
+
return new ArcGisFeatureResponse_js_1.ArcGisFeatureResponse(this.format, response, tileUrl.envelope);
|
|
417
422
|
}
|
|
418
423
|
drawTileDebugInfo(row, column, zoomLevel, context) {
|
|
419
424
|
context.fillStyle = "cyan";
|
|
@@ -468,10 +473,10 @@ class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
|
468
473
|
core_bentley_1.Logger.logError(loggerCategory, `Unable to load tile: symbology renderer not aailable.`);
|
|
469
474
|
return undefined;
|
|
470
475
|
}
|
|
471
|
-
const renderer = new
|
|
472
|
-
const featureReader = this.format ===
|
|
473
|
-
? new
|
|
474
|
-
: new
|
|
476
|
+
const renderer = new FeatureCanvasRenderer_js_1.FeatureCanvasRenderer(ctx, this._symbologyRenderer, transfo);
|
|
477
|
+
const featureReader = this.format === ArcGisFeatureQuery_js_1.arcgisFeatureFormats.pbf
|
|
478
|
+
? new ArcGisPbfFeatureReader_js_1.ArcGisPbfFeatureReader(this._settings, this._layerMetadata)
|
|
479
|
+
: new ArcGisJsonFeatureReader_js_1.ArcGisJsonFeatureReader(this._settings, this._layerMetadata);
|
|
475
480
|
const getSubEnvelopes = (envelope) => {
|
|
476
481
|
const dx = (envelope.xmax - envelope.xmin) * 0.5;
|
|
477
482
|
const dy = (envelope.xmax - envelope.xmin) * 0.5;
|
|
@@ -547,6 +552,4 @@ class ArcGisFeatureProvider extends core_frontend_1.ArcGISImageryProvider {
|
|
|
547
552
|
}
|
|
548
553
|
}
|
|
549
554
|
exports.ArcGisFeatureProvider = ArcGisFeatureProvider;
|
|
550
|
-
ArcGisFeatureProvider._nbSubTiles = 2; // Number of subtiles for a single axis
|
|
551
|
-
ArcGisFeatureProvider._extentCache = new Map();
|
|
552
555
|
//# sourceMappingURL=ArcGisFeatureProvider.js.map
|