@itwin/map-layers-formats 4.1.0-dev.51 → 4.1.0-dev.56

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 (272) hide show
  1. package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.d.ts +17 -0
  2. package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.d.ts.map +1 -0
  3. package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.js +42 -0
  4. package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.js.map +1 -0
  5. package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
  6. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts +4 -5
  7. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
  8. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js +39 -24
  9. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
  10. package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts +5 -0
  11. package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
  12. package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js +4 -0
  13. package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -1
  14. package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts +15 -6
  15. package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -1
  16. package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js +6 -4
  17. package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js.map +1 -1
  18. package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
  19. package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.d.ts +13 -0
  20. package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.d.ts.map +1 -0
  21. package/lib/cjs/ArcGisFeature/{ArcGisFeatureJSON.js → ArcGisJsonFeatureReader.js} +36 -58
  22. package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.js.map +1 -0
  23. package/lib/cjs/ArcGisFeature/{ArcGisFeaturePBF.d.ts → ArcGisPbfFeatureReader.d.ts} +6 -7
  24. package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.d.ts.map +1 -0
  25. package/lib/cjs/ArcGisFeature/{ArcGisFeaturePBF.js → ArcGisPbfFeatureReader.js} +46 -32
  26. package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.js.map +1 -0
  27. package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js +1 -1
  28. package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
  29. package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
  30. package/lib/cjs/Tools/MapFeatureInfoDecorator.d.ts +34 -0
  31. package/lib/cjs/Tools/MapFeatureInfoDecorator.d.ts.map +1 -0
  32. package/lib/cjs/Tools/MapFeatureInfoDecorator.js +281 -0
  33. package/lib/cjs/Tools/MapFeatureInfoDecorator.js.map +1 -0
  34. package/lib/cjs/Tools/MapFeatureInfoTool.d.ts +38 -0
  35. package/lib/cjs/Tools/MapFeatureInfoTool.d.ts.map +1 -0
  36. package/lib/cjs/Tools/MapFeatureInfoTool.js +113 -0
  37. package/lib/cjs/Tools/MapFeatureInfoTool.js.map +1 -0
  38. package/lib/cjs/map-layers-formats.d.ts +1 -0
  39. package/lib/cjs/map-layers-formats.d.ts.map +1 -1
  40. package/lib/cjs/map-layers-formats.js +1 -0
  41. package/lib/cjs/map-layers-formats.js.map +1 -1
  42. package/lib/cjs/mapLayersFormats.d.ts +12 -1
  43. package/lib/cjs/mapLayersFormats.d.ts.map +1 -1
  44. package/lib/cjs/mapLayersFormats.js +11 -1
  45. package/lib/cjs/mapLayersFormats.js.map +1 -1
  46. package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.d.ts +17 -0
  47. package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.d.ts.map +1 -0
  48. package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.js +38 -0
  49. package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.js.map +1 -0
  50. package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
  51. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts +4 -5
  52. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
  53. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js +40 -25
  54. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
  55. package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts +5 -0
  56. package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
  57. package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js +4 -0
  58. package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -1
  59. package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts +15 -6
  60. package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -1
  61. package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js +4 -2
  62. package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js.map +1 -1
  63. package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
  64. package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.d.ts +13 -0
  65. package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.d.ts.map +1 -0
  66. package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.js +107 -0
  67. package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.js.map +1 -0
  68. package/lib/esm/ArcGisFeature/{ArcGisFeaturePBF.d.ts → ArcGisPbfFeatureReader.d.ts} +6 -7
  69. package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.d.ts.map +1 -0
  70. package/lib/esm/ArcGisFeature/{ArcGisFeaturePBF.js → ArcGisPbfFeatureReader.js} +44 -30
  71. package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.js.map +1 -0
  72. package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js +1 -1
  73. package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
  74. package/lib/esm/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
  75. package/lib/esm/Tools/MapFeatureInfoDecorator.d.ts +34 -0
  76. package/lib/esm/Tools/MapFeatureInfoDecorator.d.ts.map +1 -0
  77. package/lib/esm/Tools/MapFeatureInfoDecorator.js +277 -0
  78. package/lib/esm/Tools/MapFeatureInfoDecorator.js.map +1 -0
  79. package/lib/esm/Tools/MapFeatureInfoTool.d.ts +38 -0
  80. package/lib/esm/Tools/MapFeatureInfoTool.d.ts.map +1 -0
  81. package/lib/esm/Tools/MapFeatureInfoTool.js +110 -0
  82. package/lib/esm/Tools/MapFeatureInfoTool.js.map +1 -0
  83. package/lib/esm/map-layers-formats.d.ts +1 -0
  84. package/lib/esm/map-layers-formats.d.ts.map +1 -1
  85. package/lib/esm/map-layers-formats.js +1 -0
  86. package/lib/esm/map-layers-formats.js.map +1 -1
  87. package/lib/esm/mapLayersFormats.d.ts +12 -1
  88. package/lib/esm/mapLayersFormats.d.ts.map +1 -1
  89. package/lib/esm/mapLayersFormats.js +13 -2
  90. package/lib/esm/mapLayersFormats.js.map +1 -1
  91. package/lib/public/locales/en/mapLayersFormats.json +12 -0
  92. package/package.json +15 -12
  93. package/.nycrc +0 -10
  94. package/.rush/temp/operation/build/all.log +0 -1
  95. package/.rush/temp/operation/build/state.json +0 -3
  96. package/.rush/temp/operation/cover/all.log +0 -103
  97. package/.rush/temp/operation/cover/state.json +0 -3
  98. package/.rush/temp/operation/docs/all.log +0 -30
  99. package/.rush/temp/operation/docs/state.json +0 -3
  100. package/.rush/temp/package-deps_build.json +0 -36
  101. package/.rush/temp/package-deps_cover.json +0 -36
  102. package/.rush/temp/package-deps_docs.json +0 -36
  103. package/.rush/temp/shrinkwrap-deps.json +0 -495
  104. package/CHANGELOG.json +0 -176
  105. package/config/rush-project.json +0 -6
  106. package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts +0 -15
  107. package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts.map +0 -1
  108. package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js.map +0 -1
  109. package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +0 -1
  110. package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js.map +0 -1
  111. package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts +0 -33
  112. package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts.map +0 -1
  113. package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js +0 -143
  114. package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js.map +0 -1
  115. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +0 -2
  116. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts.map +0 -1
  117. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +0 -35
  118. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js.map +0 -1
  119. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +0 -2
  120. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts.map +0 -1
  121. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js +0 -162
  122. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js.map +0 -1
  123. package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +0 -2
  124. package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts.map +0 -1
  125. package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js +0 -168
  126. package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js.map +0 -1
  127. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +0 -2
  128. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts.map +0 -1
  129. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js +0 -812
  130. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +0 -1
  131. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +0 -2
  132. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts.map +0 -1
  133. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js +0 -104
  134. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js.map +0 -1
  135. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +0 -2
  136. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts.map +0 -1
  137. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +0 -215
  138. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js.map +0 -1
  139. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +0 -2
  140. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts.map +0 -1
  141. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js +0 -95
  142. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +0 -1
  143. package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +0 -2
  144. package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts.map +0 -1
  145. package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +0 -60
  146. package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js.map +0 -1
  147. package/lib/cjs/test/ArcGisFeature/Mocks.d.ts +0 -7
  148. package/lib/cjs/test/ArcGisFeature/Mocks.d.ts.map +0 -1
  149. package/lib/cjs/test/ArcGisFeature/Mocks.js +0 -19
  150. package/lib/cjs/test/ArcGisFeature/Mocks.js.map +0 -1
  151. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts +0 -56
  152. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts.map +0 -1
  153. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js +0 -420
  154. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js.map +0 -1
  155. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +0 -1043
  156. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +0 -1
  157. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js +0 -427
  158. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js.map +0 -1
  159. package/lib/cjs/test/coverage/.nyc_output/6abfdfec-4bea-416d-b808-b4b6a26933a0.json +0 -1
  160. package/lib/cjs/test/coverage/.nyc_output/e3a863c9-d93d-496e-88fc-7e67e520c8b6.json +0 -1
  161. package/lib/cjs/test/coverage/.nyc_output/processinfo/6abfdfec-4bea-416d-b808-b4b6a26933a0.json +0 -1
  162. package/lib/cjs/test/coverage/.nyc_output/processinfo/e3a863c9-d93d-496e-88fc-7e67e520c8b6.json +0 -1
  163. package/lib/cjs/test/coverage/.nyc_output/processinfo/index.json +0 -1
  164. package/lib/cjs/test/coverage/cobertura-coverage.xml +0 -1206
  165. package/lib/cjs/test/coverage/lcov-report/base.css +0 -224
  166. package/lib/cjs/test/coverage/lcov-report/block-navigation.js +0 -87
  167. package/lib/cjs/test/coverage/lcov-report/favicon.png +0 -0
  168. package/lib/cjs/test/coverage/lcov-report/index.html +0 -131
  169. package/lib/cjs/test/coverage/lcov-report/prettify.css +0 -1
  170. package/lib/cjs/test/coverage/lcov-report/prettify.js +0 -2
  171. package/lib/cjs/test/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  172. package/lib/cjs/test/coverage/lcov-report/sorter.js +0 -196
  173. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureFormat.ts.html +0 -145
  174. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureJSON.ts.html +0 -550
  175. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeaturePBF.ts.html +0 -730
  176. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureProvider.ts.html +0 -1672
  177. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureQuery.ts.html +0 -763
  178. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureReader.ts.html +0 -223
  179. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureRenderer.ts.html +0 -598
  180. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureResponse.ts.html +0 -301
  181. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisSymbologyRenderer.ts.html +0 -832
  182. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/index.html +0 -236
  183. package/lib/cjs/test/coverage/lcov-report/src/index.html +0 -131
  184. package/lib/cjs/test/coverage/lcov-report/src/map-layers-formats.ts.html +0 -130
  185. package/lib/cjs/test/coverage/lcov-report/src/mapLayersFormats.ts.html +0 -163
  186. package/lib/cjs/test/coverage/lcov.info +0 -1399
  187. package/lib/cjs/tsconfig.tsbuildinfo +0 -1
  188. package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts +0 -15
  189. package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts.map +0 -1
  190. package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js +0 -129
  191. package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js.map +0 -1
  192. package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +0 -1
  193. package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js.map +0 -1
  194. package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts +0 -33
  195. package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts.map +0 -1
  196. package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js +0 -139
  197. package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js.map +0 -1
  198. package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +0 -2
  199. package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts.map +0 -1
  200. package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +0 -33
  201. package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js.map +0 -1
  202. package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +0 -2
  203. package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts.map +0 -1
  204. package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js +0 -160
  205. package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js.map +0 -1
  206. package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +0 -2
  207. package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts.map +0 -1
  208. package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js +0 -166
  209. package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js.map +0 -1
  210. package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +0 -2
  211. package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts.map +0 -1
  212. package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js +0 -810
  213. package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +0 -1
  214. package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +0 -2
  215. package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts.map +0 -1
  216. package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js +0 -102
  217. package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js.map +0 -1
  218. package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +0 -2
  219. package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts.map +0 -1
  220. package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +0 -213
  221. package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js.map +0 -1
  222. package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +0 -2
  223. package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts.map +0 -1
  224. package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js +0 -93
  225. package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +0 -1
  226. package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +0 -2
  227. package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts.map +0 -1
  228. package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +0 -58
  229. package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js.map +0 -1
  230. package/lib/esm/test/ArcGisFeature/Mocks.d.ts +0 -7
  231. package/lib/esm/test/ArcGisFeature/Mocks.d.ts.map +0 -1
  232. package/lib/esm/test/ArcGisFeature/Mocks.js +0 -16
  233. package/lib/esm/test/ArcGisFeature/Mocks.js.map +0 -1
  234. package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts +0 -56
  235. package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts.map +0 -1
  236. package/lib/esm/test/ArcGisFeature/NewYorkDataset.js +0 -417
  237. package/lib/esm/test/ArcGisFeature/NewYorkDataset.js.map +0 -1
  238. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +0 -1043
  239. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +0 -1
  240. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js +0 -424
  241. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js.map +0 -1
  242. package/lib/esm/tsconfig.tsbuildinfo +0 -1
  243. package/lib/test/junit_results.xml +0 -169
  244. package/map-layers-formats.build.cache.log +0 -2
  245. package/map-layers-formats.cover.log +0 -103
  246. package/map-layers-formats.docs.log +0 -30
  247. package/map-layers-formats.lint.error.log +0 -1
  248. package/map-layers-formats.lint.log +0 -2
  249. package/src/ArcGisFeature/ArcGisFeatureFormat.ts +0 -20
  250. package/src/ArcGisFeature/ArcGisFeatureJSON.ts +0 -155
  251. package/src/ArcGisFeature/ArcGisFeaturePBF.ts +0 -215
  252. package/src/ArcGisFeature/ArcGisFeatureProvider.ts +0 -529
  253. package/src/ArcGisFeature/ArcGisFeatureQuery.ts +0 -226
  254. package/src/ArcGisFeature/ArcGisFeatureReader.ts +0 -46
  255. package/src/ArcGisFeature/ArcGisFeatureRenderer.ts +0 -171
  256. package/src/ArcGisFeature/ArcGisFeatureResponse.ts +0 -72
  257. package/src/ArcGisFeature/ArcGisSymbologyRenderer.ts +0 -249
  258. package/src/ArcGisFeature/esriPBuffer.gen.ts +0 -2612
  259. package/src/map-layers-formats.ts +0 -15
  260. package/src/mapLayersFormats.ts +0 -26
  261. package/src/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.ts +0 -46
  262. package/src/test/ArcGisFeature/ArcGisFeatureJSON.test.ts +0 -202
  263. package/src/test/ArcGisFeature/ArcGisFeaturePBF.test.ts +0 -227
  264. package/src/test/ArcGisFeature/ArcGisFeatureProvider.test.ts +0 -977
  265. package/src/test/ArcGisFeature/ArcGisFeatureQuery.test.ts +0 -117
  266. package/src/test/ArcGisFeature/ArcGisFeatureRenderer.test.ts +0 -296
  267. package/src/test/ArcGisFeature/ArcGisFeatureResponse.test.ts +0 -109
  268. package/src/test/ArcGisFeature/ArcGisSymbologyRenderer.test.ts +0 -77
  269. package/src/test/ArcGisFeature/Mocks.ts +0 -19
  270. package/src/test/ArcGisFeature/NewYorkDataset.ts +0 -423
  271. package/src/test/ArcGisFeature/PhillyLandmarksDataset.ts +0 -455
  272. package/tsconfig.json +0 -20
