@itwin/map-layers-formats 4.0.0-dev.1 → 4.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/.rush/temp/operation/build/all.log +3 -0
- package/.rush/temp/operation/build/state.json +3 -0
- package/.rush/temp/operation/cover/all.log +98 -0
- package/.rush/temp/operation/cover/state.json +1 -1
- package/.rush/temp/operation/docs/all.log +30 -0
- package/.rush/temp/operation/docs/state.json +1 -1
- package/.rush/temp/{package-deps_build_ci.json → package-deps_build.json} +13 -13
- package/.rush/temp/package-deps_cover.json +12 -12
- package/.rush/temp/package-deps_docs.json +12 -12
- package/.rush/temp/shrinkwrap-deps.json +204 -54
- package/CHANGELOG.json +69 -0
- package/CHANGELOG.md +54 -1
- package/config/rush-project.json +1 -2
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.d.ts +8 -8
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js +14 -14
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts +14 -14
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js +132 -134
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts +14 -14
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js +200 -205
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts +44 -44
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js +421 -426
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts +92 -92
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js +82 -82
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts +17 -17
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js +33 -33
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts +32 -32
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js +142 -142
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts +16 -16
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js +42 -43
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +85 -85
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js +189 -192
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.d.ts +1063 -1063
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js +2267 -2270
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/cjs/map-layers-formats.d.ts +8 -8
- package/lib/cjs/map-layers-formats.js +28 -24
- package/lib/cjs/map-layers-formats.js.map +1 -1
- package/lib/cjs/mapLayersFormats.d.ts +10 -10
- package/lib/cjs/mapLayersFormats.js +28 -28
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +34 -34
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js +161 -161
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js +167 -167
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js +679 -680
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js +103 -103
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +214 -214
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js +94 -94
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +59 -59
- package/lib/cjs/test/ArcGisFeature/Mocks.d.ts +6 -6
- package/lib/cjs/test/ArcGisFeature/Mocks.js +18 -18
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts +55 -55
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts.map +1 -1
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js +419 -419
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js.map +1 -1
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +1042 -1042
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +1 -1
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js +426 -426
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js.map +1 -1
- package/lib/cjs/test/coverage/.nyc_output/bd2a5894-ab2c-4c90-bfb9-f545c1f3c3ad.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/b5a5c114-6a90-41f0-ad7b-9ba31cc9d9d3.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/bd2a5894-ab2c-4c90-bfb9-f545c1f3c3ad.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/index.json +1 -1
- package/lib/cjs/test/coverage/cobertura-coverage.xml +229 -236
- package/lib/cjs/test/coverage/lcov-report/index.html +14 -14
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureFormat.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureJSON.ts.html +10 -10
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeaturePBF.ts.html +16 -22
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureProvider.ts.html +16 -28
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureQuery.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureReader.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureRenderer.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureResponse.ts.html +4 -4
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisSymbologyRenderer.ts.html +8 -8
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/index.html +29 -29
- package/lib/cjs/test/coverage/lcov-report/src/index.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/map-layers-formats.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/mapLayersFormats.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov.info +514 -697
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.d.ts +8 -8
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js +11 -10
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts +14 -14
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js +128 -130
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts +14 -14
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js +196 -201
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts +44 -44
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js +418 -422
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts +92 -92
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js +78 -78
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts +17 -17
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js +29 -29
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts +32 -32
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js +138 -138
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts +16 -16
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js +38 -39
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +85 -85
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js +183 -185
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.d.ts +1063 -1063
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js +2264 -2267
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/esm/map-layers-formats.d.ts +8 -8
- package/lib/esm/map-layers-formats.js +12 -12
- package/lib/esm/mapLayersFormats.d.ts +10 -10
- package/lib/esm/mapLayersFormats.js +24 -24
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +32 -32
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js +159 -159
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js +165 -165
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js +677 -678
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js +101 -101
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +212 -212
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js +92 -92
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +57 -57
- package/lib/esm/test/ArcGisFeature/Mocks.d.ts +6 -6
- package/lib/esm/test/ArcGisFeature/Mocks.js +15 -15
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts +55 -55
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts.map +1 -1
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js +416 -415
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js.map +1 -1
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +1042 -1042
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +1 -1
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js +423 -422
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js.map +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/test/junit_results.xml +43 -43
- package/map-layers-formats.build.log +2 -2
- package/package.json +18 -19
- package/src/ArcGisFeature/ArcGisFeaturePBF.ts +3 -5
- package/src/ArcGisFeature/ArcGisFeatureProvider.ts +1 -5
- package/src/ArcGisFeature/esriPBuffer.gen.ts +1 -4
- package/src/test/ArcGisFeature/ArcGisFeatureProvider.test.ts +21 -21
- package/src/test/ArcGisFeature/NewYorkDataset.ts +187 -187
- package/src/test/ArcGisFeature/PhillyLandmarksDataset.ts +4 -4
- package/tsconfig.json +1 -2
- package/.rush/temp/operation/build_ci/state.json +0 -3
- package/lib/cjs/test/coverage/.nyc_output/076f01d3-f97f-4be1-bb26-ced6ce465355.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/076f01d3-f97f-4be1-bb26-ced6ce465355.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/722f7ba4-f4d4-48f9-bd83-5d50f87f28e7.json +0 -1
- /package/lib/cjs/test/coverage/.nyc_output/{722f7ba4-f4d4-48f9-bd83-5d50f87f28e7.json → b5a5c114-6a90-41f0-ad7b-9ba31cc9d9d3.json} +0 -0
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">91.
|
|
26
|
+
<span class="strong">91.5% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>646/706</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">85.01% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>346/407</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">91.
|
|
47
|
+
<span class="strong">91.37% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>636/696</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
97
97
|
<td class="file high" data-value="src/ArcGisFeature"><a href="src/ArcGisFeature/index.html">src/ArcGisFeature</a></td>
|
|
98
|
-
<td data-value="91.
|
|
98
|
+
<td data-value="91.82" class="pic high">
|
|
99
99
|
<div class="chart"><div class="cover-fill" style="width: 91%"></div><div class="cover-empty" style="width: 9%"></div></div>
|
|
100
100
|
</td>
|
|
101
|
-
<td data-value="91.
|
|
102
|
-
<td data-value="
|
|
103
|
-
<td data-value="
|
|
104
|
-
<td data-value="
|
|
101
|
+
<td data-value="91.82" class="pct high">91.82%</td>
|
|
102
|
+
<td data-value="697" class="abs high">640/697</td>
|
|
103
|
+
<td data-value="85.43" class="pct high">85.43%</td>
|
|
104
|
+
<td data-value="405" class="abs high">346/405</td>
|
|
105
105
|
<td data-value="93.5" class="pct high">93.5%</td>
|
|
106
106
|
<td data-value="77" class="abs high">72/77</td>
|
|
107
|
-
<td data-value="91.
|
|
108
|
-
<td data-value="
|
|
107
|
+
<td data-value="91.7" class="pct high">91.7%</td>
|
|
108
|
+
<td data-value="687" class="abs high">630/687</td>
|
|
109
109
|
</tr>
|
|
110
110
|
|
|
111
111
|
</tbody>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-
|
|
119
|
+
at 2023-05-08T05:13:54.903Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -118,7 +118,7 @@ export class ArcGisFeatureMapLayerFormat extends ImageryMapLayerFormat {
|
|
|
118
118
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
119
119
|
Code coverage generated by
|
|
120
120
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
121
|
-
at 2023-
|
|
121
|
+
at 2023-05-08T05:13:54.903Z
|
|
122
122
|
</div>
|
|
123
123
|
<script src="../../prettify.js"></script>
|
|
124
124
|
<script>
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">90% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>36/40</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -397,20 +397,20 @@ export class ArcGisFeatureJSON extends ArcGisFeatureReader {
|
|
|
397
397
|
public readAndRender(response: ArcGisResponseData, renderer: ArcGisFeatureRenderer) {
|
|
398
398
|
const responseObj = response.data;
|
|
399
399
|
|
|
400
|
-
if (responseObj
|
|
400
|
+
if (responseObj?.geometryType === "esriGeometryPolyline" || responseObj?.geometryType === "esriGeometryPolygon") {
|
|
401
401
|
const fill = (responseObj.geometryType === "esriGeometryPolygon");
|
|
402
402
|
for (const feature of responseObj.features) {
|
|
403
403
|
let offset = 0;
|
|
404
404
|
const lengths: number[] = [];
|
|
405
405
|
const coords: number[] = [];
|
|
406
406
|
|
|
407
|
-
if (feature
|
|
408
|
-
for (const ring of feature
|
|
407
|
+
if (feature?.geometry?.rings) {
|
|
408
|
+
for (const ring of feature?.geometry?.rings) {
|
|
409
409
|
offset = ArcGisFeatureJSON.deflateCoordinates(ring, coords, 2, offset);
|
|
410
410
|
lengths.push(ring.length);
|
|
411
411
|
}
|
|
412
|
-
} else <span class="missing-if-branch" title="else path not taken" >E</span>if (feature
|
|
413
|
-
for (const path of feature
|
|
412
|
+
} else <span class="missing-if-branch" title="else path not taken" >E</span>if (feature?.geometry?.paths) {
|
|
413
|
+
for (const path of feature?.geometry?.paths) {
|
|
414
414
|
offset = ArcGisFeatureJSON.deflateCoordinates(path, coords, 2, offset);
|
|
415
415
|
lengths.push(path.length);
|
|
416
416
|
}
|
|
@@ -418,7 +418,7 @@ export class ArcGisFeatureJSON extends ArcGisFeatureReader {
|
|
|
418
418
|
renderer.renderPath(lengths, coords, fill, 2, renderer.transform === undefined);
|
|
419
419
|
|
|
420
420
|
}
|
|
421
|
-
} else if (responseObj
|
|
421
|
+
} else if (responseObj?.geometryType === "esriGeometryPoint" || responseObj?.geometryType === "esriGeometryMultiPoint") {
|
|
422
422
|
for (const feature of responseObj.features) {
|
|
423
423
|
// TODO: Add support for multipoint
|
|
424
424
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (feature.geometry) {
|
|
@@ -516,7 +516,7 @@ export class ArcGisFeatureJSON extends ArcGisFeatureReader {
|
|
|
516
516
|
};
|
|
517
517
|
|
|
518
518
|
for (const [key, value] of Object.entries(feature.attributes))
|
|
519
|
-
subLayerInfo.records
|
|
519
|
+
subLayerInfo.records?.push(getRecordInfo(key,value));
|
|
520
520
|
|
|
521
521
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (layerInfo.info === undefined)
|
|
522
522
|
layerInfo.info = [];
|
|
@@ -535,7 +535,7 @@ export class ArcGisFeatureJSON extends ArcGisFeatureReader {
|
|
|
535
535
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
536
536
|
Code coverage generated by
|
|
537
537
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
538
|
-
at 2023-
|
|
538
|
+
at 2023-05-08T05:13:54.903Z
|
|
539
539
|
</div>
|
|
540
540
|
<script src="../../prettify.js"></script>
|
|
541
541
|
<script>
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">86.88% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>106/122</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">82.92% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>68/82</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">86.88% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>106/122</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -278,9 +278,7 @@
|
|
|
278
278
|
<a name='L213'></a><a href='#L213'>213</a>
|
|
279
279
|
<a name='L214'></a><a href='#L214'>214</a>
|
|
280
280
|
<a name='L215'></a><a href='#L215'>215</a>
|
|
281
|
-
<a name='L216'></a><a href='#L216'>216</a>
|
|
282
|
-
<a name='L217'></a><a href='#L217'>217</a>
|
|
283
|
-
<a name='L218'></a><a href='#L218'>218</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
281
|
+
<a name='L216'></a><a href='#L216'>216</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
284
282
|
<span class="cline-any cline-neutral"> </span>
|
|
285
283
|
<span class="cline-any cline-neutral"> </span>
|
|
286
284
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -331,7 +329,6 @@
|
|
|
331
329
|
<span class="cline-any cline-yes">2x</span>
|
|
332
330
|
<span class="cline-any cline-yes">2x</span>
|
|
333
331
|
<span class="cline-any cline-yes">2x</span>
|
|
334
|
-
<span class="cline-any cline-yes">2x</span>
|
|
335
332
|
<span class="cline-any cline-neutral"> </span>
|
|
336
333
|
<span class="cline-any cline-neutral"> </span>
|
|
337
334
|
<span class="cline-any cline-yes">5x</span>
|
|
@@ -356,8 +353,7 @@
|
|
|
356
353
|
<span class="cline-any cline-neutral"> </span>
|
|
357
354
|
<span class="cline-any cline-neutral"> </span>
|
|
358
355
|
<span class="cline-any cline-yes">5x</span>
|
|
359
|
-
<span class="cline-any cline-
|
|
360
|
-
<span class="cline-any cline-yes">1x</span>
|
|
356
|
+
<span class="cline-any cline-neutral"> </span>
|
|
361
357
|
<span class="cline-any cline-yes">1x</span>
|
|
362
358
|
<span class="cline-any cline-neutral"> </span>
|
|
363
359
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -509,7 +505,7 @@ import { PrimitiveValue, PropertyValueFormat, StandardTypeNames } from "@itwin/a
|
|
|
509
505
|
import { ImageMapLayerSettings } from "@itwin/core-common";
|
|
510
506
|
import { ArcGisFeatureReader } from "./ArcGisFeatureReader";
|
|
511
507
|
import { ArcGisResponseData } from "./ArcGisFeatureResponse";
|
|
512
|
-
import {
|
|
508
|
+
import { Logger } from "@itwin/core-bentley";
|
|
513
509
|
import { ArcGisFeatureGeometryType } from "./ArcGisFeatureQuery";
|
|
514
510
|
|
|
515
511
|
const esriGeometryType = esriPBuffer.FeatureCollectionPBuffer.GeometryType;
|
|
@@ -546,13 +542,12 @@ export class ArcGisFeaturePBF extends ArcGisFeatureReader {
|
|
|
546
542
|
public readAndRender(response: ArcGisResponseData, renderer: ArcGisFeatureRenderer) {
|
|
547
543
|
if (!(response.data instanceof esriPBuffer.FeatureCollectionPBuffer)) {
|
|
548
544
|
const msg = "Response was not in PBF format";
|
|
549
|
-
assert(!msg);
|
|
550
545
|
Logger.logError(loggerCategory, msg);
|
|
551
546
|
return;
|
|
552
547
|
}
|
|
553
548
|
|
|
554
549
|
const collection = response.data;
|
|
555
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (!collection.has_queryResult || !collection.queryResult.has_featureResult || collection
|
|
550
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (!collection.has_queryResult || !collection.queryResult.has_featureResult || collection?.queryResult?.featureResult?.features === undefined)
|
|
556
551
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
557
552
|
|
|
558
553
|
const geomType = collection.queryResult.featureResult.geometryType;
|
|
@@ -566,20 +561,19 @@ export class ArcGisFeaturePBF extends ArcGisFeatureReader {
|
|
|
566
561
|
} else <span class="missing-if-branch" title="else path not taken" >E</span>if (geomType === esriGeometryType.esriGeometryTypePolyline || geomType === esriGeometryType.esriGeometryTypePolygon) {
|
|
567
562
|
const fill = (geomType === esriGeometryType.esriGeometryTypePolygon);
|
|
568
563
|
for (const feature of collection.queryResult.featureResult.features)
|
|
569
|
-
<span class="missing-if-branch" title="else path not taken" >E</span>if (feature
|
|
564
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (feature?.has_geometry)
|
|
570
565
|
renderer.renderPath(feature.geometry.lengths, feature.geometry.coords, fill, stride, renderer.transform === undefined);
|
|
571
566
|
}
|
|
572
567
|
}
|
|
573
568
|
|
|
574
569
|
public readFeatureInfo(response: ArcGisResponseData, featureInfos: MapLayerFeatureInfo[]) {
|
|
575
570
|
if (!(response.data instanceof esriPBuffer.FeatureCollectionPBuffer)) {
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
Logger.logError(loggerCategory, msg);
|
|
571
|
+
|
|
572
|
+
Logger.logError(loggerCategory, "Response was not in PBF format");
|
|
579
573
|
}
|
|
580
574
|
|
|
581
575
|
const collection = response.data as esriPBuffer.FeatureCollectionPBuffer;
|
|
582
|
-
if (!collection.has_queryResult || !collection.queryResult.has_featureResult || collection
|
|
576
|
+
if (!collection.has_queryResult || !collection.queryResult.has_featureResult || collection?.queryResult?.featureResult?.features === undefined)
|
|
583
577
|
return;
|
|
584
578
|
|
|
585
579
|
const layerInfo: MapLayerFeatureInfo = { layerName: this._settings.name, info: [] };
|
|
@@ -698,7 +692,7 @@ export class ArcGisFeaturePBF extends ArcGisFeatureReader {
|
|
|
698
692
|
// Convert everything to string for now
|
|
699
693
|
const info = getRecordInfo(fields[i], attrValue);
|
|
700
694
|
if (info) {
|
|
701
|
-
subLayerInfo.records
|
|
695
|
+
subLayerInfo.records?.push(info);
|
|
702
696
|
}
|
|
703
697
|
|
|
704
698
|
i++;
|
|
@@ -721,7 +715,7 @@ export class ArcGisFeaturePBF extends ArcGisFeatureReader {
|
|
|
721
715
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
722
716
|
Code coverage generated by
|
|
723
717
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
724
|
-
at 2023-
|
|
718
|
+
at 2023-05-08T05:13:54.903Z
|
|
725
719
|
</div>
|
|
726
720
|
<script src="../../prettify.js"></script>
|
|
727
721
|
<script>
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">88.28% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>211/239</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">83.72% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>108/129</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">88.18% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>209/237</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -550,11 +550,7 @@
|
|
|
550
550
|
<a name='L485'></a><a href='#L485'>485</a>
|
|
551
551
|
<a name='L486'></a><a href='#L486'>486</a>
|
|
552
552
|
<a name='L487'></a><a href='#L487'>487</a>
|
|
553
|
-
<a name='L488'></a><a href='#L488'>488</a>
|
|
554
|
-
<a name='L489'></a><a href='#L489'>489</a>
|
|
555
|
-
<a name='L490'></a><a href='#L490'>490</a>
|
|
556
|
-
<a name='L491'></a><a href='#L491'>491</a>
|
|
557
|
-
<a name='L492'></a><a href='#L492'>492</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
553
|
+
<a name='L488'></a><a href='#L488'>488</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
558
554
|
<span class="cline-any cline-neutral"> </span>
|
|
559
555
|
<span class="cline-any cline-neutral"> </span>
|
|
560
556
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -889,7 +885,6 @@
|
|
|
889
885
|
<span class="cline-any cline-neutral"> </span>
|
|
890
886
|
<span class="cline-any cline-yes">2x</span>
|
|
891
887
|
<span class="cline-any cline-yes">1x</span>
|
|
892
|
-
<span class="cline-any cline-yes">1x</span>
|
|
893
888
|
<span class="cline-any cline-neutral"> </span>
|
|
894
889
|
<span class="cline-any cline-neutral"> </span>
|
|
895
890
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -948,13 +943,11 @@
|
|
|
948
943
|
<span class="cline-any cline-yes">3x</span>
|
|
949
944
|
<span class="cline-any cline-no"> </span>
|
|
950
945
|
<span class="cline-any cline-no"> </span>
|
|
951
|
-
<span class="cline-any cline-no"> </span>
|
|
952
946
|
<span class="cline-any cline-neutral"> </span>
|
|
953
947
|
<span class="cline-any cline-neutral"> </span>
|
|
954
948
|
<span class="cline-any cline-yes">3x</span>
|
|
955
949
|
<span class="cline-any cline-no"> </span>
|
|
956
950
|
<span class="cline-any cline-no"> </span>
|
|
957
|
-
<span class="cline-any cline-no"> </span>
|
|
958
951
|
<span class="cline-any cline-neutral"> </span>
|
|
959
952
|
<span class="cline-any cline-yes">3x</span>
|
|
960
953
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -964,7 +957,6 @@
|
|
|
964
957
|
<span class="cline-any cline-yes">2x</span>
|
|
965
958
|
<span class="cline-any cline-yes">2x</span>
|
|
966
959
|
<span class="cline-any cline-no"> </span>
|
|
967
|
-
<span class="cline-any cline-no"> </span>
|
|
968
960
|
<span class="cline-any cline-neutral"> </span>
|
|
969
961
|
<span class="cline-any cline-neutral"> </span>
|
|
970
962
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1051,7 +1043,7 @@
|
|
|
1051
1043
|
*--------------------------------------------------------------------------------------------*/
|
|
1052
1044
|
|
|
1053
1045
|
import { Cartographic, ImageMapLayerSettings, ImageSource, ImageSourceFormat, ServerError } from "@itwin/core-common";
|
|
1054
|
-
import {
|
|
1046
|
+
import { base64StringToUint8Array, IModelStatus, Logger } from "@itwin/core-bentley";
|
|
1055
1047
|
import { Matrix4d, Point3d, Range2d, Transform } from "@itwin/core-geometry";
|
|
1056
1048
|
import { ArcGisErrorCode, ArcGISImageryProvider, ArcGISServiceMetadata, ArcGisUtilities, ImageryMapTileTree, MapCartoRectangle, MapLayerFeatureInfo, MapLayerImageryProviderStatus, QuadId } from "@itwin/core-frontend";
|
|
1057
1049
|
import { ArcGisSymbologyRenderer } from "./ArcGisSymbologyRenderer";
|
|
@@ -1106,7 +1098,7 @@ export class ArcGisFeatureProvider extends ArcGISImageryProvider {
|
|
|
1106
1098
|
throw new ServerError(IModelStatus.ValidationFailed, "");
|
|
1107
1099
|
}
|
|
1108
1100
|
|
|
1109
|
-
if (json
|
|
1101
|
+
if (json?.error?.code === ArcGisErrorCode.TokenRequired || json?.error?.code === ArcGisErrorCode.InvalidToken) {
|
|
1110
1102
|
// Check again layer status, it might have change during await.
|
|
1111
1103
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (this.status === MapLayerImageryProviderStatus.Valid) {
|
|
1112
1104
|
this.setStatus(MapLayerImageryProviderStatus.RequireAuth);
|
|
@@ -1181,9 +1173,9 @@ export class ArcGisFeatureProvider extends ArcGISImageryProvider {
|
|
|
1181
1173
|
|
|
1182
1174
|
// Parse server version
|
|
1183
1175
|
let majorVersion: number|undefined;
|
|
1184
|
-
if (this.serviceJson
|
|
1176
|
+
if (this.serviceJson?.currentVersion) {
|
|
1185
1177
|
try {
|
|
1186
|
-
majorVersion = Math.trunc(this.serviceJson
|
|
1178
|
+
majorVersion = Math.trunc(this.serviceJson?.currentVersion);
|
|
1187
1179
|
} catch {
|
|
1188
1180
|
}
|
|
1189
1181
|
}
|
|
@@ -1228,8 +1220,8 @@ export class ArcGisFeatureProvider extends ArcGISImageryProvider {
|
|
|
1228
1220
|
}
|
|
1229
1221
|
|
|
1230
1222
|
// Check for minScale / max scale
|
|
1231
|
-
const minScale = this._layerMetadata
|
|
1232
|
-
const maxScale = this._layerMetadata
|
|
1223
|
+
const minScale = this._layerMetadata?.minScale || undefined; // undefined, 0 -> undefined
|
|
1224
|
+
const maxScale = this._layerMetadata?.maxScale || undefined; // undefined, 0 -> undefined
|
|
1233
1225
|
const scales = ArcGisUtilities.getZoomLevelsScales(this.defaultMaximumZoomLevel, this.tileSize, minScale, maxScale, 1.0);
|
|
1234
1226
|
if (scales.minLod)
|
|
1235
1227
|
this._minDepthFromLod = scales.minLod;
|
|
@@ -1237,7 +1229,7 @@ export class ArcGisFeatureProvider extends ArcGISImageryProvider {
|
|
|
1237
1229
|
// 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)
|
|
1238
1230
|
this._maxDepthFromLod = (scales.maxLod ? scales.maxLod : this.defaultMaximumZoomLevel);
|
|
1239
1231
|
|
|
1240
|
-
this._symbologyRenderer = new ArcGisSymbologyRenderer(this._layerMetadata
|
|
1232
|
+
this._symbologyRenderer = new ArcGisSymbologyRenderer(this._layerMetadata?.geometryType, this._layerMetadata?.drawingInfo?.renderer);
|
|
1241
1233
|
}
|
|
1242
1234
|
|
|
1243
1235
|
protected async getLayerMetadata(layerId: number) {
|
|
@@ -1249,7 +1241,7 @@ export class ArcGisFeatureProvider extends ArcGISImageryProvider {
|
|
|
1249
1241
|
} catch {
|
|
1250
1242
|
|
|
1251
1243
|
}
|
|
1252
|
-
return metadata
|
|
1244
|
+
return metadata?.content;
|
|
1253
1245
|
}
|
|
1254
1246
|
|
|
1255
1247
|
public override get tileSize(): number { return 512; }
|
|
@@ -1379,7 +1371,6 @@ export class ArcGisFeatureProvider extends ArcGISImageryProvider {
|
|
|
1379
1371
|
|
|
1380
1372
|
private async fetchTile(row: number, column: number, zoomLevel: number, refineEnvelope?: ArcGisExtent): Promise<ArcGisFeatureResponse | undefined> {
|
|
1381
1373
|
if (!this.format) {
|
|
1382
|
-
assert(!"No supported query format");
|
|
1383
1374
|
return undefined;
|
|
1384
1375
|
}
|
|
1385
1376
|
|
|
@@ -1438,13 +1429,11 @@ export class ArcGisFeatureProvider extends ArcGISImageryProvider {
|
|
|
1438
1429
|
const ctx = canvas.getContext("2d");
|
|
1439
1430
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (ctx == null) {
|
|
1440
1431
|
<span class="cstat-no" title="statement not covered" > Logger.logError(loggerCategory, "No canvas context available for loading tile.");</span>
|
|
1441
|
-
<span class="cstat-no" title="statement not covered" > assert(!"no canvas context");</span>
|
|
1442
1432
|
<span class="cstat-no" title="statement not covered" > return undefined;</span>
|
|
1443
1433
|
}
|
|
1444
1434
|
|
|
1445
1435
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (!this._symbologyRenderer) {
|
|
1446
1436
|
<span class="cstat-no" title="statement not covered" > Logger.logError(loggerCategory, "No symbology renderer available for loading tile.");</span>
|
|
1447
|
-
<span class="cstat-no" title="statement not covered" > assert(!"No symbology renderer");</span>
|
|
1448
1437
|
<span class="cstat-no" title="statement not covered" > return undefined;</span>
|
|
1449
1438
|
}
|
|
1450
1439
|
try {
|
|
@@ -1455,7 +1444,6 @@ export class ArcGisFeatureProvider extends ArcGISImageryProvider {
|
|
|
1455
1444
|
transfo = this.computeTileWorld2CanvasTransform(row, column, zoomLevel);
|
|
1456
1445
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (!transfo) {
|
|
1457
1446
|
<span class="cstat-no" title="statement not covered" > Logger.logError(loggerCategory, `Could not compute data transformation for tile (${zoomLevel}/${row}/${column})`);</span>
|
|
1458
|
-
<span class="cstat-no" title="statement not covered" > assert(!"Could not compute world to canvas transform");</span>
|
|
1459
1447
|
}
|
|
1460
1448
|
}
|
|
1461
1449
|
|
|
@@ -1543,7 +1531,7 @@ export class ArcGisFeatureProvider extends ArcGISImageryProvider {
|
|
|
1543
1531
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1544
1532
|
Code coverage generated by
|
|
1545
1533
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1546
|
-
at 2023-
|
|
1534
|
+
at 2023-05-08T05:13:54.903Z
|
|
1547
1535
|
</div>
|
|
1548
1536
|
<script src="../../prettify.js"></script>
|
|
1549
1537
|
<script>
|
|
@@ -748,7 +748,7 @@ export class ArcGisFeatureQuery {
|
|
|
748
748
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
749
749
|
Code coverage generated by
|
|
750
750
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
751
|
-
at 2023-
|
|
751
|
+
at 2023-05-08T05:13:54.903Z
|
|
752
752
|
</div>
|
|
753
753
|
<script src="../../prettify.js"></script>
|
|
754
754
|
<script>
|
|
@@ -208,7 +208,7 @@ export abstract class ArcGisFeatureReader {
|
|
|
208
208
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
209
209
|
Code coverage generated by
|
|
210
210
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
211
|
-
at 2023-
|
|
211
|
+
at 2023-05-08T05:13:54.903Z
|
|
212
212
|
</div>
|
|
213
213
|
<script src="../../prettify.js"></script>
|
|
214
214
|
<script>
|
|
@@ -583,7 +583,7 @@ export class ArcGisFeatureRenderer {
|
|
|
583
583
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
584
584
|
Code coverage generated by
|
|
585
585
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
586
|
-
at 2023-
|
|
586
|
+
at 2023-05-08T05:13:54.903Z
|
|
587
587
|
</div>
|
|
588
588
|
<script src="../../prettify.js"></script>
|
|
589
589
|
<script>
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">85.71% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>12/14</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -264,7 +264,7 @@ export class ArcGisFeatureResponse {
|
|
|
264
264
|
|
|
265
265
|
data = esriPBuffer.FeatureCollectionPBuffer.deserialize(byteArray);
|
|
266
266
|
const collection = data as esriPBuffer.FeatureCollectionPBuffer;
|
|
267
|
-
return {data, exceedTransferLimit: collection
|
|
267
|
+
return {data, exceedTransferLimit: collection?.queryResult?.featureResult?.exceededTransferLimit};
|
|
268
268
|
|
|
269
269
|
} else {
|
|
270
270
|
data = await tileResponse.json();
|
|
@@ -286,7 +286,7 @@ export class ArcGisFeatureResponse {
|
|
|
286
286
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
287
287
|
Code coverage generated by
|
|
288
288
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
289
|
-
at 2023-
|
|
289
|
+
at 2023-05-08T05:13:54.903Z
|
|
290
290
|
</div>
|
|
291
291
|
<script src="../../prettify.js"></script>
|
|
292
292
|
<script>
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">76.47% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>52/68</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -718,7 +718,7 @@ export class ArcGisSymbologyRenderer {
|
|
|
718
718
|
if (rendererDefinition?.symbol !== undefined) {
|
|
719
719
|
symbol = rendererDefinition.symbol;
|
|
720
720
|
} else if (rendererDefinition?.defaultSymbol !== undefined) {
|
|
721
|
-
symbol = rendererDefinition
|
|
721
|
+
symbol = rendererDefinition?.defaultSymbol;
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
if (symbol !== undefined) {
|
|
@@ -752,7 +752,7 @@ export class ArcGisSymbologyRenderer {
|
|
|
752
752
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (!context)
|
|
753
753
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
754
754
|
|
|
755
|
-
if (this._symbol
|
|
755
|
+
if (this._symbol?.type === "esriSFS") {
|
|
756
756
|
const sfs = this._symbol as EsriSFS;
|
|
757
757
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (sfs.style === "esriSFSSolid" && sfs.color) {
|
|
758
758
|
context.fillStyle = sfs.color.toRgbaString();
|
|
@@ -767,12 +767,12 @@ export class ArcGisSymbologyRenderer {
|
|
|
767
767
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
768
768
|
|
|
769
769
|
let sls: EsriSLS | undefined;
|
|
770
|
-
if (this._symbol
|
|
770
|
+
if (this._symbol?.type === "esriSFS") {
|
|
771
771
|
const sfs = this._symbol as EsriSFS;
|
|
772
772
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (sfs.outline && sfs.outline.style === "esriSLSSolid") {
|
|
773
773
|
sls = sfs.outline;
|
|
774
774
|
}
|
|
775
|
-
} else <span class="missing-if-branch" title="else path not taken" >E</span>if (this._symbol
|
|
775
|
+
} else <span class="missing-if-branch" title="else path not taken" >E</span>if (this._symbol?.type === "esriSLS") {
|
|
776
776
|
sls = this._symbol as EsriSLS;
|
|
777
777
|
}
|
|
778
778
|
|
|
@@ -787,7 +787,7 @@ export class ArcGisSymbologyRenderer {
|
|
|
787
787
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (!context)
|
|
788
788
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
789
789
|
|
|
790
|
-
<span class="missing-if-branch" title="else path not taken" >E</span>if (this._symbol
|
|
790
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (this._symbol?.type === "esriPMS") {
|
|
791
791
|
const pms = this._symbol as EsriPMS;
|
|
792
792
|
let xOffset = 0, yOffset = 0;
|
|
793
793
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (pms.xoffset)
|
|
@@ -817,7 +817,7 @@ export class ArcGisSymbologyRenderer {
|
|
|
817
817
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
818
818
|
Code coverage generated by
|
|
819
819
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
820
|
-
at 2023-
|
|
820
|
+
at 2023-05-08T05:13:54.903Z
|
|
821
821
|
</div>
|
|
822
822
|
<script src="../../prettify.js"></script>
|
|
823
823
|
<script>
|