@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.
Files changed (181) hide show
  1. package/.rush/temp/operation/build/all.log +3 -0
  2. package/.rush/temp/operation/build/state.json +3 -0
  3. package/.rush/temp/operation/cover/all.log +98 -0
  4. package/.rush/temp/operation/cover/state.json +1 -1
  5. package/.rush/temp/operation/docs/all.log +30 -0
  6. package/.rush/temp/operation/docs/state.json +1 -1
  7. package/.rush/temp/{package-deps_build_ci.json → package-deps_build.json} +13 -13
  8. package/.rush/temp/package-deps_cover.json +12 -12
  9. package/.rush/temp/package-deps_docs.json +12 -12
  10. package/.rush/temp/shrinkwrap-deps.json +204 -54
  11. package/CHANGELOG.json +69 -0
  12. package/CHANGELOG.md +54 -1
  13. package/config/rush-project.json +1 -2
  14. package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.d.ts +8 -8
  15. package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js +14 -14
  16. package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
  17. package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts +14 -14
  18. package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js +132 -134
  19. package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js.map +1 -1
  20. package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts +14 -14
  21. package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +1 -1
  22. package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js +200 -205
  23. package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js.map +1 -1
  24. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts +44 -44
  25. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
  26. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js +421 -426
  27. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
  28. package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts +92 -92
  29. package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
  30. package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js +82 -82
  31. package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts +17 -17
  32. package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js +33 -33
  33. package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts +32 -32
  34. package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js +142 -142
  35. package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts +16 -16
  36. package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -1
  37. package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js +42 -43
  38. package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
  39. package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +85 -85
  40. package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
  41. package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js +189 -192
  42. package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
  43. package/lib/cjs/ArcGisFeature/esriPBuffer.gen.d.ts +1063 -1063
  44. package/lib/cjs/ArcGisFeature/esriPBuffer.gen.d.ts.map +1 -1
  45. package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js +2267 -2270
  46. package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
  47. package/lib/cjs/map-layers-formats.d.ts +8 -8
  48. package/lib/cjs/map-layers-formats.js +28 -24
  49. package/lib/cjs/map-layers-formats.js.map +1 -1
  50. package/lib/cjs/mapLayersFormats.d.ts +10 -10
  51. package/lib/cjs/mapLayersFormats.js +28 -28
  52. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +1 -1
  53. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +34 -34
  54. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +1 -1
  55. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js +161 -161
  56. package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +1 -1
  57. package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js +167 -167
  58. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +1 -1
  59. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js +679 -680
  60. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +1 -1
  61. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +1 -1
  62. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js +103 -103
  63. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +1 -1
  64. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +214 -214
  65. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +1 -1
  66. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js +94 -94
  67. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +1 -1
  68. package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +1 -1
  69. package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +59 -59
  70. package/lib/cjs/test/ArcGisFeature/Mocks.d.ts +6 -6
  71. package/lib/cjs/test/ArcGisFeature/Mocks.js +18 -18
  72. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts +55 -55
  73. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts.map +1 -1
  74. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js +419 -419
  75. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js.map +1 -1
  76. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +1042 -1042
  77. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +1 -1
  78. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js +426 -426
  79. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js.map +1 -1
  80. package/lib/cjs/test/coverage/.nyc_output/bd2a5894-ab2c-4c90-bfb9-f545c1f3c3ad.json +1 -0
  81. package/lib/cjs/test/coverage/.nyc_output/processinfo/b5a5c114-6a90-41f0-ad7b-9ba31cc9d9d3.json +1 -0
  82. package/lib/cjs/test/coverage/.nyc_output/processinfo/bd2a5894-ab2c-4c90-bfb9-f545c1f3c3ad.json +1 -0
  83. package/lib/cjs/test/coverage/.nyc_output/processinfo/index.json +1 -1
  84. package/lib/cjs/test/coverage/cobertura-coverage.xml +229 -236
  85. package/lib/cjs/test/coverage/lcov-report/index.html +14 -14
  86. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureFormat.ts.html +1 -1
  87. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureJSON.ts.html +10 -10
  88. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeaturePBF.ts.html +16 -22
  89. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureProvider.ts.html +16 -28
  90. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureQuery.ts.html +1 -1
  91. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureReader.ts.html +1 -1
  92. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureRenderer.ts.html +1 -1
  93. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureResponse.ts.html +4 -4
  94. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisSymbologyRenderer.ts.html +8 -8
  95. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/index.html +29 -29
  96. package/lib/cjs/test/coverage/lcov-report/src/index.html +1 -1
  97. package/lib/cjs/test/coverage/lcov-report/src/map-layers-formats.ts.html +1 -1
  98. package/lib/cjs/test/coverage/lcov-report/src/mapLayersFormats.ts.html +1 -1
  99. package/lib/cjs/test/coverage/lcov.info +514 -697
  100. package/lib/cjs/tsconfig.tsbuildinfo +1 -1
  101. package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.d.ts +8 -8
  102. package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js +11 -10
  103. package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
  104. package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts +14 -14
  105. package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js +128 -130
  106. package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js.map +1 -1
  107. package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts +14 -14
  108. package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +1 -1
  109. package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js +196 -201
  110. package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js.map +1 -1
  111. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts +44 -44
  112. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
  113. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js +418 -422
  114. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
  115. package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts +92 -92
  116. package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
  117. package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js +78 -78
  118. package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts +17 -17
  119. package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js +29 -29
  120. package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts +32 -32
  121. package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js +138 -138
  122. package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts +16 -16
  123. package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -1
  124. package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js +38 -39
  125. package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
  126. package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +85 -85
  127. package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
  128. package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js +183 -185
  129. package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
  130. package/lib/esm/ArcGisFeature/esriPBuffer.gen.d.ts +1063 -1063
  131. package/lib/esm/ArcGisFeature/esriPBuffer.gen.d.ts.map +1 -1
  132. package/lib/esm/ArcGisFeature/esriPBuffer.gen.js +2264 -2267
  133. package/lib/esm/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
  134. package/lib/esm/map-layers-formats.d.ts +8 -8
  135. package/lib/esm/map-layers-formats.js +12 -12
  136. package/lib/esm/mapLayersFormats.d.ts +10 -10
  137. package/lib/esm/mapLayersFormats.js +24 -24
  138. package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +1 -1
  139. package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +32 -32
  140. package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +1 -1
  141. package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js +159 -159
  142. package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +1 -1
  143. package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js +165 -165
  144. package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +1 -1
  145. package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js +677 -678
  146. package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +1 -1
  147. package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +1 -1
  148. package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js +101 -101
  149. package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +1 -1
  150. package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +212 -212
  151. package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +1 -1
  152. package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js +92 -92
  153. package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +1 -1
  154. package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +1 -1
  155. package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +57 -57
  156. package/lib/esm/test/ArcGisFeature/Mocks.d.ts +6 -6
  157. package/lib/esm/test/ArcGisFeature/Mocks.js +15 -15
  158. package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts +55 -55
  159. package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts.map +1 -1
  160. package/lib/esm/test/ArcGisFeature/NewYorkDataset.js +416 -415
  161. package/lib/esm/test/ArcGisFeature/NewYorkDataset.js.map +1 -1
  162. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +1042 -1042
  163. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +1 -1
  164. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js +423 -422
  165. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js.map +1 -1
  166. package/lib/esm/tsconfig.tsbuildinfo +1 -1
  167. package/lib/test/junit_results.xml +43 -43
  168. package/map-layers-formats.build.log +2 -2
  169. package/package.json +18 -19
  170. package/src/ArcGisFeature/ArcGisFeaturePBF.ts +3 -5
  171. package/src/ArcGisFeature/ArcGisFeatureProvider.ts +1 -5
  172. package/src/ArcGisFeature/esriPBuffer.gen.ts +1 -4
  173. package/src/test/ArcGisFeature/ArcGisFeatureProvider.test.ts +21 -21
  174. package/src/test/ArcGisFeature/NewYorkDataset.ts +187 -187
  175. package/src/test/ArcGisFeature/PhillyLandmarksDataset.ts +4 -4
  176. package/tsconfig.json +1 -2
  177. package/.rush/temp/operation/build_ci/state.json +0 -3
  178. package/lib/cjs/test/coverage/.nyc_output/076f01d3-f97f-4be1-bb26-ced6ce465355.json +0 -1
  179. package/lib/cjs/test/coverage/.nyc_output/processinfo/076f01d3-f97f-4be1-bb26-ced6ce465355.json +0 -1
  180. package/lib/cjs/test/coverage/.nyc_output/processinfo/722f7ba4-f4d4-48f9-bd83-5d50f87f28e7.json +0 -1
  181. /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.16% </span>
