@itwin/map-layers-formats 4.1.0-dev.54 → 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.
- package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.d.ts +17 -0
- package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.js +42 -0
- package/lib/cjs/ArcGisFeature/ArcGisCanvasRenderer.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts +4 -5
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js +39 -24
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts +5 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js +4 -0
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts +15 -6
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js +6 -4
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.d.ts +13 -0
- package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/{ArcGisFeatureJSON.js → ArcGisJsonFeatureReader.js} +36 -58
- package/lib/cjs/ArcGisFeature/ArcGisJsonFeatureReader.js.map +1 -0
- package/lib/cjs/ArcGisFeature/{ArcGisFeaturePBF.d.ts → ArcGisPbfFeatureReader.d.ts} +6 -7
- package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.d.ts.map +1 -0
- package/lib/cjs/ArcGisFeature/{ArcGisFeaturePBF.js → ArcGisPbfFeatureReader.js} +46 -32
- package/lib/cjs/ArcGisFeature/ArcGisPbfFeatureReader.js.map +1 -0
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/cjs/Tools/MapFeatureInfoDecorator.d.ts +34 -0
- package/lib/cjs/Tools/MapFeatureInfoDecorator.d.ts.map +1 -0
- package/lib/cjs/Tools/MapFeatureInfoDecorator.js +281 -0
- package/lib/cjs/Tools/MapFeatureInfoDecorator.js.map +1 -0
- package/lib/cjs/Tools/MapFeatureInfoTool.d.ts +38 -0
- package/lib/cjs/Tools/MapFeatureInfoTool.d.ts.map +1 -0
- package/lib/cjs/Tools/MapFeatureInfoTool.js +113 -0
- package/lib/cjs/Tools/MapFeatureInfoTool.js.map +1 -0
- package/lib/cjs/map-layers-formats.d.ts +1 -0
- package/lib/cjs/map-layers-formats.d.ts.map +1 -1
- package/lib/cjs/map-layers-formats.js +1 -0
- package/lib/cjs/map-layers-formats.js.map +1 -1
- package/lib/cjs/mapLayersFormats.d.ts +12 -1
- package/lib/cjs/mapLayersFormats.d.ts.map +1 -1
- package/lib/cjs/mapLayersFormats.js +11 -1
- package/lib/cjs/mapLayersFormats.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.d.ts +17 -0
- package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.js +38 -0
- package/lib/esm/ArcGisFeature/ArcGisCanvasRenderer.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts +4 -5
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js +40 -25
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts +5 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js +4 -0
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts +15 -6
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js +4 -2
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.d.ts +13 -0
- package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.js +107 -0
- package/lib/esm/ArcGisFeature/ArcGisJsonFeatureReader.js.map +1 -0
- package/lib/esm/ArcGisFeature/{ArcGisFeaturePBF.d.ts → ArcGisPbfFeatureReader.d.ts} +6 -7
- package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.d.ts.map +1 -0
- package/lib/esm/ArcGisFeature/{ArcGisFeaturePBF.js → ArcGisPbfFeatureReader.js} +44 -30
- package/lib/esm/ArcGisFeature/ArcGisPbfFeatureReader.js.map +1 -0
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js +1 -1
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/esm/Tools/MapFeatureInfoDecorator.d.ts +34 -0
- package/lib/esm/Tools/MapFeatureInfoDecorator.d.ts.map +1 -0
- package/lib/esm/Tools/MapFeatureInfoDecorator.js +277 -0
- package/lib/esm/Tools/MapFeatureInfoDecorator.js.map +1 -0
- package/lib/esm/Tools/MapFeatureInfoTool.d.ts +38 -0
- package/lib/esm/Tools/MapFeatureInfoTool.d.ts.map +1 -0
- package/lib/esm/Tools/MapFeatureInfoTool.js +110 -0
- package/lib/esm/Tools/MapFeatureInfoTool.js.map +1 -0
- package/lib/esm/map-layers-formats.d.ts +1 -0
- package/lib/esm/map-layers-formats.d.ts.map +1 -1
- package/lib/esm/map-layers-formats.js +1 -0
- package/lib/esm/map-layers-formats.js.map +1 -1
- package/lib/esm/mapLayersFormats.d.ts +12 -1
- package/lib/esm/mapLayersFormats.d.ts.map +1 -1
- package/lib/esm/mapLayersFormats.js +13 -2
- package/lib/esm/mapLayersFormats.js.map +1 -1
- package/lib/public/locales/en/mapLayersFormats.json +12 -0
- package/package.json +15 -12
- package/.nycrc +0 -10
- package/.rush/temp/operation/build/all.log +0 -1
- package/.rush/temp/operation/build/state.json +0 -3
- package/.rush/temp/operation/cover/all.log +0 -103
- package/.rush/temp/operation/cover/state.json +0 -3
- package/.rush/temp/operation/docs/all.log +0 -30
- package/.rush/temp/operation/docs/state.json +0 -3
- package/.rush/temp/package-deps_build.json +0 -36
- package/.rush/temp/package-deps_cover.json +0 -36
- package/.rush/temp/package-deps_docs.json +0 -36
- package/.rush/temp/shrinkwrap-deps.json +0 -495
- package/CHANGELOG.json +0 -176
- package/config/rush-project.json +0 -6
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts +0 -15
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts.map +0 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js.map +0 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +0 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js.map +0 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts +0 -33
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts.map +0 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js +0 -143
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +0 -35
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js +0 -162
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js +0 -168
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js +0 -812
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js +0 -104
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +0 -215
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js +0 -95
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +0 -2
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +0 -60
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/Mocks.d.ts +0 -7
- package/lib/cjs/test/ArcGisFeature/Mocks.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/Mocks.js +0 -19
- package/lib/cjs/test/ArcGisFeature/Mocks.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts +0 -56
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js +0 -420
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js.map +0 -1
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +0 -1043
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +0 -1
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js +0 -427
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js.map +0 -1
- package/lib/cjs/test/coverage/.nyc_output/329513f2-7069-4b0e-a487-c3b48366153a.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/a1ec61a9-c1af-46dd-9c85-a6f85693894b.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/329513f2-7069-4b0e-a487-c3b48366153a.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/a1ec61a9-c1af-46dd-9c85-a6f85693894b.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/index.json +0 -1
- package/lib/cjs/test/coverage/cobertura-coverage.xml +0 -1206
- package/lib/cjs/test/coverage/lcov-report/base.css +0 -224
- package/lib/cjs/test/coverage/lcov-report/block-navigation.js +0 -87
- package/lib/cjs/test/coverage/lcov-report/favicon.png +0 -0
- package/lib/cjs/test/coverage/lcov-report/index.html +0 -131
- package/lib/cjs/test/coverage/lcov-report/prettify.css +0 -1
- package/lib/cjs/test/coverage/lcov-report/prettify.js +0 -2
- package/lib/cjs/test/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/lib/cjs/test/coverage/lcov-report/sorter.js +0 -196
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureFormat.ts.html +0 -145
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureJSON.ts.html +0 -550
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeaturePBF.ts.html +0 -730
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureProvider.ts.html +0 -1672
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureQuery.ts.html +0 -763
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureReader.ts.html +0 -223
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureRenderer.ts.html +0 -598
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureResponse.ts.html +0 -301
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisSymbologyRenderer.ts.html +0 -832
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/index.html +0 -236
- package/lib/cjs/test/coverage/lcov-report/src/index.html +0 -131
- package/lib/cjs/test/coverage/lcov-report/src/map-layers-formats.ts.html +0 -130
- package/lib/cjs/test/coverage/lcov-report/src/mapLayersFormats.ts.html +0 -163
- package/lib/cjs/test/coverage/lcov.info +0 -1399
- package/lib/cjs/tsconfig.tsbuildinfo +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts +0 -15
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts.map +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js +0 -129
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js.map +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts.map +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js.map +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts +0 -33
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts.map +0 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js +0 -139
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +0 -33
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js +0 -160
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js +0 -166
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js +0 -810
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js +0 -102
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +0 -213
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js +0 -93
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +0 -2
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +0 -58
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/Mocks.d.ts +0 -7
- package/lib/esm/test/ArcGisFeature/Mocks.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/Mocks.js +0 -16
- package/lib/esm/test/ArcGisFeature/Mocks.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts +0 -56
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js +0 -417
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js.map +0 -1
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +0 -1043
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +0 -1
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js +0 -424
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js.map +0 -1
- package/lib/esm/tsconfig.tsbuildinfo +0 -1
- package/lib/test/junit_results.xml +0 -169
- package/map-layers-formats.build.cache.log +0 -2
- package/map-layers-formats.cover.log +0 -103
- package/map-layers-formats.docs.log +0 -30
- package/map-layers-formats.lint.error.log +0 -1
- package/map-layers-formats.lint.log +0 -2
- package/src/ArcGisFeature/ArcGisFeatureFormat.ts +0 -20
- package/src/ArcGisFeature/ArcGisFeatureJSON.ts +0 -155
- package/src/ArcGisFeature/ArcGisFeaturePBF.ts +0 -215
- package/src/ArcGisFeature/ArcGisFeatureProvider.ts +0 -529
- package/src/ArcGisFeature/ArcGisFeatureQuery.ts +0 -226
- package/src/ArcGisFeature/ArcGisFeatureReader.ts +0 -46
- package/src/ArcGisFeature/ArcGisFeatureRenderer.ts +0 -171
- package/src/ArcGisFeature/ArcGisFeatureResponse.ts +0 -72
- package/src/ArcGisFeature/ArcGisSymbologyRenderer.ts +0 -249
- package/src/ArcGisFeature/esriPBuffer.gen.ts +0 -2612
- package/src/map-layers-formats.ts +0 -15
- package/src/mapLayersFormats.ts +0 -26
- package/src/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.ts +0 -46
- package/src/test/ArcGisFeature/ArcGisFeatureJSON.test.ts +0 -202
- package/src/test/ArcGisFeature/ArcGisFeaturePBF.test.ts +0 -227
- package/src/test/ArcGisFeature/ArcGisFeatureProvider.test.ts +0 -977
- package/src/test/ArcGisFeature/ArcGisFeatureQuery.test.ts +0 -117
- package/src/test/ArcGisFeature/ArcGisFeatureRenderer.test.ts +0 -296
- package/src/test/ArcGisFeature/ArcGisFeatureResponse.test.ts +0 -109
- package/src/test/ArcGisFeature/ArcGisSymbologyRenderer.test.ts +0 -77
- package/src/test/ArcGisFeature/Mocks.ts +0 -19
- package/src/test/ArcGisFeature/NewYorkDataset.ts +0 -423
- package/src/test/ArcGisFeature/PhillyLandmarksDataset.ts +0 -455
- package/tsconfig.json +0 -20
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuites name="Mocha Tests" time="0.384" tests="74" failures="0">
|
|
3
|
-
<testsuite name="Root Suite" timestamp="2023-07-04T05:17:31" tests="0" time="0.000" failures="0">
|
|
4
|
-
</testsuite>
|
|
5
|
-
<testsuite name="ArcGisFeaturePBF" timestamp="2023-07-04T05:17:31" tests="2" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureFeatureFormats.test.js" time="0.022" failures="0">
|
|
6
|
-
<testcase name="ArcGisFeaturePBF should createImageryProvider" time="0.002" classname="should createImageryProvider">
|
|
7
|
-
</testcase>
|
|
8
|
-
<testcase name="ArcGisFeaturePBF should validateSource" time="0.007" classname="should validateSource">
|
|
9
|
-
</testcase>
|
|
10
|
-
</testsuite>
|
|
11
|
-
<testsuite name="ArcGisFeatureJSON" timestamp="2023-07-04T05:17:31" tests="9" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureJSON.test.js" time="0.030" failures="0">
|
|
12
|
-
<testcase name="ArcGisFeatureJSON should read FeatureInfo in JSON (phillyTansportation)" time="0.004" classname="should read FeatureInfo in JSON (phillyTansportation)">
|
|
13
|
-
</testcase>
|
|
14
|
-
<testcase name="ArcGisFeatureJSON should read FeatureInfo in JSON (phillyAirport)" time="0.001" classname="should read FeatureInfo in JSON (phillyAirport)">
|
|
15
|
-
</testcase>
|
|
16
|
-
<testcase name="ArcGisFeatureJSON should deflate coordinates array" time="0.001" classname="should deflate coordinates array">
|
|
17
|
-
</testcase>
|
|
18
|
-
<testcase name="ArcGisFeatureJSON should readAndRender single ring polygon feature" time="0.004" classname="should readAndRender single ring polygon feature">
|
|
19
|
-
</testcase>
|
|
20
|
-
<testcase name="ArcGisFeatureJSON should readAndRender multiple ring polygon feature" time="0.001" classname="should readAndRender multiple ring polygon feature">
|
|
21
|
-
</testcase>
|
|
22
|
-
<testcase name="ArcGisFeatureJSON should readAndRender simple path" time="0.001" classname="should readAndRender simple path">
|
|
23
|
-
</testcase>
|
|
24
|
-
<testcase name="ArcGisFeatureJSON should readAndRender multi path" time="0.001" classname="should readAndRender multi path">
|
|
25
|
-
</testcase>
|
|
26
|
-
<testcase name="ArcGisFeatureJSON should readAndRender simple point" time="0.004" classname="should readAndRender simple point">
|
|
27
|
-
</testcase>
|
|
28
|
-
<testcase name="ArcGisFeatureJSON should log error when readAndRender / readFeatureInfo is called invalid response Data" time="0.002" classname="should log error when readAndRender / readFeatureInfo is called invalid response Data">
|
|
29
|
-
</testcase>
|
|
30
|
-
</testsuite>
|
|
31
|
-
<testsuite name="ArcGisFeaturePBF" timestamp="2023-07-04T05:17:31" tests="10" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeaturePBF.test.js" time="0.052" failures="0">
|
|
32
|
-
<testcase name="ArcGisFeaturePBF should convert pbf geometry type to Esri types" time="0.001" classname="should convert pbf geometry type to Esri types">
|
|
33
|
-
</testcase>
|
|
34
|
-
<testcase name="ArcGisFeaturePBF should read FeatureInfo in PBF" time="0.019" classname="should read FeatureInfo in PBF">
|
|
35
|
-
</testcase>
|
|
36
|
-
<testcase name="ArcGisFeaturePBF should read FeatureInfo from PBF (philly transportation)" time="0.009" classname="should read FeatureInfo from PBF (philly transportation)">
|
|
37
|
-
</testcase>
|
|
38
|
-
<testcase name="ArcGisFeaturePBF should read all data types from FeatureInfo " time="0.003" classname="should read all data types from FeatureInfo ">
|
|
39
|
-
</testcase>
|
|
40
|
-
<testcase name="ArcGisFeaturePBF should readAndRender single ring polygon feature" time="0.002" classname="should readAndRender single ring polygon feature">
|
|
41
|
-
</testcase>
|
|
42
|
-
<testcase name="ArcGisFeaturePBF should readAndRender multiple ring polygon feature" time="0.002" classname="should readAndRender multiple ring polygon feature">
|
|
43
|
-
</testcase>
|
|
44
|
-
<testcase name="ArcGisFeaturePBF should readAndRender simple path" time="0.001" classname="should readAndRender simple path">
|
|
45
|
-
</testcase>
|
|
46
|
-
<testcase name="ArcGisFeaturePBF should readAndRender multi path" time="0.001" classname="should readAndRender multi path">
|
|
47
|
-
</testcase>
|
|
48
|
-
<testcase name="ArcGisFeaturePBF should readAndRender simple point" time="0.003" classname="should readAndRender simple point">
|
|
49
|
-
</testcase>
|
|
50
|
-
<testcase name="ArcGisFeaturePBF should log error when readAndRender / readFeatureInfo is called invalid response Data" time="0.002" classname="should log error when readAndRender / readFeatureInfo is called invalid response Data">
|
|
51
|
-
</testcase>
|
|
52
|
-
</testsuite>
|
|
53
|
-
<testsuite name="ArcGisFeatureProvider" timestamp="2023-07-04T05:17:31" tests="28" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureProvider.test.js" time="0.193" failures="0">
|
|
54
|
-
<testcase name="ArcGisFeatureProvider should initialize with valid service metadata" time="0.004" classname="should initialize with valid service metadata">
|
|
55
|
-
</testcase>
|
|
56
|
-
<testcase name="ArcGisFeatureProvider should initialize and set cartoRange without making extra extent request" time="0.002" classname="should initialize and set cartoRange without making extra extent request">
|
|
57
|
-
</testcase>
|
|
58
|
-
<testcase name="ArcGisFeatureProvider should make an extra extent request when none available in layer metadata" time="0.003" classname="should make an extra extent request when none available in layer metadata">
|
|
59
|
-
</testcase>
|
|
60
|
-
<testcase name="ArcGisFeatureProvider should make an extra extent request when none available in layer metadata" time="0.003" classname="should make an extra extent request when none available in layer metadata">
|
|
61
|
-
</testcase>
|
|
62
|
-
<testcase name="ArcGisFeatureProvider should set cartoRange from Extent json" time="0.002" classname="should set cartoRange from Extent json">
|
|
63
|
-
</testcase>
|
|
64
|
-
<testcase name="ArcGisFeatureProvider should compose proper request to get extent" time="0.011" classname="should compose proper request to get extent">
|
|
65
|
-
</testcase>
|
|
66
|
-
<testcase name="ArcGisFeatureProvider should not initialize with no service metadata" time="0.003" classname="should not initialize with no service metadata">
|
|
67
|
-
</testcase>
|
|
68
|
-
<testcase name="ArcGisFeatureProvider should update status when invalid token error from service" time="0.002" classname="should update status when invalid token error from service">
|
|
69
|
-
</testcase>
|
|
70
|
-
<testcase name="ArcGisFeatureProvider should throw query capability not supported" time="0.000" classname="should throw query capability not supported">
|
|
71
|
-
</testcase>
|
|
72
|
-
<testcase name="ArcGisFeatureProvider should pick the first visible sub-layer when multiple visible sub-layers" time="0.003" classname="should pick the first visible sub-layer when multiple visible sub-layers">
|
|
73
|
-
</testcase>
|
|
74
|
-
<testcase name="ArcGisFeatureProvider should pick sub-layers from service metadata if none provided on layer settings" time="0.004" classname="should pick sub-layers from service metadata if none provided on layer settings">
|
|
75
|
-
</testcase>
|
|
76
|
-
<testcase name="ArcGisFeatureProvider should throw error if no layers in capabilities" time="0.001" classname="should throw error if no layers in capabilities">
|
|
77
|
-
</testcase>
|
|
78
|
-
<testcase name="ArcGisFeatureProvider should throw if no layer metadata from service" time="0.001" classname="should throw if no layer metadata from service">
|
|
79
|
-
</testcase>
|
|
80
|
-
<testcase name="ArcGisFeatureProvider should read supported supported format" time="0.015" classname="should read supported supported format">
|
|
81
|
-
</testcase>
|
|
82
|
-
<testcase name="ArcGisFeatureProvider should compute minLod/maxLod" time="0.003" classname="should compute minLod/maxLod">
|
|
83
|
-
</testcase>
|
|
84
|
-
<testcase name="ArcGisFeatureProvider should construct empty url" time="0.000" classname="should construct empty url">
|
|
85
|
-
</testcase>
|
|
86
|
-
<testcase name="ArcGisFeatureProvider should construct feature query url" time="0.025" classname="should construct feature query url">
|
|
87
|
-
</testcase>
|
|
88
|
-
<testcase name="ArcGisFeatureProvider should log error when getFeatureInfo cannot be performed" time="0.004" classname="should log error when getFeatureInfo cannot be performed">
|
|
89
|
-
</testcase>
|
|
90
|
-
<testcase name="ArcGisFeatureProvider should process data in getFeatureInfo" time="0.017" classname="should process data in getFeatureInfo">
|
|
91
|
-
</testcase>
|
|
92
|
-
<testcase name="ArcGisFeatureProvider should log error when exceed transfert limit" time="0.008" classname="should log error when exceed transfert limit">
|
|
93
|
-
</testcase>
|
|
94
|
-
<testcase name="ArcGisFeatureProvider should log error when exceed exception thrown limit" time="0.009" classname="should log error when exceed exception thrown limit">
|
|
95
|
-
</testcase>
|
|
96
|
-
<testcase name="ArcGisFeatureProvider should debug Feature Geom" time="0.017" classname="should debug Feature Geom">
|
|
97
|
-
</testcase>
|
|
98
|
-
<testcase name="ArcGisFeatureProvider should compute computeTileWorld2CanvasTransform" time="0.003" classname="should compute computeTileWorld2CanvasTransform">
|
|
99
|
-
</testcase>
|
|
100
|
-
<testcase name="ArcGisFeatureProvider should loadTile from PBF request" time="0.007" classname="should loadTile from PBF request">
|
|
101
|
-
</testcase>
|
|
102
|
-
<testcase name="ArcGisFeatureProvider should loadTile from JSON request" time="0.005" classname="should loadTile from JSON request">
|
|
103
|
-
</testcase>
|
|
104
|
-
<testcase name="ArcGisFeatureProvider should make sub request if loadtile request return 'exceedTransferLimit'" time="0.007" classname="should make sub request if loadtile request return 'exceedTransferLimit'">
|
|
105
|
-
</testcase>
|
|
106
|
-
<testcase name="ArcGisFeatureProvider fetchTile should return undefined when to format defined" time="0.001" classname="fetchTile should return undefined when to format defined">
|
|
107
|
-
</testcase>
|
|
108
|
-
<testcase name="ArcGisFeatureProvider fetchTile should call fetch with the proper URL" time="0.003" classname="fetchTile should call fetch with the proper URL">
|
|
109
|
-
</testcase>
|
|
110
|
-
</testsuite>
|
|
111
|
-
<testsuite name="ArcGisFeatureQuery" timestamp="2023-07-04T05:17:31" tests="3" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureQuery.test.js" time="0.019" failures="0">
|
|
112
|
-
<testcase name="ArcGisFeatureQuery should not apply different switches if not needed" time="0.003" classname="should not apply different switches if not needed">
|
|
113
|
-
</testcase>
|
|
114
|
-
<testcase name="ArcGisFeatureQuery should not apply different switches if not needed" time="0.008" classname="should not apply different switches if not needed">
|
|
115
|
-
</testcase>
|
|
116
|
-
<testcase name="ArcGisFeatureQuery should not include geometry only when applicable" time="0.005" classname="should not include geometry only when applicable">
|
|
117
|
-
</testcase>
|
|
118
|
-
</testsuite>
|
|
119
|
-
<testsuite name="ArcGisFeatureRenderer" timestamp="2023-07-04T05:17:31" tests="12" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureRenderer.test.js" time="0.045" failures="0">
|
|
120
|
-
<testcase name="ArcGisFeatureRenderer should render simple path, stride = 2" time="0.004" classname="should render simple path, stride = 2">
|
|
121
|
-
</testcase>
|
|
122
|
-
<testcase name="ArcGisFeatureRenderer should render simple filled path" time="0.002" classname="should render simple filled path">
|
|
123
|
-
</testcase>
|
|
124
|
-
<testcase name="ArcGisFeatureRenderer should render simple Path, stride = 3" time="0.001" classname="should render simple Path, stride = 3">
|
|
125
|
-
</testcase>
|
|
126
|
-
<testcase name="ArcGisFeatureRenderer should render multiple Paths, stride = 2" time="0.001" classname="should render multiple Paths, stride = 2">
|
|
127
|
-
</testcase>
|
|
128
|
-
<testcase name="ArcGisFeatureRenderer should not render invalid with stride value" time="0.001" classname="should not render invalid with stride value">
|
|
129
|
-
</testcase>
|
|
130
|
-
<testcase name="ArcGisFeatureRenderer should render Path and apply transform, relativeCoords OFF" time="0.001" classname="should render Path and apply transform, relativeCoords OFF">
|
|
131
|
-
</testcase>
|
|
132
|
-
<testcase name="ArcGisFeatureRenderer should render single Point, no transform, relativeCoords OFF" time="0.001" classname="should render single Point, no transform, relativeCoords OFF">
|
|
133
|
-
</testcase>
|
|
134
|
-
<testcase name="ArcGisFeatureRenderer should render single Point and apply transform, relativeCoords OFF" time="0.003" classname="should render single Point and apply transform, relativeCoords OFF">
|
|
135
|
-
</testcase>
|
|
136
|
-
<testcase name="ArcGisFeatureRenderer should render multi Point, transform, relativeCoords OFF" time="0.002" classname="should render multi Point, transform, relativeCoords OFF">
|
|
137
|
-
</testcase>
|
|
138
|
-
<testcase name="ArcGisFeatureRenderer should render multi Point and apply transform, relativeCoords OFF" time="0.002" classname="should render multi Point and apply transform, relativeCoords OFF">
|
|
139
|
-
</testcase>
|
|
140
|
-
<testcase name="ArcGisFeatureRenderer should render multi Point and apply transform, relativeCoords ON" time="0.003" classname="should render multi Point and apply transform, relativeCoords ON">
|
|
141
|
-
</testcase>
|
|
142
|
-
<testcase name="ArcGisFeatureRenderer should render and apply transform, relativeCoords ON" time="0.001" classname="should render and apply transform, relativeCoords ON">
|
|
143
|
-
</testcase>
|
|
144
|
-
</testsuite>
|
|
145
|
-
<testsuite name="ArcGisFeatureResponse" timestamp="2023-07-04T05:17:31" tests="7" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureResponse.test.js" time="0.015" failures="0">
|
|
146
|
-
<testcase name="ArcGisFeatureResponse should return undefined if http error" time="0.000" classname="should return undefined if http error">
|
|
147
|
-
</testcase>
|
|
148
|
-
<testcase name="ArcGisFeatureResponse should return undefined if invalid PBF data" time="0.000" classname="should return undefined if invalid PBF data">
|
|
149
|
-
</testcase>
|
|
150
|
-
<testcase name="ArcGisFeatureResponse should create FeatureCollectionPBuffer from PBF data" time="0.004" classname="should create FeatureCollectionPBuffer from PBF data">
|
|
151
|
-
</testcase>
|
|
152
|
-
<testcase name="ArcGisFeatureResponse should report exceededTransferLimit from PBF object" time="0.005" classname="should report exceededTransferLimit from PBF object">
|
|
153
|
-
</testcase>
|
|
154
|
-
<testcase name="ArcGisFeatureResponse should return undefined if invalid JSON" time="0.000" classname="should return undefined if invalid JSON">
|
|
155
|
-
</testcase>
|
|
156
|
-
<testcase name="ArcGisFeatureResponse should return JSON data" time="0.000" classname="should return JSON data">
|
|
157
|
-
</testcase>
|
|
158
|
-
<testcase name="ArcGisFeatureResponse should report exceededTransferLimit from JSON object" time="0.000" classname="should report exceededTransferLimit from JSON object">
|
|
159
|
-
</testcase>
|
|
160
|
-
</testsuite>
|
|
161
|
-
<testsuite name="ArcGisSymbologyRenderer" timestamp="2023-07-04T05:17:31" tests="3" file="D:\vsts_a\7\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisSymbologyRenderer.test.js" time="0.005" failures="0">
|
|
162
|
-
<testcase name="ArcGisSymbologyRenderer should construct renderer from incomplete drawing info" time="0.002" classname="should construct renderer from incomplete drawing info">
|
|
163
|
-
</testcase>
|
|
164
|
-
<testcase name="ArcGisSymbologyRenderer should construct renderer from unique value drawing info" time="0.000" classname="should construct renderer from unique value drawing info">
|
|
165
|
-
</testcase>
|
|
166
|
-
<testcase name="ArcGisSymbologyRenderer should construct renderer from point symbology drawing info" time="0.000" classname="should construct renderer from point symbology drawing info">
|
|
167
|
-
</testcase>
|
|
168
|
-
</testsuite>
|
|
169
|
-
</testsuites>
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
Invoking: nyc npm -s test
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
ArcGisFeaturePBF
|
|
5
|
-
√ should createImageryProvider
|
|
6
|
-
√ should validateSource
|
|
7
|
-
|
|
8
|
-
ArcGisFeatureJSON
|
|
9
|
-
√ should read FeatureInfo in JSON (phillyTansportation)
|
|
10
|
-
√ should read FeatureInfo in JSON (phillyAirport)
|
|
11
|
-
√ should deflate coordinates array
|
|
12
|
-
√ should readAndRender single ring polygon feature
|
|
13
|
-
√ should readAndRender multiple ring polygon feature
|
|
14
|
-
√ should readAndRender simple path
|
|
15
|
-
√ should readAndRender multi path
|
|
16
|
-
√ should readAndRender simple point
|
|
17
|
-
√ should log error when readAndRender / readFeatureInfo is called invalid response Data
|
|
18
|
-
|
|
19
|
-
ArcGisFeaturePBF
|
|
20
|
-
√ should convert pbf geometry type to Esri types
|
|
21
|
-
√ should read FeatureInfo in PBF
|
|
22
|
-
√ should read FeatureInfo from PBF (philly transportation)
|
|
23
|
-
√ should read all data types from FeatureInfo
|
|
24
|
-
√ should readAndRender single ring polygon feature
|
|
25
|
-
√ should readAndRender multiple ring polygon feature
|
|
26
|
-
√ should readAndRender simple path
|
|
27
|
-
√ should readAndRender multi path
|
|
28
|
-
√ should readAndRender simple point
|
|
29
|
-
√ should log error when readAndRender / readFeatureInfo is called invalid response Data
|
|
30
|
-
|
|
31
|
-
ArcGisFeatureProvider
|
|
32
|
-
√ should initialize with valid service metadata
|
|
33
|
-
√ should initialize and set cartoRange without making extra extent request
|
|
34
|
-
√ should make an extra extent request when none available in layer metadata
|
|
35
|
-
√ should make an extra extent request when none available in layer metadata
|
|
36
|
-
√ should set cartoRange from Extent json
|
|
37
|
-
√ should compose proper request to get extent
|
|
38
|
-
√ should not initialize with no service metadata
|
|
39
|
-
√ should update status when invalid token error from service
|
|
40
|
-
√ should throw query capability not supported
|
|
41
|
-
√ should pick the first visible sub-layer when multiple visible sub-layers
|
|
42
|
-
√ should pick sub-layers from service metadata if none provided on layer settings
|
|
43
|
-
√ should throw error if no layers in capabilities
|
|
44
|
-
√ should throw if no layer metadata from service
|
|
45
|
-
√ should read supported supported format
|
|
46
|
-
√ should compute minLod/maxLod
|
|
47
|
-
√ should construct empty url
|
|
48
|
-
√ should construct feature query url
|
|
49
|
-
√ should log error when getFeatureInfo cannot be performed
|
|
50
|
-
√ should process data in getFeatureInfo
|
|
51
|
-
√ should log error when exceed transfert limit
|
|
52
|
-
√ should log error when exceed exception thrown limit
|
|
53
|
-
√ should debug Feature Geom
|
|
54
|
-
√ should compute computeTileWorld2CanvasTransform
|
|
55
|
-
√ should loadTile from PBF request
|
|
56
|
-
√ should loadTile from JSON request
|
|
57
|
-
√ should make sub request if loadtile request return 'exceedTransferLimit'
|
|
58
|
-
√ fetchTile should return undefined when to format defined
|
|
59
|
-
√ fetchTile should call fetch with the proper URL
|
|
60
|
-
|
|
61
|
-
ArcGisFeatureQuery
|
|
62
|
-
√ should not apply different switches if not needed
|
|
63
|
-
√ should not apply different switches if not needed
|
|
64
|
-
√ should not include geometry only when applicable
|
|
65
|
-
|
|
66
|
-
ArcGisFeatureRenderer
|
|
67
|
-
√ should render simple path, stride = 2
|
|
68
|
-
√ should render simple filled path
|
|
69
|
-
√ should render simple Path, stride = 3
|
|
70
|
-
√ should render multiple Paths, stride = 2
|
|
71
|
-
√ should not render invalid with stride value
|
|
72
|
-
√ should render Path and apply transform, relativeCoords OFF
|
|
73
|
-
√ should render single Point, no transform, relativeCoords OFF
|
|
74
|
-
√ should render single Point and apply transform, relativeCoords OFF
|
|
75
|
-
√ should render multi Point, transform, relativeCoords OFF
|
|
76
|
-
√ should render multi Point and apply transform, relativeCoords OFF
|
|
77
|
-
√ should render multi Point and apply transform, relativeCoords ON
|
|
78
|
-
√ should render and apply transform, relativeCoords ON
|
|
79
|
-
|
|
80
|
-
ArcGisFeatureResponse
|
|
81
|
-
√ should return undefined if http error
|
|
82
|
-
√ should return undefined if invalid PBF data
|
|
83
|
-
√ should create FeatureCollectionPBuffer from PBF data
|
|
84
|
-
√ should report exceededTransferLimit from PBF object
|
|
85
|
-
√ should return undefined if invalid JSON
|
|
86
|
-
√ should return JSON data
|
|
87
|
-
√ should report exceededTransferLimit from JSON object
|
|
88
|
-
|
|
89
|
-
ArcGisSymbologyRenderer
|
|
90
|
-
√ should construct renderer from incomplete drawing info
|
|
91
|
-
√ should construct renderer from unique value drawing info
|
|
92
|
-
√ should construct renderer from point symbology drawing info
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
74 passing (384ms)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
=============================== Coverage summary ===============================
|
|
99
|
-
Statements : 91.54% ( 671/733 )
|
|
100
|
-
Branches : 84.89% ( 354/417 )
|
|
101
|
-
Functions : 92.5% ( 74/80 )
|
|
102
|
-
Lines : 91.42% ( 661/723 )
|
|
103
|
-
================================================================================
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
Invoking: betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/map-layers-formats/file.json --tsIndexFile=./map-layers-formats.ts --onlyJson --excludes=**/ArcGisFeature/*.ts,**/*.gen.ts
|
|
2
|
-
Running command:
|
|
3
|
-
node D:\vsts_a\7\s\tools\build\scripts\docs.js --json ../../generated-docs/core/map-layers-formats/file.json --includes ../../generated-docs/extract --excludes **/ArcGisFeature/*.ts,**/*.gen.ts --tsIndexFile ./map-layers-formats.ts --onlyJson
|
|
4
|
-
Arguments to TypeDoc: [
|
|
5
|
-
"--entryPointStrategy",
|
|
6
|
-
"expand",
|
|
7
|
-
"D:\\vsts_a\\7\\s\\extensions\\map-layers-formats\\src",
|
|
8
|
-
"--excludePrivate",
|
|
9
|
-
"--hideGenerator",
|
|
10
|
-
"--logLevel",
|
|
11
|
-
"Error",
|
|
12
|
-
"--exclude",
|
|
13
|
-
"**/node_modules/**/*",
|
|
14
|
-
"--exclude",
|
|
15
|
-
"**/*test*/**/*",
|
|
16
|
-
"--exclude",
|
|
17
|
-
"**/**/ArcGisFeature/*.ts",
|
|
18
|
-
"--exclude",
|
|
19
|
-
"**/*.gen.ts/**/*",
|
|
20
|
-
"--json",
|
|
21
|
-
"../../generated-docs/core/map-layers-formats/file.json",
|
|
22
|
-
"--readme",
|
|
23
|
-
"none",
|
|
24
|
-
"--plugin",
|
|
25
|
-
"typedoc-plugin-merge-modules",
|
|
26
|
-
"--mergeModulesMergeMode",
|
|
27
|
-
"module",
|
|
28
|
-
"--includes",
|
|
29
|
-
"../../generated-docs/extract"
|
|
30
|
-
]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
no problems
|
|
@@ -1,20 +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 { ImageMapLayerSettings } from "@itwin/core-common";
|
|
6
|
-
import { ArcGisUtilities, ImageryMapLayerFormat, MapLayerImageryProvider, MapLayerSourceStatus, MapLayerSourceValidation } from "@itwin/core-frontend";
|
|
7
|
-
import { ArcGisFeatureProvider } from "./ArcGisFeatureProvider";
|
|
8
|
-
|
|
9
|
-
/** @internal */
|
|
10
|
-
export class ArcGisFeatureMapLayerFormat extends ImageryMapLayerFormat {
|
|
11
|
-
public static override formatId = "ArcGISFeature";
|
|
12
|
-
public static override createImageryProvider(settings: ImageMapLayerSettings): MapLayerImageryProvider | undefined { return new ArcGisFeatureProvider(settings); }
|
|
13
|
-
public static override async validateSource(url: string, userName?: string, password?: string, ignoreCache?: boolean): Promise<MapLayerSourceValidation> {
|
|
14
|
-
const urlValidation = ArcGisUtilities.validateUrl(url, "FeatureServer");
|
|
15
|
-
if (urlValidation !== MapLayerSourceStatus.Valid)
|
|
16
|
-
return {status: urlValidation};
|
|
17
|
-
|
|
18
|
-
return ArcGisUtilities.validateSource(url, this.formatId, ["query"], userName, password, ignoreCache);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,155 +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 { PrimitiveValue, PropertyValueFormat, StandardTypeNames } from "@itwin/appui-abstract";
|
|
7
|
-
import { ImageMapLayerSettings } from "@itwin/core-common";
|
|
8
|
-
import { MapFeatureInfoRecord, MapLayerFeatureInfo, MapSubLayerFeatureInfo } from "@itwin/core-frontend";
|
|
9
|
-
import { Transform } from "@itwin/core-geometry";
|
|
10
|
-
import { ArcGisFeatureReader } from "./ArcGisFeatureReader";
|
|
11
|
-
import { ArcGisFeatureRenderer } from "./ArcGisFeatureRenderer";
|
|
12
|
-
import { ArcGisFieldType, ArcGisResponseData } from "./ArcGisFeatureResponse";
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
export class ArcGisFeatureJSON extends ArcGisFeatureReader {
|
|
16
|
-
public transform: Transform|undefined;
|
|
17
|
-
|
|
18
|
-
public constructor(settings: ImageMapLayerSettings, layerMetadata: any) {
|
|
19
|
-
super(settings, layerMetadata);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public readAndRender(response: ArcGisResponseData, renderer: ArcGisFeatureRenderer) {
|
|
23
|
-
const responseObj = response.data;
|
|
24
|
-
|
|
25
|
-
if (responseObj?.geometryType === "esriGeometryPolyline" || responseObj?.geometryType === "esriGeometryPolygon") {
|
|
26
|
-
const fill = (responseObj.geometryType === "esriGeometryPolygon");
|
|
27
|
-
for (const feature of responseObj.features) {
|
|
28
|
-
let offset = 0;
|
|
29
|
-
const lengths: number[] = [];
|
|
30
|
-
const coords: number[] = [];
|
|
31
|
-
|
|
32
|
-
if (feature?.geometry?.rings) {
|
|
33
|
-
for (const ring of feature?.geometry?.rings) {
|
|
34
|
-
offset = ArcGisFeatureJSON.deflateCoordinates(ring, coords, 2, offset);
|
|
35
|
-
lengths.push(ring.length);
|
|
36
|
-
}
|
|
37
|
-
} else if (feature?.geometry?.paths) {
|
|
38
|
-
for (const path of feature?.geometry?.paths) {
|
|
39
|
-
offset = ArcGisFeatureJSON.deflateCoordinates(path, coords, 2, offset);
|
|
40
|
-
lengths.push(path.length);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
renderer.renderPath(lengths, coords, fill, 2, renderer.transform === undefined);
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
} else if (responseObj?.geometryType === "esriGeometryPoint" || responseObj?.geometryType === "esriGeometryMultiPoint") {
|
|
47
|
-
for (const feature of responseObj.features) {
|
|
48
|
-
// TODO: Add support for multipoint
|
|
49
|
-
if (feature.geometry) {
|
|
50
|
-
const lengths: number[] = [];
|
|
51
|
-
const coords: number[] = [feature.geometry.x, feature.geometry.y];
|
|
52
|
-
renderer.renderPoint(lengths, coords, 2, renderer.transform === undefined);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Converts an [[x1,y1], [x2,y2], ...] to [x1,y1,x2,y2, ...]
|
|
59
|
-
// stride is the number of dimensions
|
|
60
|
-
// https://github.com/openlayers/openlayers/blob/7a2f87caca9ddc1912d910f56eb5637445fc11f6/src/ol/geom/flat/deflate.js#L26
|
|
61
|
-
protected static deflateCoordinates( coordinates: number[][], flatCoordinates: number[], stride: number, offset: number) {
|
|
62
|
-
for (let i = 0, ii = coordinates.length; i < ii; ++i) {
|
|
63
|
-
const coordinate = coordinates[i];
|
|
64
|
-
for (let j = 0; j < stride; ++j)
|
|
65
|
-
flatCoordinates[offset++] = coordinate[j];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return offset;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
public readFeatureInfo(response: ArcGisResponseData, featureInfos: MapLayerFeatureInfo[]) {
|
|
72
|
-
const responseObj = response.data;
|
|
73
|
-
if (responseObj === undefined || !Array.isArray(responseObj.features))
|
|
74
|
-
return;
|
|
75
|
-
|
|
76
|
-
const layerInfo: MapLayerFeatureInfo = {layerName: this._settings.name};
|
|
77
|
-
|
|
78
|
-
// Create a signature index for every field name / type.
|
|
79
|
-
const fieldsType: {[key: string]: ArcGisFieldType} = {};
|
|
80
|
-
for (const fieldInfo of responseObj.fields) {
|
|
81
|
-
fieldsType[fieldInfo.name] = fieldInfo.type;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const getStandardTypeName = (fieldType: ArcGisFieldType) => {
|
|
85
|
-
switch (fieldType) {
|
|
86
|
-
case "esriFieldTypeInteger":
|
|
87
|
-
case "esriFieldTypeSmallInteger":
|
|
88
|
-
case "esriFieldTypeOID":
|
|
89
|
-
return StandardTypeNames.Integer;
|
|
90
|
-
case "esriFieldTypeDouble":
|
|
91
|
-
return StandardTypeNames.Double;
|
|
92
|
-
case "esriFieldTypeSingle":
|
|
93
|
-
return StandardTypeNames.Float;
|
|
94
|
-
case "esriFieldTypeDate":
|
|
95
|
-
return StandardTypeNames.DateTime;
|
|
96
|
-
default:
|
|
97
|
-
return StandardTypeNames.String;
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
const getRecordInfo = (fieldName: string, value: any) => {
|
|
102
|
-
const propertyValue: PrimitiveValue = {valueFormat: PropertyValueFormat.Primitive};
|
|
103
|
-
|
|
104
|
-
if (value === null) {
|
|
105
|
-
value = undefined;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const strValue = `${value}`;
|
|
109
|
-
const fieldType = fieldsType[fieldName];
|
|
110
|
-
switch (fieldType) {
|
|
111
|
-
case "esriFieldTypeInteger":
|
|
112
|
-
case "esriFieldTypeSmallInteger":
|
|
113
|
-
case "esriFieldTypeOID":
|
|
114
|
-
propertyValue.value = value as number;
|
|
115
|
-
break;
|
|
116
|
-
case "esriFieldTypeDouble":
|
|
117
|
-
case "esriFieldTypeSingle":
|
|
118
|
-
propertyValue.value = this.toFixedWithoutPadding(value);
|
|
119
|
-
break;
|
|
120
|
-
case "esriFieldTypeDate":
|
|
121
|
-
propertyValue.value = new Date(value);
|
|
122
|
-
break;
|
|
123
|
-
default:
|
|
124
|
-
if (value !== undefined)
|
|
125
|
-
propertyValue.value = strValue;
|
|
126
|
-
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
const typename = getStandardTypeName(fieldType);
|
|
131
|
-
propertyValue.displayValue = this.getDisplayValue(typename, propertyValue.value);
|
|
132
|
-
|
|
133
|
-
return new MapFeatureInfoRecord (propertyValue, {name: fieldName, displayLabel: fieldName, typename});
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
for (const feature of responseObj.features) {
|
|
137
|
-
const subLayerInfo: MapSubLayerFeatureInfo = {
|
|
138
|
-
subLayerName: this._layerMetadata.name,
|
|
139
|
-
displayFieldName: this._layerMetadata.name,
|
|
140
|
-
records : [],
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
for (const [key, value] of Object.entries(feature.attributes))
|
|
144
|
-
subLayerInfo.records?.push(getRecordInfo(key,value));
|
|
145
|
-
|
|
146
|
-
if (layerInfo.info === undefined)
|
|
147
|
-
layerInfo.info = [];
|
|
148
|
-
|
|
149
|
-
if (!(layerInfo.info instanceof HTMLElement))
|
|
150
|
-
layerInfo.info.push(subLayerInfo);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
featureInfos.push(layerInfo);
|
|
154
|
-
}
|
|
155
|
-
}
|