@@ -1,226 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- /** @internal */
7
- export type ArcGisFeatureResultType = "none" | "standard" | "tile";
8
-
9
- /** @internal */
10
- export type ArcGisFeatureGeometryType =
11
- "esriGeometryNull"
12
- | "esriGeometryPoint"
13
- | "esriGeometryMultipoint"
14
- | "esriGeometryLine"
15
- | "esriGeometryCircularArc"
16
- | "esriGeometryEllipticArc"
17
- | "esriGeometryBezier3Curve"
18
- | "esriGeometryPath"
19
- | "esriGeometryPolyline"
20
- | "esriGeometryRing"
21
- | "esriGeometryPolygon"
22
- | "esriGeometryEnvelope"
23
- | "esriGeometryAny"
24
- | "esriGeometryBag"
25
- | "esriGeometryMultiPatch"
26
- | "esriGeometryTriangleStrip"
27
- | "esriGeometryTriangeFan"
28
- | "esriGeometryRay"
29
- | "esriGeometrySphere"
30
- | "esriGeometryTriangles";
31
-
32
- /** @internal */
33
- export type ArcGisFeatureSpatialRel = "esriSpatialRelIntersects" | "esriSpatialRelContains" | "esriSpatialRelCrosses" | "esriSpatialRelEnvelopeIntersects" | "esriSpatialRelIndexIntersects" | "esriSpatialRelOverlaps" | "esriSpatialRelTouches" | "esriSpatialRelWithin";
34
-
35
- /** @internal */
36
- export interface ArcGisGeometry {
37
- type: ArcGisFeatureGeometryType;
38
- geom: ArcGisExtent | ArcGisPointGeometry;
39
- }
40
-
41
- /** @internal */
42
- export interface ArcGisSpatialReference {
43
- wkid: number;
44
- latestWkid: number;
45
- }
46
-
47
- /** @internal */
48
- export interface ArcGisExtent {
49
- xmin: number;
50
- xmax: number;
51
- ymin: number;
52
- ymax: number;
53
- spatialReference: ArcGisSpatialReference;
54
- }
55
-
56
- /** @internal */
57
- export interface ArcGisPointGeometry {
58
- x: number;
59
- y: number;
60
- spatialReference: ArcGisSpatialReference;
61
- }
62
-
63
- /** @internal */
64
- export interface FeatureQueryQuantizationParams {
65
- extent: ArcGisExtent;
66
- mode: "view" | "edit";
67
- originPosition: "upperLeft" | "lowerLeft";
68
- tolerance: number;
69
- }
70
-
71
- /** @internal */
72
- export type ArcGisFeatureFormat = "JSON" | "PBF";
73
-
74
- // Based on official documentation:
75
- // https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm
76
- /** @internal */
77
- export interface ArcGisFeatureQueryParams {
78
-
79
- /** This option can be used for fetching query results up to the resultRecordCount specified.
80
- * When resultOffset is specified but this parameter is not, the map service defaults it to maxRecordCount.
81
- * The maximum value for this parameter is the value of the layer's maxRecordCount property.
82
- * The minimum value entered for this parameter cannot be below 1.
83
- * This parameter only applies if supportsPagination is true.
84
- * */
85
- resultRecordCount?: number;
86
-
87
- /** This option can be used for fetching query results up to the resultRecordCount specified.
88
- * When resultOffset is specified but this parameter is not, the map service defaults it to maxRecordCount.
89
- * The maximum value for this parameter is the value of the layer's maxRecordCount property.
90
- * The minimum value entered for this parameter cannot be below 1.
91
- * This parameter only applies if supportsPagination is true.
92
- * */
93
- resultOffset?: number;
94
-
95
- /** If true, the result includes the geometry associated with each feature returned. */
96
- returnGeometry?: boolean;
97
- geometry?: ArcGisGeometry;
98
- geometryType?: ArcGisFeatureGeometryType;
99
- spatialRel?: ArcGisFeatureSpatialRel;
100
- resultType?: ArcGisFeatureResultType;
101
- maxRecordCountFactor?: number;
102
- returnExceededLimitFeatures?: boolean;
103
- quantizationParameters?: FeatureQueryQuantizationParams;
104
-
105
- /** The list of fields to be included in the returned result set. This list is a comma-delimited list of field names.
106
- * You can also specify the wildcard "*" as the value of this parameter.
107
- * */
108
- outFields?: string;
109
-
110
- /** The buffer distance for the input geometries.
111
- * */
112
- distance?: number;
113
- }
114
-
115
- /** @internal */
116
- export class ArcGisFeatureQuery {
117
- public baseUrl: string;
118
- public layerIdx: number;
119
- public format: ArcGisFeatureFormat;
120
- public resultRecordCount?: number;
121
- public resultOffset?: number;
122
- public returnGeometry?: boolean;
123
- public geometry?: ArcGisGeometry;
124
- public spatialRel?: ArcGisFeatureSpatialRel;
125
- public resultType?: ArcGisFeatureResultType;
126
- public maxRecordCountFactor?: number;
127
- public returnExceededLimitFeatures?: boolean;
128
- public outSR: number;
129
- public outFields?: string;
130
- public distance?: number;
131
-
132
- // public envelopeFilter?: CartographicRange;
133
- public quantizationParams?: FeatureQueryQuantizationParams;
134
-
135
- // base url is expected ito be in the format of:
136
- // https://<hostname>/arcgis/rest/services/<ServiceName>/FeatureServer
137
- public constructor(baseUrl: string, layerIdx: number, format: ArcGisFeatureFormat, outSR: number, params?: ArcGisFeatureQueryParams) {
138
- this.baseUrl = baseUrl;
139
- this.layerIdx = layerIdx;
140
- this.format = format;
141
- this.outSR = outSR;
142
-
143
- if (params !== undefined) {
144
- this.resultRecordCount = params.resultRecordCount;
145
- this.resultOffset = params.resultOffset;
146
- this.returnGeometry = params.returnGeometry;
147
- this.geometry = params.geometry;
148
- this.spatialRel = params.spatialRel;
149
- this.resultType = params.resultType;
150
- this.maxRecordCountFactor = params.maxRecordCountFactor;
151
- this.returnExceededLimitFeatures = params.returnExceededLimitFeatures;
152
- this.quantizationParams = params.quantizationParameters;
153
- this.outFields = params.outFields;
154
- this.distance = params.distance;
155
- }
156
-
157
- }
158
-
159
- public toString() {
160
- const url = new URL(`${this.baseUrl}/${this.layerIdx}/query`);
161
-
162
- url.searchParams.append("f", this.format);
163
-
164
- if ( this.resultRecordCount !== undefined) {
165
- url.searchParams.append("resultRecordCount", `${this.resultRecordCount}`);
166
- }
167
-
168
- if ( this.resultOffset !== undefined) {
169
- url.searchParams.append( "resultOffset", `${this.resultOffset}`);
170
- }
171
-
172
- if ( this.returnGeometry !== undefined) {
173
- url.searchParams.append("returnGeometry", this.returnGeometry?"true":"false");
174
- }
175
-
176
- if ( this.resultType !== undefined) {
177
- url.searchParams.append("resultType", this.resultType);
178
- }
179
-
180
- if ( this.maxRecordCountFactor !== undefined) {
181
- url.searchParams.append( "maxRecordCountFactor", `${this.maxRecordCountFactor}`);
182
- }
183
-
184
- if ( this.returnExceededLimitFeatures !== undefined) {
185
- url.searchParams.append( "returnExceededLimitFeatures", this.returnExceededLimitFeatures?"true":"false");
186
- }
187
-
188
- url.searchParams.append( "outSR", `${this.outSR}`);
189
-
190
- if (this.geometry || this.spatialRel) {
191
-
192
- if (this.spatialRel) {
193
- url.searchParams.append( "spatialRel", this.spatialRel);
194
- }
195
-
196
- if (this.geometry) {
197
- url.searchParams.append( "geometryType", this.geometry.type);
198
-
199
- const geomStr = JSON.stringify(this.geometry.geom);
200
- url.searchParams.append( "geometry", geomStr);
201
- url.searchParams.append( "units", "esriSRUnit_Meter"); // required on older server for get feature info
202
-
203
- url.searchParams.append( "inSR", `${this.geometry.geom.spatialReference.wkid}`);
204
- }
205
- } else {
206
- // No custom params, fetch all geometries
207
- url.searchParams.append("where", "1=1");
208
- }
209
-
210
- if (this.quantizationParams) {
211
- const quantizationParamsStr = JSON.stringify(this.quantizationParams);
212
- url.searchParams.append("quantizationParameters", quantizationParamsStr);
213
- }
214
-
215
- if (this.outFields) {
216
- url.searchParams.append( "outFields", this.outFields);
217
- }
218
-
219
- if (this.distance) {
220
- url.searchParams.append("distance", `${this.distance}`);
221
- }
222
-
223
- return url.toString();
224
- }
225
-
226
- }
@@ -1,46 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- import { Primitives, StandardTypeNames } from "@itwin/appui-abstract";
7
- import { ImageMapLayerSettings } from "@itwin/core-common";
8
- import { MapLayerFeatureInfo } from "@itwin/core-frontend";
9
- import { ArcGisFeatureRenderer } from "./ArcGisFeatureRenderer";
10
- import { ArcGisResponseData } from "./ArcGisFeatureResponse";
11
-
12
- /** @internal */
13
- export abstract class ArcGisFeatureReader {
14
- // Optionally you can set the floating precision
15
- public floatPrecision: number|undefined;
16
-
17
- // Force display value of date to ISO 8601 format.
18
- // Turning this ON, will disable display value in end-user's locale
19
- public forceDateDisplayValueToIso = false;
20
-
21
- protected _settings: ImageMapLayerSettings;
22
- protected _layerMetadata: any;
23
-
24
- public constructor(settings: ImageMapLayerSettings, layerMetadata: any) {
25
- this._settings = settings;
26
- this._layerMetadata = layerMetadata;
27
- }
28
-
29
- public abstract readAndRender(response: ArcGisResponseData, _renderer: ArcGisFeatureRenderer): void;
30
-
31
- public abstract readFeatureInfo(response: ArcGisResponseData, featureInfos: MapLayerFeatureInfo[]): void;
32
-
33
- protected toFixedWithoutPadding = (value: number) => {
34
- return (this.floatPrecision === undefined ? value : parseFloat(value.toFixed(this.floatPrecision)));
35
- };
36
-
37
- protected getDisplayValue = (typename: StandardTypeNames, value: Primitives.Value|undefined) => {
38
- if (value === undefined) {
39
- return "";
40
- } else if ( typename === StandardTypeNames.DateTime && this.forceDateDisplayValueToIso) {
41
- return (value as Date).toISOString();
42
- } else {
43
- return `${value}`;
44
- }
45
- };
46
- }
@@ -1,171 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- import { Transform } from "@itwin/core-geometry";
6
- import { ArcGisSymbologyRenderer } from "./ArcGisSymbologyRenderer";
7
-
8
- /** @internal */
9
- export class ArcGisFeatureRenderer {
10
- private _symbol: ArcGisSymbologyRenderer;
11
- private _transform: Transform|undefined;
12
- private _context: CanvasRenderingContext2D;
13
-
14
- constructor(context: CanvasRenderingContext2D, symbol: ArcGisSymbologyRenderer, world2PixelTransform?: Transform) {
15
- this._symbol = symbol;
16
- this._context = context;
17
- this._transform = world2PixelTransform;
18
- }
19
-
20
- public get transform() {return this._transform;}
21
-
22
- // Utility functions to make ease testing.
23
- private closePath() {
24
- this._context.closePath();
25
- }
26
-
27
- private lineTo(x: number, y: number) {
28
- this._context.lineTo(x,y);
29
- }
30
-
31
- private moveTo(x: number, y: number) {
32
- this._context.moveTo(x,y);
33
- }
34
-
35
- private fill() {
36
- this._context.fill();
37
- }
38
-
39
- private stroke() {
40
- this._context.stroke();
41
- }
42
-
43
- /**
44
- * Render a path on the renderer's context.
45
- * Note: Inputs are designed based on the PBF format, to avoid any data transformation.
46
- * @param geometryLengths Array be used to determine the start and end of each sub-path / rings. (i.e. [5,5] = two rings of 5 vertices)
47
- * @param geometryCoords Array that linearly encodes the vertices of each sub-path of a polyline / ring of a polygon
48
- * @param fill Indicates if the path should be filled or not.
49
- * @param stride Dimension of each vertices (i.e. 2 or 3. 3 could be X,Y,Z, X,YM) Currently 3rd dimension is ignored.
50
- */
51
- public renderPath(geometryLengths: number[], geometryCoords: number[], fill: boolean, stride: number, relativeCoords: boolean) {
52
- if (stride < 2 || stride > 3) {
53
- return;
54
- }
55
-
56
- // Keep track of our position in the in the 'coords' array:
57
- // Every time we loop on the 'lengths' array, the position
58
- // to start reading vertices in the 'coords' must be the sum of all previously read vertices.
59
- let coordsOffset = 0;
60
-
61
- // Begin the path here.
62
- // Note: Even though path is closed inside the 'geometryLengths' loop,
63
- // it's import to begin the path only once.
64
- this._context.beginPath();
65
- for (const vertexCount of geometryLengths) {
66
- let lastPtX = 0, lastPtY = 0;
67
- for (let vertexIdx=0 ; vertexIdx <vertexCount; vertexIdx++) {
68
- let pX = geometryCoords[coordsOffset+(vertexIdx*stride)];
69
- let pY = geometryCoords[coordsOffset+(vertexIdx*stride)+1];
70
- if (vertexIdx === 0) {
71
- // first vertex is always "absolute" and must be drawn as 'moveTo' (i.e. not lineTo)
72
- if (relativeCoords) {
73
- lastPtX = pX;
74
- lastPtY = pY;
75
- }
76
-
77
- if (this._transform) {
78
- const transformedPoint = this._transform.multiplyPoint2d({x: pX, y:pY});
79
- pX = transformedPoint.x;
80
- pY = transformedPoint.y;
81
- }
82
-
83
- this.moveTo(pX, pY);
84
- } else {
85
-
86
- // Following vertices are relative to the previous one (sadly not really well documented by ESRI)
87
- // typically this happens when 'coordinates quantization' is active (i.e. no client side transformation is needed)
88
- if (relativeCoords) {
89
- pX = lastPtX = lastPtX+pX;
90
- pY = lastPtY = lastPtY+pY;
91
- }
92
-
93
- if (this._transform) {
94
- const transformedPoint = this._transform.multiplyPoint2d({x: pX, y:pY});
95
- pX = transformedPoint.x;
96
- pY = transformedPoint.y;
97
- }
98
- this.lineTo(pX, pY);
99
- }
100
-
101
- }
102
- coordsOffset+=stride*vertexCount;
103
- if (fill) {
104
- // ClosePath but do not 'fill' here, only at the very end (otherwise it will mess up holes)
105
- this.closePath();
106
- }
107
- }
108
-
109
- if (fill) {
110
- this._symbol.applyFillStyle(this._context);
111
- this.fill();
112
- }
113
-
114
- this._symbol.applyStrokeStyle(this._context);
115
- this.stroke(); // draw line path or polygon outline
116
- }
117
-
118
- /**
119
- * Render a point on the renderer's context.
120
- * Note: Inputs are designed based on the PBF format, to avoid any data transformation.
121
- * @param geometryLengths Array be used to determine the start and end of each multi-point array, empty for single point.
122
- * @param geometryCoords Array that linearly encodes vertices.
123
- * @param stride Dimension of each vertices (i.e. 2 or 3. 3 could be X,Y,Z, X,YM) Currently 3rd dimension is ignored.
124
- */
125
- public renderPoint(geometryLengths: number[], geometryCoords: number[], stride: number, relativeCoords: boolean) {
126
-
127
- if (stride < 2 || stride > 3) {
128
- return;
129
- }
130
- let coordsOffset = 0;
131
- if (geometryLengths.length === 0) {
132
- // Strangely, for points, 'lengths' array is empty, so we assume there is a single vertex in 'coords' array.
133
- if (geometryCoords.length >= stride) {
134
-
135
- if (this._transform) {
136
- const transformedPoint = this._transform.multiplyPoint2d({x: geometryCoords[0], y:geometryCoords[1]});
137
- this._symbol.drawPoint(this._context, transformedPoint.x, transformedPoint.y);
138
- } else {
139
- this._symbol.drawPoint(this._context, geometryCoords[0], geometryCoords[1]);
140
- }
141
- }
142
- } else {
143
- // MULTI-POINTS: Needs testing
144
- // I assume 'lengths' array will get populated and 'coords' array will look similar to line/polygons.
145
- for (const vertexCount of geometryLengths) {
146
- let lastPtX = 0, lastPtY = 0;
147
- for (let vertexIdx=0 ; vertexIdx <vertexCount; vertexIdx++) {
148
- let pX = geometryCoords[coordsOffset+(vertexIdx*stride)];
149
- let pY = geometryCoords[coordsOffset+(vertexIdx*stride)+1];
150
-
151
- if (relativeCoords) {
152
- pX = lastPtX = lastPtX+pX;
153
- pY = lastPtY = lastPtY+pY;
154
- }
155
-
156
- if (this._transform) {
157
- const transformedPoint = this._transform.multiplyPoint2d({x: pX, y:pY});
158
- pX = transformedPoint.x;
159
- pY = transformedPoint.y;
160
- }
161
-
162
- this._symbol.drawPoint(this._context, pX, pY);
163
-
164
- }
165
- coordsOffset+=stride*vertexCount;
166
- }
167
- }
168
-
169
- }
170
-
171
- }
@@ -1,72 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- import { ArcGisExtent, ArcGisFeatureFormat } from "./ArcGisFeatureQuery";
7
- import { esriPBuffer } from "./esriPBuffer.gen";
8
-
9
- /** @internal */
10
- export interface ArcGisResponseData {
11
- data: any;
12
- exceedTransferLimit: boolean;
13
- }
14
-
15
- /** @internal */
16
- export type ArcGisFieldType =
17
- "esriFieldTypeInteger"
18
- | "esriFieldTypeSmallInteger"
19
- | "esriFieldTypeDouble"
20
- | "esriFieldTypeSingle"
21
- | "esriFieldTypeString"
22
- | "esriFieldTypeDate"
23
- | "esriFieldTypeGeometry"
24
- | "esriFieldTypeOID"
25
- | "esriFieldTypeBlob"
26
- | "esriFieldTypeGlobalID"
27
- | "esriFieldTypeRaster"
28
- | "esriFieldTypeGUID"
29
- | "esriFieldTypeXML";
30
-
31
- /** @internal */
32
- export class ArcGisFeatureResponse {
33
- public readonly format: ArcGisFeatureFormat;
34
- public readonly envelope: ArcGisExtent | undefined;
35
-
36
- private _response: Promise<Response>;
37
-
38
- constructor(format: ArcGisFeatureFormat, response: Promise<Response>, envelope?: ArcGisExtent) {
39
- this.format = format;
40
- this._response = response;
41
- this.envelope = envelope;
42
- }
43
-
44
- public async getResponseData(): Promise<ArcGisResponseData|undefined> {
45
- let data: any|undefined;
46
- try {
47
- const tileResponse = await this._response;
48
- if (tileResponse === undefined || tileResponse.status !== 200 )
49
- return undefined;
50
-
51
- if (this.format === "PBF") {
52
- const byteArray: Uint8Array = new Uint8Array(await tileResponse.arrayBuffer());
53
- if (!byteArray || (byteArray.length === 0))
54
- return undefined;
55
-
56
- data = esriPBuffer.FeatureCollectionPBuffer.deserialize(byteArray);
57
- const collection = data as esriPBuffer.FeatureCollectionPBuffer;
58
- return {data, exceedTransferLimit: collection?.queryResult?.featureResult?.exceededTransferLimit};
59
-
60
- } else {
61
- data = await tileResponse.json();
62
- if (data === undefined || data == null)
63
- return undefined;
64
-
65
- return {data, exceedTransferLimit: data.exceededTransferLimit};
66
- }
67
-
68
- } catch(_e) {
69
- return undefined;
70
- }
71
- }
72
- }