26
+ <span class="strong">91.5% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>650/713</span>
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">82.84% </span>
33
+ <span class="strong">85.01% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>483/583</span>
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.03% </span>
47
+ <span class="strong">91.37% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>640/703</span>
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.47" class="pic high">
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.47" class="pct high">91.47%</td>
102
- <td data-value="704" class="abs high">644/704</td>
103
- <td data-value="83.13" class="pct high">83.13%</td>
104
- <td data-value="581" class="abs high">483/581</td>
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.35" class="pct high">91.35%</td>
108
- <td data-value="694" class="abs high">634/694</td>
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-01-31T05:15:09.088Z
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-01-31T05:15:09.088Z
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">81.52% </span>
33
+ <span class="strong">90% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>75/92</span>
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
  &nbsp;
400
- if (responseObj<span class="branch-0 cbranch-no" title="branch not covered" >?.g</span>eometryType === "esriGeometryPolyline" || responseObj<span class="branch-0 cbranch-no" title="branch not covered" >?.g</span>eometryType === "esriGeometryPolygon") {
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
  &nbsp;
407
- if (feature<span class="branch-0 cbranch-no" title="branch not covered" >?.g</span>eometry<span class="branch-0 cbranch-no" title="branch not covered" >?.r</span>ings) {
408
- for (const ring of feature<span class="branch-0 cbranch-no" title="branch not covered" >?.g</span>eometry<span class="branch-0 cbranch-no" title="branch not covered" >?.r</span>ings) {
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<span class="branch-0 cbranch-no" title="branch not covered" >?.g</span>eometry<span class="branch-0 cbranch-no" title="branch not covered" >?.p</span>aths) {
413
- for (const path of feature<span class="branch-0 cbranch-no" title="branch not covered" >?.g</span>eometry<span class="branch-0 cbranch-no" title="branch not covered" >?.p</span>aths) {
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
  &nbsp;
420
420
  }
421
- } else if (responseObj<span class="branch-0 cbranch-no" title="branch not covered" >?.g</span>eometryType === "esriGeometryPoint" || responseObj<span class="branch-0 cbranch-no" title="branch not covered" >?.g</span>eometryType === "esriGeometryMultiPoint") {
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
  &nbsp;
518
518
  for (const [key, value] of Object.entries(feature.attributes))
519
- subLayerInfo.records<span class="branch-0 cbranch-no" title="branch not covered" >?.p</span>ush(getRecordInfo(key,value));
519
+ subLayerInfo.records?.push(getRecordInfo(key,value));
520
520
  &nbsp;
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-01-31T05:15:09.088Z
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">87.2% </span>
26
+ <span class="strong">86.88% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>109/125</span>
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">80.7% </span>
33
+ <span class="strong">82.92% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>92/114</span>
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">87.2% </span>
47
+ <span class="strong">86.88% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>109/125</span>
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">&nbsp;</span>
281
+ <a name='L216'></a><a href='#L216'>216</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
284
282
  <span class="cline-any cline-neutral">&nbsp;</span>
285
283
  <span class="cline-any cline-neutral">&nbsp;</span>
286
284
  <span class="cline-any cline-neutral">&nbsp;</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">&nbsp;</span>
336
333
  <span class="cline-any cline-neutral">&nbsp;</span>
337
334
  <span class="cline-any cline-yes">5x</span>
@@ -356,8 +353,7 @@
356
353
  <span class="cline-any cline-neutral">&nbsp;</span>
357
354
  <span class="cline-any cline-neutral">&nbsp;</span>
358
355
  <span class="cline-any cline-yes">5x</span>
359
- <span class="cline-any cline-yes">1x</span>
360
- <span class="cline-any cline-yes">1x</span>
356
+ <span class="cline-any cline-neutral">&nbsp;</span>
361
357
  <span class="cline-any cline-yes">1x</span>
362
358
  <span class="cline-any cline-neutral">&nbsp;</span>
363
359
  <span class="cline-any cline-neutral">&nbsp;</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 { assert, Logger } from "@itwin/core-bentley";
508
+ import { Logger } from "@itwin/core-bentley";
513
509
  import { ArcGisFeatureGeometryType } from "./ArcGisFeatureQuery";
514
510
  &nbsp;
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
  &nbsp;
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<span class="branch-0 cbranch-no" title="branch not covered" >?.q</span>ueryResult<span class="branch-0 cbranch-no" title="branch not covered" >?.f</span>eatureResult<span class="branch-0 cbranch-no" title="branch not covered" >?.f</span>eatures === undefined)
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
  &nbsp;
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<span class="branch-0 cbranch-no" title="branch not covered" >?.h</span>as_geometry)
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
  &nbsp;
574
569
  public readFeatureInfo(response: ArcGisResponseData, featureInfos: MapLayerFeatureInfo[]) {
575
570
  if (!(response.data instanceof esriPBuffer.FeatureCollectionPBuffer)) {
576
- const msg = "Response was not in PBF format";
577
- assert(!msg);
578
- Logger.logError(loggerCategory, msg);
571
+ &nbsp;
572
+ Logger.logError(loggerCategory, "Response was not in PBF format");
579
573
  }
580
574
  &nbsp;
581
575
  const collection = response.data as esriPBuffer.FeatureCollectionPBuffer;
582
- if (!collection.has_queryResult || !collection.queryResult.has_featureResult || collection<span class="branch-0 cbranch-no" title="branch not covered" >?.q</span>ueryResult<span class="branch-0 cbranch-no" title="branch not covered" >?.f</span>eatureResult<span class="branch-0 cbranch-no" title="branch not covered" >?.f</span>eatures === undefined)
576
+ if (!collection.has_queryResult || !collection.queryResult.has_featureResult || collection?.queryResult?.featureResult?.features === undefined)
583
577
  return;
584
578
  &nbsp;
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<span class="branch-0 cbranch-no" title="branch not covered" >?.p</span>ush(info);
695
+ subLayerInfo.records?.push(info);
702
696
  }
703
697
  &nbsp;
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-01-31T05:15:09.088Z
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">87.24% </span>
26
+ <span class="strong">88.28% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>212/243</span>
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">82.87% </span>
33
+ <span class="strong">83.72% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>150/181</span>
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">87.13% </span>
47
+ <span class="strong">88.18% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>210/241</span>
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">&nbsp;</span>
553
+ <a name='L488'></a><a href='#L488'>488</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
558
554
  <span class="cline-any cline-neutral">&nbsp;</span>
559
555
  <span class="cline-any cline-neutral">&nbsp;</span>
560
556
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -889,7 +885,6 @@
889
885
  <span class="cline-any cline-neutral">&nbsp;</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">&nbsp;</span>
894
889
  <span class="cline-any cline-neutral">&nbsp;</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">&nbsp;</span>
950
945
  <span class="cline-any cline-no">&nbsp;</span>
951
- <span class="cline-any cline-no">&nbsp;</span>
952
946
  <span class="cline-any cline-neutral">&nbsp;</span>
953
947
  <span class="cline-any cline-neutral">&nbsp;</span>
954
948
  <span class="cline-any cline-yes">3x</span>
955
949
  <span class="cline-any cline-no">&nbsp;</span>
956
950
  <span class="cline-any cline-no">&nbsp;</span>
957
- <span class="cline-any cline-no">&nbsp;</span>
958
951
  <span class="cline-any cline-neutral">&nbsp;</span>
959
952
  <span class="cline-any cline-yes">3x</span>
960
953
  <span class="cline-any cline-neutral">&nbsp;</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">&nbsp;</span>
967
- <span class="cline-any cline-no">&nbsp;</span>
968
960
  <span class="cline-any cline-neutral">&nbsp;</span>
969
961
  <span class="cline-any cline-neutral">&nbsp;</span>
970
962
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -1051,7 +1043,7 @@
1051
1043
  *--------------------------------------------------------------------------------------------*/
1052
1044
  &nbsp;
1053
1045
  import { Cartographic, ImageMapLayerSettings, ImageSource, ImageSourceFormat, ServerError } from "@itwin/core-common";
1054
- import { assert, base64StringToUint8Array, IModelStatus, Logger } from "@itwin/core-bentley";
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
  &nbsp;
1109
- if (json<span class="branch-0 cbranch-no" title="branch not covered" >?.e</span>rror?.code === ArcGisErrorCode.TokenRequired || json<span class="branch-0 cbranch-no" title="branch not covered" >?.e</span>rror<span class="branch-1 cbranch-no" title="branch not covered" >?.code </span>=== ArcGisErrorCode.InvalidToken) {
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
  &nbsp;
1182
1174
  // Parse server version
1183
1175
  let majorVersion: number|undefined;
1184
- if (this.serviceJson<span class="branch-0 cbranch-no" title="branch not covered" >?.c</span>urrentVersion) {
1176
+ if (this.serviceJson?.currentVersion) {
1185
1177
  try {
1186
- majorVersion = Math.trunc(this.serviceJson<span class="branch-0 cbranch-no" title="branch not covered" >?.c</span>urrentVersion);
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
  &nbsp;
1230
1222
  // Check for minScale / max scale
1231
- const minScale = this._layerMetadata<span class="branch-0 cbranch-no" title="branch not covered" >?.m</span>inScale || undefined; // undefined, 0 -&gt; undefined
1232
- const maxScale = this._layerMetadata<span class="branch-0 cbranch-no" title="branch not covered" >?.m</span>axScale || undefined; // undefined, 0 -&gt; undefined
1223
+ const minScale = this._layerMetadata?.minScale || undefined; // undefined, 0 -&gt; undefined
1224
+ const maxScale = this._layerMetadata?.maxScale || undefined; // undefined, 0 -&gt; 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
  &nbsp;
1240
- this._symbologyRenderer = new ArcGisSymbologyRenderer(this._layerMetadata<span class="branch-0 cbranch-no" title="branch not covered" >?.g</span>eometryType, this._layerMetadata<span class="branch-0 cbranch-no" title="branch not covered" >?.d</span>rawingInfo?.renderer);
1232
+ this._symbologyRenderer = new ArcGisSymbologyRenderer(this._layerMetadata?.geometryType, this._layerMetadata?.drawingInfo?.renderer);
1241
1233
  }
1242
1234
  &nbsp;
1243
1235
  protected async getLayerMetadata(layerId: number) {
@@ -1249,7 +1241,7 @@ export class ArcGisFeatureProvider extends ArcGISImageryProvider {
1249
1241
  } catch {
1250
1242
  &nbsp;
1251
1243
  }
1252
- return metadata<span class="branch-0 cbranch-no" title="branch not covered" >?.c</span>ontent;
1244
+ return metadata?.content;
1253
1245
  }
1254
1246
  &nbsp;
1255
1247
  public override get tileSize(): number { return 512; }
@@ -1379,7 +1371,6 @@ export class ArcGisFeatureProvider extends ArcGISImageryProvider {
1379
1371
  &nbsp;
1380
1372
  private async fetchTile(row: number, column: number, zoomLevel: number, refineEnvelope?: ArcGisExtent): Promise&lt;ArcGisFeatureResponse | undefined&gt; {
1381
1373
  if (!this.format) {
1382
- assert(!"No supported query format");
1383
1374
  return undefined;
1384
1375
  }
1385
1376
  &nbsp;
@@ -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
  &nbsp;
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
  &nbsp;
@@ -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-01-31T05:15:09.088Z
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-01-31T05:15:09.088Z
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-01-31T05:15:09.088Z
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-01-31T05:15:09.088Z
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">80.76% </span>
33
+ <span class="strong">85.71% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>21/26</span>
35
+ <span class='fraction'>12/14</span>
36
36
  </div>
37
37
 
38
38
 
@@ -264,7 +264,7 @@ export class ArcGisFeatureResponse {
264
264
  &nbsp;
265
265
  data = esriPBuffer.FeatureCollectionPBuffer.deserialize(byteArray);
266
266
  const collection = data as esriPBuffer.FeatureCollectionPBuffer;
267
- return {data, exceedTransferLimit: collection<span class="branch-0 cbranch-no" title="branch not covered" >?.q</span>ueryResult<span class="branch-0 cbranch-no" title="branch not covered" >?.f</span>eatureResult<span class="branch-0 cbranch-no" title="branch not covered" >?.e</span>xceededTransferLimit};
267
+ return {data, exceedTransferLimit: collection?.queryResult?.featureResult?.exceededTransferLimit};
268
268
  &nbsp;
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-01-31T05:15:09.088Z
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">78.12% </span>
33
+ <span class="strong">76.47% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>75/96</span>
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<span class="branch-0 cbranch-no" title="branch not covered" >?.d</span>efaultSymbol;
721
+ symbol = rendererDefinition?.defaultSymbol;
722
722
  }
723
723
  &nbsp;
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
  &nbsp;
755
- if (this._symbol<span class="branch-0 cbranch-no" title="branch not covered" >?.t</span>ype === "esriSFS") {
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" &amp;&amp; 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
  &nbsp;
769
769
  let sls: EsriSLS | undefined;
770
- if (this._symbol<span class="branch-0 cbranch-no" title="branch not covered" >?.t</span>ype === "esriSFS") {
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 &amp;&amp; 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<span class="branch-0 cbranch-no" title="branch not covered" >?.t</span>ype === "esriSLS") {
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
  &nbsp;
@@ -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
  &nbsp;
790
- <span class="missing-if-branch" title="else path not taken" >E</span>if (this._symbol<span class="branch-0 cbranch-no" title="branch not covered" >?.t</span>ype === "esriPMS") {
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-01-31T05:15:09.088Z
820
+ at 2023-05-08T05:13:54.903Z
821
821
  </div>
822
822
  <script src="../../prettify.js"></script>
823
823
  <script>