@itwin/map-layers-formats 4.1.0-dev.6 → 4.1.0-dev.62

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 (269) hide show
  1. package/CHANGELOG.md +49 -1
  2. package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.d.ts +17 -0
  3. package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.d.ts.map +1 -0
  4. package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.js +42 -0
  5. package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.js.map +1 -0
  6. package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.d.ts.map +1 -1
  7. package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js +3 -0
  8. package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
  9. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts +7 -5
  10. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
  11. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js +88 -35
  12. package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
  13. package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts +5 -0
  14. package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
  15. package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js +4 -0
  16. package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -1
  17. package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts +15 -6
  18. package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -1
  19. package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js +6 -4
  20. package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js.map +1 -1
  21. package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.d.ts +13 -0
  22. package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.d.ts.map +1 -0
  23. package/lib/cjs/ArcGisFeature/{ArcGisFeatureJSON.js → ArcGisJsonFeatureReader.js} +36 -58
  24. package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.js.map +1 -0
  25. package/lib/cjs/ArcGisFeature/{ArcGisFeaturePBF.d.ts → ArcGisPbfFeatureReader.d.ts} +6 -7
  26. package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.d.ts.map +1 -0
  27. package/lib/cjs/ArcGisFeature/{ArcGisFeaturePBF.js → ArcGisPbfFeatureReader.js} +46 -32
  28. package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.js.map +1 -0
  29. package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js +4 -4
  30. package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
  31. package/lib/cjs/Tools/MapFeatureInfoDecorator.d.ts +34 -0
  32. package/lib/cjs/Tools/MapFeatureInfoDecorator.d.ts.map +1 -0
  33. package/lib/cjs/Tools/MapFeatureInfoDecorator.js +281 -0
  34. package/lib/cjs/Tools/MapFeatureInfoDecorator.js.map +1 -0
  35. package/lib/cjs/Tools/MapFeatureInfoTool.d.ts +38 -0
  36. package/lib/cjs/Tools/MapFeatureInfoTool.d.ts.map +1 -0
  37. package/lib/cjs/Tools/MapFeatureInfoTool.js +113 -0
  38. package/lib/cjs/Tools/MapFeatureInfoTool.js.map +1 -0
  39. package/lib/cjs/map-layers-formats.d.ts +1 -0
  40. package/lib/cjs/map-layers-formats.d.ts.map +1 -1
  41. package/lib/cjs/map-layers-formats.js +1 -0
  42. package/lib/cjs/map-layers-formats.js.map +1 -1
  43. package/lib/cjs/mapLayersFormats.d.ts +12 -1
  44. package/lib/cjs/mapLayersFormats.d.ts.map +1 -1
  45. package/lib/cjs/mapLayersFormats.js +11 -1
  46. package/lib/cjs/mapLayersFormats.js.map +1 -1
  47. package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.d.ts +17 -0
  48. package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.d.ts.map +1 -0
  49. package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.js +38 -0
  50. package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.js.map +1 -0
  51. package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.d.ts.map +1 -1
  52. package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js +4 -1
  53. package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
  54. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts +7 -5
  55. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
  56. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js +89 -36
  57. package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
  58. package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts +5 -0
  59. package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
  60. package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js +4 -0
  61. package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -1
  62. package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts +15 -6
  63. package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -1
  64. package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js +4 -2
  65. package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js.map +1 -1
  66. package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.d.ts +13 -0
  67. package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.d.ts.map +1 -0
  68. package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.js +107 -0
  69. package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.js.map +1 -0
  70. package/lib/esm/ArcGisFeature/{ArcGisFeaturePBF.d.ts → ArcGisPbfFeatureReader.d.ts} +6 -7
  71. package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.d.ts.map +1 -0
  72. package/lib/esm/ArcGisFeature/{ArcGisFeaturePBF.js → ArcGisPbfFeatureReader.js} +44 -30
  73. package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.js.map +1 -0
  74. package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js +4 -4
  75. package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
  76. package/lib/esm/Tools/MapFeatureInfoDecorator.d.ts +34 -0
  77. package/lib/esm/Tools/MapFeatureInfoDecorator.d.ts.map +1 -0
  78. package/lib/esm/Tools/MapFeatureInfoDecorator.js +277 -0
  79. package/lib/esm/Tools/MapFeatureInfoDecorator.js.map +1 -0
  80. package/lib/esm/Tools/MapFeatureInfoTool.d.ts +38 -0
  81. package/lib/esm/Tools/MapFeatureInfoTool.d.ts.map +1 -0
  82. package/lib/esm/Tools/MapFeatureInfoTool.js +110 -0
  83. package/lib/esm/Tools/MapFeatureInfoTool.js.map +1 -0
  84. package/lib/esm/map-layers-formats.d.ts +1 -0
  85. package/lib/esm/map-layers-formats.d.ts.map +1 -1
  86. package/lib/esm/map-layers-formats.js +1 -0
  87. package/lib/esm/map-layers-formats.js.map +1 -1
  88. package/lib/esm/mapLayersFormats.d.ts +12 -1
  89. package/lib/esm/mapLayersFormats.d.ts.map +1 -1
  90. package/lib/esm/mapLayersFormats.js +13 -2
  91. package/lib/esm/mapLayersFormats.js.map +1 -1
  92. package/lib/public/locales/en/mapLayersFormats.json +12 -0
  93. package/package.json +18 -15
  94. package/.nycrc +0 -10
  95. package/.rush/temp/operation/build/all.log +0 -3
  96. package/.rush/temp/operation/build/state.json +0 -3
  97. package/.rush/temp/operation/cover/all.log +0 -98
  98. package/.rush/temp/operation/cover/state.json +0 -3
  99. package/.rush/temp/operation/docs/all.log +0 -30
  100. package/.rush/temp/operation/docs/state.json +0 -3
  101. package/.rush/temp/package-deps_build.json +0 -36
  102. package/.rush/temp/package-deps_cover.json +0 -36
  103. package/.rush/temp/package-deps_docs.json +0 -36
  104. package/.rush/temp/shrinkwrap-deps.json +0 -505
  105. package/CHANGELOG.json +0 -119
  106. package/config/rush-project.json +0 -6
  107. package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts +0 -15
  108. package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts.map +0 -1
  109. package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js.map +0 -1
  110. package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +0 -1
  111. package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js.map +0 -1
  112. package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts +0 -33
  113. package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts.map +0 -1
  114. package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js +0 -143
  115. package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js.map +0 -1
  116. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +0 -2
  117. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts.map +0 -1
  118. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +0 -35
  119. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js.map +0 -1
  120. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +0 -2
  121. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts.map +0 -1
  122. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js +0 -162
  123. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js.map +0 -1
  124. package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +0 -2
  125. package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts.map +0 -1
  126. package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js +0 -168
  127. package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js.map +0 -1
  128. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +0 -2
  129. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts.map +0 -1
  130. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js +0 -680
  131. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +0 -1
  132. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +0 -2
  133. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts.map +0 -1
  134. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js +0 -104
  135. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js.map +0 -1
  136. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +0 -2
  137. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts.map +0 -1
  138. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +0 -215
  139. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js.map +0 -1
  140. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +0 -2
  141. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts.map +0 -1
  142. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js +0 -95
  143. package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +0 -1
  144. package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +0 -2
  145. package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts.map +0 -1
  146. package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +0 -60
  147. package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js.map +0 -1
  148. package/lib/cjs/test/ArcGisFeature/Mocks.d.ts +0 -7
  149. package/lib/cjs/test/ArcGisFeature/Mocks.d.ts.map +0 -1
  150. package/lib/cjs/test/ArcGisFeature/Mocks.js +0 -19
  151. package/lib/cjs/test/ArcGisFeature/Mocks.js.map +0 -1
  152. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts +0 -56
  153. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts.map +0 -1
  154. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js +0 -420
  155. package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js.map +0 -1
  156. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +0 -1043
  157. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +0 -1
  158. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js +0 -427
  159. package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js.map +0 -1
  160. package/lib/cjs/test/coverage/.nyc_output/abd3af4c-9bb0-47fb-a670-3c609e62305c.json +0 -1
  161. package/lib/cjs/test/coverage/.nyc_output/b444582a-0db5-4b2b-949d-8c71645890c8.json +0 -1
  162. package/lib/cjs/test/coverage/.nyc_output/processinfo/abd3af4c-9bb0-47fb-a670-3c609e62305c.json +0 -1
  163. package/lib/cjs/test/coverage/.nyc_output/processinfo/b444582a-0db5-4b2b-949d-8c71645890c8.json +0 -1
  164. package/lib/cjs/test/coverage/.nyc_output/processinfo/index.json +0 -1
  165. package/lib/cjs/test/coverage/cobertura-coverage.xml +0 -1169
  166. package/lib/cjs/test/coverage/lcov-report/base.css +0 -224
  167. package/lib/cjs/test/coverage/lcov-report/block-navigation.js +0 -87
  168. package/lib/cjs/test/coverage/lcov-report/favicon.png +0 -0
  169. package/lib/cjs/test/coverage/lcov-report/index.html +0 -131
  170. package/lib/cjs/test/coverage/lcov-report/prettify.css +0 -1
  171. package/lib/cjs/test/coverage/lcov-report/prettify.js +0 -2
  172. package/lib/cjs/test/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  173. package/lib/cjs/test/coverage/lcov-report/sorter.js +0 -196
  174. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureFormat.ts.html +0 -133
  175. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureJSON.ts.html +0 -550
  176. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeaturePBF.ts.html +0 -730
  177. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureProvider.ts.html +0 -1546
  178. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureQuery.ts.html +0 -763
  179. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureReader.ts.html +0 -223
  180. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureRenderer.ts.html +0 -598
  181. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureResponse.ts.html +0 -301
  182. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisSymbologyRenderer.ts.html +0 -832
  183. package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/index.html +0 -236
  184. package/lib/cjs/test/coverage/lcov-report/src/index.html +0 -131
  185. package/lib/cjs/test/coverage/lcov-report/src/map-layers-formats.ts.html +0 -130
  186. package/lib/cjs/test/coverage/lcov-report/src/mapLayersFormats.ts.html +0 -163
  187. package/lib/cjs/test/coverage/lcov.info +0 -1358
  188. package/lib/cjs/tsconfig.tsbuildinfo +0 -1
  189. package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts +0 -15
  190. package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts.map +0 -1
  191. package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js +0 -129
  192. package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js.map +0 -1
  193. package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +0 -1
  194. package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js.map +0 -1
  195. package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts +0 -33
  196. package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts.map +0 -1
  197. package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js +0 -139
  198. package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js.map +0 -1
  199. package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +0 -2
  200. package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts.map +0 -1
  201. package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +0 -33
  202. package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js.map +0 -1
  203. package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +0 -2
  204. package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts.map +0 -1
  205. package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js +0 -160
  206. package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js.map +0 -1
  207. package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +0 -2
  208. package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts.map +0 -1
  209. package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js +0 -166
  210. package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js.map +0 -1
  211. package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +0 -2
  212. package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts.map +0 -1
  213. package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js +0 -678
  214. package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +0 -1
  215. package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +0 -2
  216. package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts.map +0 -1
  217. package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js +0 -102
  218. package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js.map +0 -1
  219. package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +0 -2
  220. package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts.map +0 -1
  221. package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +0 -213
  222. package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js.map +0 -1
  223. package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +0 -2
  224. package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts.map +0 -1
  225. package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js +0 -93
  226. package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +0 -1
  227. package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +0 -2
  228. package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts.map +0 -1
  229. package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +0 -58
  230. package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js.map +0 -1
  231. package/lib/esm/test/ArcGisFeature/Mocks.d.ts +0 -7
  232. package/lib/esm/test/ArcGisFeature/Mocks.d.ts.map +0 -1
  233. package/lib/esm/test/ArcGisFeature/Mocks.js +0 -16
  234. package/lib/esm/test/ArcGisFeature/Mocks.js.map +0 -1
  235. package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts +0 -56
  236. package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts.map +0 -1
  237. package/lib/esm/test/ArcGisFeature/NewYorkDataset.js +0 -417
  238. package/lib/esm/test/ArcGisFeature/NewYorkDataset.js.map +0 -1
  239. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +0 -1043
  240. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +0 -1
  241. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js +0 -424
  242. package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js.map +0 -1
  243. package/lib/esm/tsconfig.tsbuildinfo +0 -1
  244. package/lib/test/junit_results.xml +0 -159
  245. package/map-layers-formats.build.log +0 -30
  246. package/src/ArcGisFeature/ArcGisFeatureFormat.ts +0 -16
  247. package/src/ArcGisFeature/ArcGisFeatureJSON.ts +0 -155
  248. package/src/ArcGisFeature/ArcGisFeaturePBF.ts +0 -215
  249. package/src/ArcGisFeature/ArcGisFeatureProvider.ts +0 -487
  250. package/src/ArcGisFeature/ArcGisFeatureQuery.ts +0 -226
  251. package/src/ArcGisFeature/ArcGisFeatureReader.ts +0 -46
  252. package/src/ArcGisFeature/ArcGisFeatureRenderer.ts +0 -171
  253. package/src/ArcGisFeature/ArcGisFeatureResponse.ts +0 -72
  254. package/src/ArcGisFeature/ArcGisSymbologyRenderer.ts +0 -249
  255. package/src/ArcGisFeature/esriPBuffer.gen.ts +0 -2612
  256. package/src/map-layers-formats.ts +0 -15
  257. package/src/mapLayersFormats.ts +0 -26
  258. package/src/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.ts +0 -46
  259. package/src/test/ArcGisFeature/ArcGisFeatureJSON.test.ts +0 -202
  260. package/src/test/ArcGisFeature/ArcGisFeaturePBF.test.ts +0 -227
  261. package/src/test/ArcGisFeature/ArcGisFeatureProvider.test.ts +0 -805
  262. package/src/test/ArcGisFeature/ArcGisFeatureQuery.test.ts +0 -117
  263. package/src/test/ArcGisFeature/ArcGisFeatureRenderer.test.ts +0 -296
  264. package/src/test/ArcGisFeature/ArcGisFeatureResponse.test.ts +0 -109
  265. package/src/test/ArcGisFeature/ArcGisSymbologyRenderer.test.ts +0 -77
  266. package/src/test/ArcGisFeature/Mocks.ts +0 -19
  267. package/src/test/ArcGisFeature/NewYorkDataset.ts +0 -423
  268. package/src/test/ArcGisFeature/PhillyLandmarksDataset.ts +0 -455
  269. 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
- }