@itwin/map-layers-formats 4.0.0-dev.8 → 4.0.0-dev.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/operation/build/all.log +3 -0
- package/.rush/temp/operation/build/state.json +3 -0
- package/.rush/temp/operation/cover/all.log +98 -0
- package/.rush/temp/operation/cover/state.json +1 -1
- package/.rush/temp/operation/docs/all.log +30 -0
- package/.rush/temp/operation/docs/state.json +1 -1
- package/.rush/temp/{package-deps_build_ci.json → package-deps_build.json} +11 -11
- package/.rush/temp/package-deps_cover.json +10 -10
- package/.rush/temp/package-deps_docs.json +10 -10
- package/.rush/temp/shrinkwrap-deps.json +190 -44
- package/CHANGELOG.json +57 -0
- package/CHANGELOG.md +44 -1
- package/config/rush-project.json +1 -2
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.d.ts +8 -8
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js +14 -14
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts +14 -14
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js +132 -134
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts +14 -14
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js +200 -202
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts +44 -44
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js +421 -422
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts +92 -92
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js +82 -82
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts +17 -17
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js +33 -33
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts +32 -32
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js +142 -142
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts +16 -16
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js +42 -43
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +85 -85
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js +189 -192
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.d.ts +1063 -1063
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js +2267 -2270
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/cjs/map-layers-formats.d.ts +8 -8
- package/lib/cjs/map-layers-formats.js +28 -24
- package/lib/cjs/map-layers-formats.js.map +1 -1
- package/lib/cjs/mapLayersFormats.d.ts +10 -10
- package/lib/cjs/mapLayersFormats.js +28 -28
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +34 -34
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js +161 -161
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js +167 -167
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js +679 -680
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js +103 -103
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +214 -214
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js +94 -94
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +59 -59
- package/lib/cjs/test/ArcGisFeature/Mocks.d.ts +6 -6
- package/lib/cjs/test/ArcGisFeature/Mocks.js +18 -18
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts +55 -55
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts.map +1 -1
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js +419 -419
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js.map +1 -1
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +1042 -1042
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +1 -1
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js +426 -426
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js.map +1 -1
- package/lib/cjs/test/coverage/.nyc_output/965fc94c-e7e4-4e85-bf72-aecce4f5ac8c.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/4935e330-732e-4dc9-9cc7-6639c02bf614.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/965fc94c-e7e4-4e85-bf72-aecce4f5ac8c.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/index.json +1 -1
- package/lib/cjs/test/coverage/cobertura-coverage.xml +72 -72
- package/lib/cjs/test/coverage/lcov-report/index.html +5 -5
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureFormat.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureJSON.ts.html +10 -10
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeaturePBF.ts.html +7 -7
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureProvider.ts.html +10 -10
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureQuery.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureReader.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureRenderer.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureResponse.ts.html +4 -4
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisSymbologyRenderer.ts.html +8 -8
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/index.html +13 -13
- package/lib/cjs/test/coverage/lcov-report/src/index.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/map-layers-formats.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/mapLayersFormats.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov.info +355 -531
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.d.ts +8 -8
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js +11 -10
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts +14 -14
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js +128 -130
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts +14 -14
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js +196 -198
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts +44 -44
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js +418 -418
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts +92 -92
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js +78 -78
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts +17 -17
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js +29 -29
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts +32 -32
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js +138 -138
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts +16 -16
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js +38 -39
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +85 -85
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js +183 -185
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.d.ts +1063 -1063
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js +2264 -2267
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/esm/map-layers-formats.d.ts +8 -8
- package/lib/esm/map-layers-formats.js +12 -12
- package/lib/esm/mapLayersFormats.d.ts +10 -10
- package/lib/esm/mapLayersFormats.js +24 -24
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +32 -32
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js +159 -159
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js +165 -165
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js +677 -678
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js +101 -101
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +212 -212
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js +92 -92
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +57 -57
- package/lib/esm/test/ArcGisFeature/Mocks.d.ts +6 -6
- package/lib/esm/test/ArcGisFeature/Mocks.js +15 -15
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts +55 -55
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts.map +1 -1
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js +416 -415
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js.map +1 -1
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +1042 -1042
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +1 -1
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js +423 -422
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js.map +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/test/junit_results.xml +48 -48
- package/map-layers-formats.build.log +2 -2
- package/package.json +17 -17
- package/src/ArcGisFeature/esriPBuffer.gen.ts +1 -4
- package/src/test/ArcGisFeature/ArcGisFeatureProvider.test.ts +21 -21
- package/src/test/ArcGisFeature/NewYorkDataset.ts +187 -187
- package/src/test/ArcGisFeature/PhillyLandmarksDataset.ts +4 -4
- package/tsconfig.json +1 -2
- package/.rush/temp/operation/build_ci/state.json +0 -3
- package/lib/cjs/test/coverage/.nyc_output/bb9e12be-ea3c-4cee-99d0-c7a34bd2c47a.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/5901bdfe-760d-4ca3-9674-876be7ed11b1.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/bb9e12be-ea3c-4cee-99d0-c7a34bd2c47a.json +0 -1
- /package/lib/cjs/test/coverage/.nyc_output/{5901bdfe-760d-4ca3-9674-876be7ed11b1.json → 4935e330-732e-4dc9-9cc7-6639c02bf614.json} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuites name="Mocha Tests" time="0.
|
|
3
|
-
<testsuite name="Root Suite" timestamp="2023-
|
|
2
|
+
<testsuites name="Mocha Tests" time="0.729" tests="69" failures="0">
|
|
3
|
+
<testsuite name="Root Suite" timestamp="2023-04-20T05:15:03" tests="0" time="0.000" failures="0">
|
|
4
4
|
</testsuite>
|
|
5
|
-
<testsuite name="ArcGisFeaturePBF" timestamp="2023-
|
|
6
|
-
<testcase name="ArcGisFeaturePBF should createImageryProvider" time="0.
|
|
5
|
+
<testsuite name="ArcGisFeaturePBF" timestamp="2023-04-20T05:15:03" tests="2" file="D:\vsts_a\6\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureFeatureFormats.test.js" time="0.016" failures="0">
|
|
6
|
+
<testcase name="ArcGisFeaturePBF should createImageryProvider" time="0.002" classname="should createImageryProvider">
|
|
7
7
|
</testcase>
|
|
8
|
-
<testcase name="ArcGisFeaturePBF should validateSource" time="0.
|
|
8
|
+
<testcase name="ArcGisFeaturePBF should validateSource" time="0.004" classname="should validateSource">
|
|
9
9
|
</testcase>
|
|
10
10
|
</testsuite>
|
|
11
|
-
<testsuite name="ArcGisFeatureJSON" timestamp="2023-
|
|
12
|
-
<testcase name="ArcGisFeatureJSON should read FeatureInfo in JSON (phillyTansportation)" time="0.
|
|
11
|
+
<testsuite name="ArcGisFeatureJSON" timestamp="2023-04-20T05:15:03" tests="9" file="D:\vsts_a\6\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureJSON.test.js" time="0.032" failures="0">
|
|
12
|
+
<testcase name="ArcGisFeatureJSON should read FeatureInfo in JSON (phillyTansportation)" time="0.004" classname="should read FeatureInfo in JSON (phillyTansportation)">
|
|
13
13
|
</testcase>
|
|
14
14
|
<testcase name="ArcGisFeatureJSON should read FeatureInfo in JSON (phillyAirport)" time="0.001" classname="should read FeatureInfo in JSON (phillyAirport)">
|
|
15
15
|
</testcase>
|
|
@@ -19,29 +19,29 @@
|
|
|
19
19
|
</testcase>
|
|
20
20
|
<testcase name="ArcGisFeatureJSON should readAndRender multiple ring polygon feature" time="0.002" classname="should readAndRender multiple ring polygon feature">
|
|
21
21
|
</testcase>
|
|
22
|
-
<testcase name="ArcGisFeatureJSON should readAndRender simple path" time="0.
|
|
22
|
+
<testcase name="ArcGisFeatureJSON should readAndRender simple path" time="0.001" classname="should readAndRender simple path">
|
|
23
23
|
</testcase>
|
|
24
24
|
<testcase name="ArcGisFeatureJSON should readAndRender multi path" time="0.001" classname="should readAndRender multi path">
|
|
25
25
|
</testcase>
|
|
26
|
-
<testcase name="ArcGisFeatureJSON should readAndRender simple point" time="0.
|
|
26
|
+
<testcase name="ArcGisFeatureJSON should readAndRender simple point" time="0.005" classname="should readAndRender simple point">
|
|
27
27
|
</testcase>
|
|
28
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
29
|
</testcase>
|
|
30
30
|
</testsuite>
|
|
31
|
-
<testsuite name="ArcGisFeaturePBF" timestamp="2023-
|
|
32
|
-
<testcase name="ArcGisFeaturePBF should convert pbf geometry type to Esri types" time="0.
|
|
31
|
+
<testsuite name="ArcGisFeaturePBF" timestamp="2023-04-20T05:15:03" tests="10" file="D:\vsts_a\6\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeaturePBF.test.js" time="0.045" failures="0">
|
|
32
|
+
<testcase name="ArcGisFeaturePBF should convert pbf geometry type to Esri types" time="0.003" classname="should convert pbf geometry type to Esri types">
|
|
33
33
|
</testcase>
|
|
34
|
-
<testcase name="ArcGisFeaturePBF should read FeatureInfo in PBF" time="0.
|
|
34
|
+
<testcase name="ArcGisFeaturePBF should read FeatureInfo in PBF" time="0.015" classname="should read FeatureInfo in PBF">
|
|
35
35
|
</testcase>
|
|
36
36
|
<testcase name="ArcGisFeaturePBF should read FeatureInfo from PBF (philly transportation)" time="0.010" classname="should read FeatureInfo from PBF (philly transportation)">
|
|
37
37
|
</testcase>
|
|
38
|
-
<testcase name="ArcGisFeaturePBF should read all data types from FeatureInfo " time="0.
|
|
38
|
+
<testcase name="ArcGisFeaturePBF should read all data types from FeatureInfo " time="0.002" classname="should read all data types from FeatureInfo ">
|
|
39
39
|
</testcase>
|
|
40
40
|
<testcase name="ArcGisFeaturePBF should readAndRender single ring polygon feature" time="0.002" classname="should readAndRender single ring polygon feature">
|
|
41
41
|
</testcase>
|
|
42
42
|
<testcase name="ArcGisFeaturePBF should readAndRender multiple ring polygon feature" time="0.002" classname="should readAndRender multiple ring polygon feature">
|
|
43
43
|
</testcase>
|
|
44
|
-
<testcase name="ArcGisFeaturePBF should readAndRender simple path" time="0.
|
|
44
|
+
<testcase name="ArcGisFeaturePBF should readAndRender simple path" time="0.001" classname="should readAndRender simple path">
|
|
45
45
|
</testcase>
|
|
46
46
|
<testcase name="ArcGisFeaturePBF should readAndRender multi path" time="0.001" classname="should readAndRender multi path">
|
|
47
47
|
</testcase>
|
|
@@ -50,70 +50,70 @@
|
|
|
50
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
51
|
</testcase>
|
|
52
52
|
</testsuite>
|
|
53
|
-
<testsuite name="ArcGisFeatureProvider" timestamp="2023-
|
|
54
|
-
<testcase name="ArcGisFeatureProvider should initialize with valid data" time="0.
|
|
53
|
+
<testsuite name="ArcGisFeatureProvider" timestamp="2023-04-20T05:15:03" tests="23" file="D:\vsts_a\6\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureProvider.test.js" time="0.513" failures="0">
|
|
54
|
+
<testcase name="ArcGisFeatureProvider should initialize with valid data" time="0.003" classname="should initialize with valid data">
|
|
55
55
|
</testcase>
|
|
56
|
-
<testcase name="ArcGisFeatureProvider should not initialize with no service metadata" time="0.
|
|
56
|
+
<testcase name="ArcGisFeatureProvider should not initialize with no service metadata" time="0.002" classname="should not initialize with no service metadata">
|
|
57
57
|
</testcase>
|
|
58
58
|
<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">
|
|
59
59
|
</testcase>
|
|
60
60
|
<testcase name="ArcGisFeatureProvider should throw query capability not supported" time="0.001" classname="should throw query capability not supported">
|
|
61
61
|
</testcase>
|
|
62
|
-
<testcase name="ArcGisFeatureProvider should pick the first visible sub-layer when multiple visible sub-layers" time="0.
|
|
62
|
+
<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">
|
|
63
63
|
</testcase>
|
|
64
|
-
<testcase name="ArcGisFeatureProvider should pick sub-layers from service metadata if none provided on layer settings" time="0.
|
|
64
|
+
<testcase name="ArcGisFeatureProvider should pick sub-layers from service metadata if none provided on layer settings" time="0.002" classname="should pick sub-layers from service metadata if none provided on layer settings">
|
|
65
65
|
</testcase>
|
|
66
66
|
<testcase name="ArcGisFeatureProvider should throw error if no layers in capabilities" time="0.001" classname="should throw error if no layers in capabilities">
|
|
67
67
|
</testcase>
|
|
68
|
-
<testcase name="ArcGisFeatureProvider should throw if no layer metadata from service" time="0.
|
|
68
|
+
<testcase name="ArcGisFeatureProvider should throw if no layer metadata from service" time="0.003" classname="should throw if no layer metadata from service">
|
|
69
69
|
</testcase>
|
|
70
|
-
<testcase name="ArcGisFeatureProvider should read supported supported format" time="0.
|
|
70
|
+
<testcase name="ArcGisFeatureProvider should read supported supported format" time="0.004" classname="should read supported supported format">
|
|
71
71
|
</testcase>
|
|
72
|
-
<testcase name="ArcGisFeatureProvider should compute minLod/maxLod" time="0.
|
|
72
|
+
<testcase name="ArcGisFeatureProvider should compute minLod/maxLod" time="0.001" classname="should compute minLod/maxLod">
|
|
73
73
|
</testcase>
|
|
74
74
|
<testcase name="ArcGisFeatureProvider should construct empty url" time="0.000" classname="should construct empty url">
|
|
75
75
|
</testcase>
|
|
76
|
-
<testcase name="ArcGisFeatureProvider should construct feature query url" time="0.
|
|
76
|
+
<testcase name="ArcGisFeatureProvider should construct feature query url" time="0.030" classname="should construct feature query url">
|
|
77
77
|
</testcase>
|
|
78
|
-
<testcase name="ArcGisFeatureProvider should log error when getFeatureInfo cannot be performed" time="0.
|
|
78
|
+
<testcase name="ArcGisFeatureProvider should log error when getFeatureInfo cannot be performed" time="0.006" classname="should log error when getFeatureInfo cannot be performed">
|
|
79
79
|
</testcase>
|
|
80
|
-
<testcase name="ArcGisFeatureProvider should process data in getFeatureInfo" time="0.
|
|
80
|
+
<testcase name="ArcGisFeatureProvider should process data in getFeatureInfo" time="0.021" classname="should process data in getFeatureInfo">
|
|
81
81
|
</testcase>
|
|
82
|
-
<testcase name="ArcGisFeatureProvider should log error when exceed transfert limit" time="0.
|
|
82
|
+
<testcase name="ArcGisFeatureProvider should log error when exceed transfert limit" time="0.143" classname="should log error when exceed transfert limit">
|
|
83
83
|
</testcase>
|
|
84
84
|
<testcase name="ArcGisFeatureProvider should log error when exceed exception thrown limit" time="0.013" classname="should log error when exceed exception thrown limit">
|
|
85
85
|
</testcase>
|
|
86
|
-
<testcase name="ArcGisFeatureProvider should debug Feature Geom" time="0.
|
|
86
|
+
<testcase name="ArcGisFeatureProvider should debug Feature Geom" time="0.032" classname="should debug Feature Geom">
|
|
87
87
|
</testcase>
|
|
88
|
-
<testcase name="ArcGisFeatureProvider should compute computeTileWorld2CanvasTransform" time="0.
|
|
88
|
+
<testcase name="ArcGisFeatureProvider should compute computeTileWorld2CanvasTransform" time="0.003" classname="should compute computeTileWorld2CanvasTransform">
|
|
89
89
|
</testcase>
|
|
90
|
-
<testcase name="ArcGisFeatureProvider should loadTile from PBF request" time="0.
|
|
90
|
+
<testcase name="ArcGisFeatureProvider should loadTile from PBF request" time="0.008" classname="should loadTile from PBF request">
|
|
91
91
|
</testcase>
|
|
92
|
-
<testcase name="ArcGisFeatureProvider should loadTile from JSON request" time="0.
|
|
92
|
+
<testcase name="ArcGisFeatureProvider should loadTile from JSON request" time="0.005" classname="should loadTile from JSON request">
|
|
93
93
|
</testcase>
|
|
94
|
-
<testcase name="ArcGisFeatureProvider should make sub request if loadtile request return 'exceedTransferLimit'" time="0.
|
|
94
|
+
<testcase name="ArcGisFeatureProvider should make sub request if loadtile request return 'exceedTransferLimit'" time="0.006" classname="should make sub request if loadtile request return 'exceedTransferLimit'">
|
|
95
95
|
</testcase>
|
|
96
96
|
<testcase name="ArcGisFeatureProvider fetchTile should return undefined when to format defined" time="0.000" classname="fetchTile should return undefined when to format defined">
|
|
97
97
|
</testcase>
|
|
98
98
|
<testcase name="ArcGisFeatureProvider fetchTile should call fetch with the proper URL" time="0.002" classname="fetchTile should call fetch with the proper URL">
|
|
99
99
|
</testcase>
|
|
100
100
|
</testsuite>
|
|
101
|
-
<testsuite name="ArcGisFeatureQuery" timestamp="2023-
|
|
102
|
-
<testcase name="ArcGisFeatureQuery should not apply different switches if not needed" time="0.
|
|
101
|
+
<testsuite name="ArcGisFeatureQuery" timestamp="2023-04-20T05:15:03" tests="3" file="D:\vsts_a\6\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureQuery.test.js" time="0.063" failures="0">
|
|
102
|
+
<testcase name="ArcGisFeatureQuery should not apply different switches if not needed" time="0.004" classname="should not apply different switches if not needed">
|
|
103
103
|
</testcase>
|
|
104
|
-
<testcase name="ArcGisFeatureQuery should not apply different switches if not needed" time="0.
|
|
104
|
+
<testcase name="ArcGisFeatureQuery should not apply different switches if not needed" time="0.007" classname="should not apply different switches if not needed">
|
|
105
105
|
</testcase>
|
|
106
|
-
<testcase name="ArcGisFeatureQuery should not include geometry only when applicable" time="0.
|
|
106
|
+
<testcase name="ArcGisFeatureQuery should not include geometry only when applicable" time="0.003" classname="should not include geometry only when applicable">
|
|
107
107
|
</testcase>
|
|
108
108
|
</testsuite>
|
|
109
|
-
<testsuite name="ArcGisFeatureRenderer" timestamp="2023-
|
|
110
|
-
<testcase name="ArcGisFeatureRenderer should render simple path, stride = 2" time="0.
|
|
109
|
+
<testsuite name="ArcGisFeatureRenderer" timestamp="2023-04-20T05:15:04" tests="12" file="D:\vsts_a\6\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureRenderer.test.js" time="0.035" failures="0">
|
|
110
|
+
<testcase name="ArcGisFeatureRenderer should render simple path, stride = 2" time="0.002" classname="should render simple path, stride = 2">
|
|
111
111
|
</testcase>
|
|
112
|
-
<testcase name="ArcGisFeatureRenderer should render simple filled path" time="0.
|
|
112
|
+
<testcase name="ArcGisFeatureRenderer should render simple filled path" time="0.002" classname="should render simple filled path">
|
|
113
113
|
</testcase>
|
|
114
114
|
<testcase name="ArcGisFeatureRenderer should render simple Path, stride = 3" time="0.001" classname="should render simple Path, stride = 3">
|
|
115
115
|
</testcase>
|
|
116
|
-
<testcase name="ArcGisFeatureRenderer should render multiple Paths, stride = 2" time="0.
|
|
116
|
+
<testcase name="ArcGisFeatureRenderer should render multiple Paths, stride = 2" time="0.002" classname="should render multiple Paths, stride = 2">
|
|
117
117
|
</testcase>
|
|
118
118
|
<testcase name="ArcGisFeatureRenderer should not render invalid with stride value" time="0.000" classname="should not render invalid with stride value">
|
|
119
119
|
</testcase>
|
|
@@ -127,19 +127,19 @@
|
|
|
127
127
|
</testcase>
|
|
128
128
|
<testcase name="ArcGisFeatureRenderer should render multi Point and apply transform, relativeCoords OFF" time="0.001" classname="should render multi Point and apply transform, relativeCoords OFF">
|
|
129
129
|
</testcase>
|
|
130
|
-
<testcase name="ArcGisFeatureRenderer should render multi Point and apply transform, relativeCoords ON" time="0.
|
|
130
|
+
<testcase name="ArcGisFeatureRenderer should render multi Point and apply transform, relativeCoords ON" time="0.004" classname="should render multi Point and apply transform, relativeCoords ON">
|
|
131
131
|
</testcase>
|
|
132
132
|
<testcase name="ArcGisFeatureRenderer should render and apply transform, relativeCoords ON" time="0.001" classname="should render and apply transform, relativeCoords ON">
|
|
133
133
|
</testcase>
|
|
134
134
|
</testsuite>
|
|
135
|
-
<testsuite name="ArcGisFeatureResponse" timestamp="2023-
|
|
135
|
+
<testsuite name="ArcGisFeatureResponse" timestamp="2023-04-20T05:15:04" tests="7" file="D:\vsts_a\6\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisFeatureResponse.test.js" time="0.013" failures="0">
|
|
136
136
|
<testcase name="ArcGisFeatureResponse should return undefined if http error" time="0.000" classname="should return undefined if http error">
|
|
137
137
|
</testcase>
|
|
138
|
-
<testcase name="ArcGisFeatureResponse should return undefined if invalid PBF data" time="0.
|
|
138
|
+
<testcase name="ArcGisFeatureResponse should return undefined if invalid PBF data" time="0.001" classname="should return undefined if invalid PBF data">
|
|
139
139
|
</testcase>
|
|
140
|
-
<testcase name="ArcGisFeatureResponse should create FeatureCollectionPBuffer from PBF data" time="0.
|
|
140
|
+
<testcase name="ArcGisFeatureResponse should create FeatureCollectionPBuffer from PBF data" time="0.004" classname="should create FeatureCollectionPBuffer from PBF data">
|
|
141
141
|
</testcase>
|
|
142
|
-
<testcase name="ArcGisFeatureResponse should report exceededTransferLimit from PBF object" time="0.
|
|
142
|
+
<testcase name="ArcGisFeatureResponse should report exceededTransferLimit from PBF object" time="0.006" classname="should report exceededTransferLimit from PBF object">
|
|
143
143
|
</testcase>
|
|
144
144
|
<testcase name="ArcGisFeatureResponse should return undefined if invalid JSON" time="0.000" classname="should return undefined if invalid JSON">
|
|
145
145
|
</testcase>
|
|
@@ -148,12 +148,12 @@
|
|
|
148
148
|
<testcase name="ArcGisFeatureResponse should report exceededTransferLimit from JSON object" time="0.000" classname="should report exceededTransferLimit from JSON object">
|
|
149
149
|
</testcase>
|
|
150
150
|
</testsuite>
|
|
151
|
-
<testsuite name="ArcGisSymbologyRenderer" timestamp="2023-
|
|
152
|
-
<testcase name="ArcGisSymbologyRenderer should construct renderer from incomplete drawing info" time="0.
|
|
151
|
+
<testsuite name="ArcGisSymbologyRenderer" timestamp="2023-04-20T05:15:04" tests="3" file="D:\vsts_a\6\s\extensions\map-layers-formats\lib\cjs\test\ArcGisFeature\ArcGisSymbologyRenderer.test.js" time="0.006" failures="0">
|
|
152
|
+
<testcase name="ArcGisSymbologyRenderer should construct renderer from incomplete drawing info" time="0.003" classname="should construct renderer from incomplete drawing info">
|
|
153
153
|
</testcase>
|
|
154
|
-
<testcase name="ArcGisSymbologyRenderer should construct renderer from unique value drawing info" time="0.
|
|
154
|
+
<testcase name="ArcGisSymbologyRenderer should construct renderer from unique value drawing info" time="0.001" classname="should construct renderer from unique value drawing info">
|
|
155
155
|
</testcase>
|
|
156
|
-
<testcase name="ArcGisSymbologyRenderer should construct renderer from point symbology drawing info" time="0.
|
|
156
|
+
<testcase name="ArcGisSymbologyRenderer should construct renderer from point symbology drawing info" time="0.001" classname="should construct renderer from point symbology drawing info">
|
|
157
157
|
</testcase>
|
|
158
158
|
</testsuite>
|
|
159
159
|
</testsuites>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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
2
|
Running command:
|
|
3
|
-
node "D:\vsts_a\
|
|
3
|
+
node "D:\vsts_a\6\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
4
|
Arguments to TypeDoc: [
|
|
5
5
|
"--entryPointStrategy",
|
|
6
6
|
"expand",
|
|
7
|
-
"D:\\vsts_a\\
|
|
7
|
+
"D:\\vsts_a\\6\\s\\extensions\\map-layers-formats\\src",
|
|
8
8
|
"--excludePrivate",
|
|
9
9
|
"--hideGenerator",
|
|
10
10
|
"--logLevel",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/map-layers-formats",
|
|
3
|
-
"version": "4.0.0-dev.
|
|
3
|
+
"version": "4.0.0-dev.80",
|
|
4
4
|
"description": "Enables additional map-layers formats in iTwin.js",
|
|
5
5
|
"main": "lib/cjs/map-layers-formats.js",
|
|
6
6
|
"module": "lib/esm/map-layers-formats.js",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/iTwin/itwinjs-core
|
|
11
|
+
"url": "https://github.com/iTwin/itwinjs-core.git",
|
|
12
|
+
"directory": "extensions/map-layers-formats"
|
|
12
13
|
},
|
|
13
14
|
"keywords": [
|
|
14
15
|
"iModel",
|
|
@@ -21,13 +22,13 @@
|
|
|
21
22
|
"url": "http://www.bentley.com"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
|
-
"@itwin/appui-abstract": "4.0.0-dev.
|
|
25
|
-
"@itwin/build-tools": "4.0.0-dev.
|
|
26
|
-
"@itwin/core-bentley": "4.0.0-dev.
|
|
27
|
-
"@itwin/core-common": "4.0.0-dev.
|
|
28
|
-
"@itwin/core-geometry": "4.0.0-dev.
|
|
29
|
-
"@itwin/core-frontend": "4.0.0-dev.
|
|
30
|
-
"@itwin/eslint-plugin": "4.0.0-dev.
|
|
25
|
+
"@itwin/appui-abstract": "4.0.0-dev.80",
|
|
26
|
+
"@itwin/build-tools": "4.0.0-dev.80",
|
|
27
|
+
"@itwin/core-bentley": "4.0.0-dev.80",
|
|
28
|
+
"@itwin/core-common": "4.0.0-dev.80",
|
|
29
|
+
"@itwin/core-geometry": "4.0.0-dev.80",
|
|
30
|
+
"@itwin/core-frontend": "4.0.0-dev.80",
|
|
31
|
+
"@itwin/eslint-plugin": "^4.0.0-dev.33",
|
|
31
32
|
"@types/chai": "4.3.1",
|
|
32
33
|
"@types/chai-as-promised": "^7",
|
|
33
34
|
"@types/google-protobuf": "~3.15.6",
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"@types/sinon-chai": "^3.2.0",
|
|
37
38
|
"chai": "^4.1.2",
|
|
38
39
|
"chai-as-promised": "^7",
|
|
39
|
-
"eslint": "^
|
|
40
|
+
"eslint": "^8.36.0",
|
|
40
41
|
"jsdom": "^19.0.0",
|
|
41
42
|
"jsdom-global": "3.0.2",
|
|
42
43
|
"mocha": "^10.0.0",
|
|
@@ -45,13 +46,13 @@
|
|
|
45
46
|
"sinon": "^9.0.2",
|
|
46
47
|
"sinon-chai": "^3.2.0",
|
|
47
48
|
"source-map-support": "^0.5.6",
|
|
48
|
-
"typescript": "~
|
|
49
|
+
"typescript": "~5.0.2"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
|
-
"@itwin/appui-abstract": "4.0.0-dev.
|
|
52
|
-
"@itwin/core-bentley": "4.0.0-dev.
|
|
53
|
-
"@itwin/core-common": "4.0.0-dev.
|
|
54
|
-
"@itwin/core-geometry": "4.0.0-dev.
|
|
52
|
+
"@itwin/appui-abstract": "4.0.0-dev.80",
|
|
53
|
+
"@itwin/core-bentley": "4.0.0-dev.80",
|
|
54
|
+
"@itwin/core-common": "4.0.0-dev.80",
|
|
55
|
+
"@itwin/core-geometry": "4.0.0-dev.80"
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
57
58
|
"google-protobuf": "~3.20.1"
|
|
@@ -87,8 +88,7 @@
|
|
|
87
88
|
]
|
|
88
89
|
},
|
|
89
90
|
"scripts": {
|
|
90
|
-
"build": "npm run -s build:cjs",
|
|
91
|
-
"build:ci": "npm run -s build && npm run -s build:esm",
|
|
91
|
+
"build": "npm run -s build:cjs && npm run -s build:esm",
|
|
92
92
|
"build:cjs": "tsc 1>&2 --outDir lib/cjs",
|
|
93
93
|
"build:esm": "tsc 1>&2 --module ES2020 --outDir lib/esm",
|
|
94
94
|
"clean": "rimraf lib .rush/temp/package-deps*.json",
|
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
6
|
|
|
7
|
-
/* eslint-disable
|
|
8
|
-
/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
|
|
9
|
-
/* eslint-disable @typescript-eslint/explicit-member-accessibility */
|
|
10
|
-
/* eslint-disable eqeqeq */
|
|
7
|
+
/* eslint-disable */
|
|
11
8
|
|
|
12
9
|
/**
|
|
13
10
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
@@ -38,7 +38,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
38
38
|
return {accessTokenRequired: false, content:NewYorkDataset.serviceCapabilities};
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
sandbox.stub(ArcGisFeatureProvider.prototype, "getLayerMetadata" as any).callsFake(async function _(_layerId:
|
|
41
|
+
sandbox.stub(ArcGisFeatureProvider.prototype, "getLayerMetadata" as any).callsFake(async function _(_layerId: unknown) {
|
|
42
42
|
return NewYorkDataset.streetsLayerCapabilities;
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -121,7 +121,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
121
121
|
};
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (id:
|
|
124
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (id: unknown) {
|
|
125
125
|
if (id === 1 ) {
|
|
126
126
|
return {defaultVisibility:true};
|
|
127
127
|
}
|
|
@@ -157,7 +157,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
157
157
|
sandbox.stub(ArcGisUtilities, "getServiceJson").callsFake(async function _(_url: string, _formatId: string, _userName?: string, _password?: string, _ignoreCache?: boolean, _requireToken?: boolean) {
|
|
158
158
|
return {accessTokenRequired: false, content:{capabilities: "Query"}};
|
|
159
159
|
});
|
|
160
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
160
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
161
161
|
return undefined;
|
|
162
162
|
});
|
|
163
163
|
|
|
@@ -172,7 +172,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
172
172
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
173
173
|
);
|
|
174
174
|
|
|
175
|
-
let getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
175
|
+
let getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
176
176
|
return {defaultVisibility:true, supportedQueryFormats:"PBF, JSON"};
|
|
177
177
|
});
|
|
178
178
|
|
|
@@ -190,7 +190,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
190
190
|
return {accessTokenRequired: false, content: { currentVersion: 11, capabilities: "Query"}};
|
|
191
191
|
});
|
|
192
192
|
getLayerMetadataStub.restore();
|
|
193
|
-
getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
193
|
+
getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
194
194
|
return {defaultVisibility:true, supportsCoordinatesQuantization:true, supportedQueryFormats:"PBF, JSON"};
|
|
195
195
|
});
|
|
196
196
|
|
|
@@ -199,7 +199,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
199
199
|
expect(provider.format).to.equals("PBF");
|
|
200
200
|
|
|
201
201
|
getLayerMetadataStub.restore();
|
|
202
|
-
getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
202
|
+
getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
203
203
|
return {defaultVisibility:true, supportedQueryFormats:"JSON"};
|
|
204
204
|
});
|
|
205
205
|
|
|
@@ -213,7 +213,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
213
213
|
expect(provider.format).to.equals("JSON");
|
|
214
214
|
|
|
215
215
|
getLayerMetadataStub.restore();
|
|
216
|
-
getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
216
|
+
getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
217
217
|
return {defaultVisibility:true, supportedQueryFormats:"JSON"};
|
|
218
218
|
});
|
|
219
219
|
|
|
@@ -222,7 +222,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
222
222
|
expect(provider.format).to.equals("JSON");
|
|
223
223
|
|
|
224
224
|
getLayerMetadataStub.restore();
|
|
225
|
-
getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
225
|
+
getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
226
226
|
return {defaultVisibility:true, supportedQueryFormats:""};
|
|
227
227
|
});
|
|
228
228
|
|
|
@@ -237,7 +237,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
237
237
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
238
238
|
);
|
|
239
239
|
|
|
240
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
240
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
241
241
|
return {
|
|
242
242
|
defaultVisibility:true,
|
|
243
243
|
supportedQueryFormats:"PBF, JSON",
|
|
@@ -272,7 +272,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
272
272
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
273
273
|
);
|
|
274
274
|
|
|
275
|
-
let getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
275
|
+
let getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
276
276
|
return {
|
|
277
277
|
defaultVisibility: true,
|
|
278
278
|
supportedQueryFormats:"PBF, JSON",
|
|
@@ -307,7 +307,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
307
307
|
|
|
308
308
|
// Now turn ON 'supportsCoordinatesQuantization' to ON
|
|
309
309
|
getLayerMetadataStub.restore();
|
|
310
|
-
getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
310
|
+
getLayerMetadataStub = sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
311
311
|
return {
|
|
312
312
|
defaultVisibility: true,
|
|
313
313
|
supportedQueryFormats:"PBF, JSON",
|
|
@@ -370,7 +370,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
370
370
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
371
371
|
);
|
|
372
372
|
|
|
373
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
373
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
374
374
|
return {
|
|
375
375
|
defaultVisibility:true,
|
|
376
376
|
supportedQueryFormats:"PBF, JSON",
|
|
@@ -403,7 +403,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
403
403
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
404
404
|
);
|
|
405
405
|
|
|
406
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
406
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
407
407
|
return {
|
|
408
408
|
defaultVisibility:true,
|
|
409
409
|
supportedQueryFormats:"PBF, JSON",
|
|
@@ -416,7 +416,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
416
416
|
sandbox.stub(ArcGisUtilities, "getServiceJson").callsFake(async function _(_url: string, _formatId: string, _userName?: string, _password?: string, _ignoreCache?: boolean, _requireToken?: boolean) {
|
|
417
417
|
return {accessTokenRequired: false, content:{currentVersion: 11, capabilities: "Query"}};
|
|
418
418
|
});
|
|
419
|
-
sandbox.stub((ArcGISImageryProvider.prototype as any), "fetch").callsFake(async function _(_url:
|
|
419
|
+
sandbox.stub((ArcGISImageryProvider.prototype as any), "fetch").callsFake(async function _(_url: unknown, _options?: unknown) {
|
|
420
420
|
const test = {
|
|
421
421
|
headers: { "content-type" : "pbf"},
|
|
422
422
|
arrayBuffer: async () => {
|
|
@@ -444,7 +444,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
444
444
|
...esriFeatureSampleSource,
|
|
445
445
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
446
446
|
);
|
|
447
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
447
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
448
448
|
return {
|
|
449
449
|
defaultVisibility:true,
|
|
450
450
|
supportedQueryFormats:"PBF, JSON",
|
|
@@ -476,7 +476,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
476
476
|
...esriFeatureSampleSource,
|
|
477
477
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
478
478
|
);
|
|
479
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
479
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
480
480
|
return {
|
|
481
481
|
defaultVisibility:true,
|
|
482
482
|
supportedQueryFormats:"PBF, JSON",
|
|
@@ -508,7 +508,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
508
508
|
...esriFeatureSampleSource,
|
|
509
509
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
510
510
|
);
|
|
511
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
511
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
512
512
|
return {
|
|
513
513
|
defaultVisibility:true,
|
|
514
514
|
supportedQueryFormats:"PBF, JSON",
|
|
@@ -590,7 +590,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
590
590
|
...esriFeatureSampleSource,
|
|
591
591
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
592
592
|
);
|
|
593
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
593
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
594
594
|
return {
|
|
595
595
|
defaultVisibility:true,
|
|
596
596
|
supportedQueryFormats:"PBF",
|
|
@@ -640,7 +640,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
640
640
|
...esriFeatureSampleSource,
|
|
641
641
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
642
642
|
);
|
|
643
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
643
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
644
644
|
return {
|
|
645
645
|
defaultVisibility:true,
|
|
646
646
|
supportedQueryFormats:"JSON",
|
|
@@ -687,7 +687,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
687
687
|
...esriFeatureSampleSource,
|
|
688
688
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
689
689
|
);
|
|
690
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
690
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
691
691
|
return {
|
|
692
692
|
defaultVisibility:true,
|
|
693
693
|
supportedQueryFormats:"JSON",
|
|
@@ -777,7 +777,7 @@ describe("ArcGisFeatureProvider", () => {
|
|
|
777
777
|
subLayers: [{id: 0, name: "layer1", visible:true}, {id:2, name: "layer2", visible:true}]}
|
|
778
778
|
);
|
|
779
779
|
|
|
780
|
-
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id:
|
|
780
|
+
sandbox.stub((ArcGisFeatureProvider.prototype as any), "getLayerMetadata").callsFake(async function (_id: unknown) {
|
|
781
781
|
return {
|
|
782
782
|
defaultVisibility:true,
|
|
783
783
|
supportedQueryFormats:"JSON",
|