@itwin/map-layers-formats 4.0.0-dev.52 → 4.0.0-dev.55
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_ci/state.json +1 -1
- package/.rush/temp/operation/cover/state.json +1 -1
- package/.rush/temp/operation/docs/state.json +1 -1
- package/.rush/temp/package-deps_build_ci.json +3 -3
- package/.rush/temp/package-deps_cover.json +3 -3
- package/.rush/temp/package-deps_docs.json +3 -3
- package/.rush/temp/shrinkwrap-deps.json +44 -51
- 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 -132
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts +14 -14
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js +200 -200
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts +44 -44
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js +421 -421
- 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 -42
- 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 -189
- 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.js +2270 -2270
- 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 -679
- 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/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.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.js +426 -426
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js.map +1 -1
- package/lib/cjs/test/coverage/.nyc_output/186e5c44-6980-4d7a-9c52-bb4c9af0ad82.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/186e5c44-6980-4d7a-9c52-bb4c9af0ad82.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/a4fe7565-9b86-4573-8375-3819c82246d8.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/index.json +1 -1
- package/lib/cjs/test/coverage/cobertura-coverage.xml +39 -39
- package/lib/cjs/test/coverage/lcov-report/index.html +1 -1
- 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 +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeaturePBF.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureProvider.ts.html +1 -1
- 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 +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisSymbologyRenderer.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/index.html +1 -1
- 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 +47 -47
- 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 -128
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts +14 -14
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js +196 -196
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts +44 -44
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js +418 -417
- 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 -38
- 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 -182
- 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.js +2267 -2267
- 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 -677
- 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/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.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.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 +52 -52
- package/map-layers-formats.build.log +2 -2
- package/package.json +13 -13
- package/src/test/ArcGisFeature/ArcGisFeatureProvider.test.ts +21 -21
- package/lib/cjs/test/coverage/.nyc_output/579ba75b-0cfc-4b77-82ad-4f939b76443a.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/579ba75b-0cfc-4b77-82ad-4f939b76443a.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/f0a37b08-29bc-49a6-a608-b82501dccee7.json +0 -1
- /package/lib/cjs/test/coverage/.nyc_output/{f0a37b08-29bc-49a6-a608-b82501dccee7.json → a4fe7565-9b86-4573-8375-3819c82246d8.json} +0 -0
|
@@ -1,58 +1,58 @@
|
|
|
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 { expect } from "chai";
|
|
6
|
-
import * as sinon from "sinon";
|
|
7
|
-
import { NewYorkDataset } from "./NewYorkDataset";
|
|
8
|
-
import { ArcGisSymbologyRenderer, EsriPMS, EsriSFS, EsriSLS } from "../../ArcGisFeature/ArcGisSymbologyRenderer";
|
|
9
|
-
import { PhillyLandmarksDataset } from "./PhillyLandmarksDataset";
|
|
10
|
-
describe("ArcGisSymbologyRenderer", () => {
|
|
11
|
-
const sandbox = sinon.createSandbox();
|
|
12
|
-
afterEach(async () => {
|
|
13
|
-
sandbox.restore();
|
|
14
|
-
});
|
|
15
|
-
const comparePointSymbol = (symbol1, symbol2) => {
|
|
16
|
-
expect(symbol1.type).to.equals(symbol2.type);
|
|
17
|
-
expect(symbol1.contentType).to.equals(symbol2.contentType);
|
|
18
|
-
expect(symbol1.height).to.equals(symbol2.height);
|
|
19
|
-
expect(symbol1.width).to.equals(symbol2.width);
|
|
20
|
-
expect(symbol1.imageData).to.equals(symbol2.imageData);
|
|
21
|
-
};
|
|
22
|
-
const compareLineSymbol = (symbol1, symbol2) => {
|
|
23
|
-
expect(symbol1.type).to.equals(symbol2.type);
|
|
24
|
-
expect(symbol1.color).to.equals(symbol2.color);
|
|
25
|
-
expect(symbol1.width).to.equals(symbol2.width);
|
|
26
|
-
expect(symbol1.style).to.equals(symbol2.style);
|
|
27
|
-
};
|
|
28
|
-
const comparePolySymbol = (symbol1, symbol2) => {
|
|
29
|
-
expect(symbol1.type).to.equals(symbol2.type);
|
|
30
|
-
expect(symbol1.color).to.equals(symbol2.color);
|
|
31
|
-
expect(symbol1.style).to.equals(symbol2.style);
|
|
32
|
-
};
|
|
33
|
-
it("should construct renderer from incomplete drawing info", async () => {
|
|
34
|
-
let provider = new ArcGisSymbologyRenderer("esriGeometryPoint", NewYorkDataset.incompleteDrawingInfo.drawingInfo.renderer);
|
|
35
|
-
comparePointSymbol(provider._symbol, EsriPMS.fromJSON(ArcGisSymbologyRenderer.defaultPMS));
|
|
36
|
-
provider = new ArcGisSymbologyRenderer("esriGeometryMultipoint", NewYorkDataset.incompleteDrawingInfo.drawingInfo.renderer);
|
|
37
|
-
comparePointSymbol(provider._symbol, EsriPMS.fromJSON(ArcGisSymbologyRenderer.defaultPMS));
|
|
38
|
-
provider = new ArcGisSymbologyRenderer("esriGeometryPolyline", NewYorkDataset.incompleteDrawingInfo.drawingInfo.renderer);
|
|
39
|
-
compareLineSymbol(provider._symbol, EsriSLS.fromJSON(ArcGisSymbologyRenderer.defaultSLS));
|
|
40
|
-
provider = new ArcGisSymbologyRenderer("esriGeometryLine", NewYorkDataset.incompleteDrawingInfo.drawingInfo.renderer);
|
|
41
|
-
compareLineSymbol(provider._symbol, EsriSLS.fromJSON(ArcGisSymbologyRenderer.defaultSLS));
|
|
42
|
-
provider = new ArcGisSymbologyRenderer("esriGeometryPolygon", NewYorkDataset.incompleteDrawingInfo.drawingInfo.renderer);
|
|
43
|
-
comparePolySymbol(provider._symbol, EsriSFS.fromJSON(ArcGisSymbologyRenderer.defaultSFS));
|
|
44
|
-
});
|
|
45
|
-
it("should construct renderer from unique value drawing info", async () => {
|
|
46
|
-
const provider = new ArcGisSymbologyRenderer("esriGeometryPoint", NewYorkDataset.uniqueValueDrawingInfo.drawingInfo.renderer);
|
|
47
|
-
comparePointSymbol(provider._symbol, NewYorkDataset.uniqueValueDrawingInfo.drawingInfo.renderer.defaultSymbol);
|
|
48
|
-
});
|
|
49
|
-
it("should construct renderer from point symbology drawing info", async () => {
|
|
50
|
-
let provider = new ArcGisSymbologyRenderer("esriGeometryPoint", PhillyLandmarksDataset.pointDrawingInfo.drawingInfo.renderer);
|
|
51
|
-
comparePointSymbol(provider._symbol, PhillyLandmarksDataset.pointDrawingInfo.drawingInfo.renderer.symbol);
|
|
52
|
-
provider = new ArcGisSymbologyRenderer("esriGeometryPolyline", PhillyLandmarksDataset.lineDrawingInfo.drawingInfo.renderer);
|
|
53
|
-
comparePointSymbol(provider._symbol, PhillyLandmarksDataset.lineDrawingInfo.drawingInfo.renderer.symbol);
|
|
54
|
-
provider = new ArcGisSymbologyRenderer("esriGeometryPolygon", PhillyLandmarksDataset.polygonDrawingInfo.drawingInfo.renderer);
|
|
55
|
-
comparePointSymbol(provider._symbol, PhillyLandmarksDataset.polygonDrawingInfo.drawingInfo.renderer.symbol);
|
|
56
|
-
});
|
|
57
|
-
});
|
|
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 { expect } from "chai";
|
|
6
|
+
import * as sinon from "sinon";
|
|
7
|
+
import { NewYorkDataset } from "./NewYorkDataset";
|
|
8
|
+
import { ArcGisSymbologyRenderer, EsriPMS, EsriSFS, EsriSLS } from "../../ArcGisFeature/ArcGisSymbologyRenderer";
|
|
9
|
+
import { PhillyLandmarksDataset } from "./PhillyLandmarksDataset";
|
|
10
|
+
describe("ArcGisSymbologyRenderer", () => {
|
|
11
|
+
const sandbox = sinon.createSandbox();
|
|
12
|
+
afterEach(async () => {
|
|
13
|
+
sandbox.restore();
|
|
14
|
+
});
|
|
15
|
+
const comparePointSymbol = (symbol1, symbol2) => {
|
|
16
|
+
expect(symbol1.type).to.equals(symbol2.type);
|
|
17
|
+
expect(symbol1.contentType).to.equals(symbol2.contentType);
|
|
18
|
+
expect(symbol1.height).to.equals(symbol2.height);
|
|
19
|
+
expect(symbol1.width).to.equals(symbol2.width);
|
|
20
|
+
expect(symbol1.imageData).to.equals(symbol2.imageData);
|
|
21
|
+
};
|
|
22
|
+
const compareLineSymbol = (symbol1, symbol2) => {
|
|
23
|
+
expect(symbol1.type).to.equals(symbol2.type);
|
|
24
|
+
expect(symbol1.color).to.equals(symbol2.color);
|
|
25
|
+
expect(symbol1.width).to.equals(symbol2.width);
|
|
26
|
+
expect(symbol1.style).to.equals(symbol2.style);
|
|
27
|
+
};
|
|
28
|
+
const comparePolySymbol = (symbol1, symbol2) => {
|
|
29
|
+
expect(symbol1.type).to.equals(symbol2.type);
|
|
30
|
+
expect(symbol1.color).to.equals(symbol2.color);
|
|
31
|
+
expect(symbol1.style).to.equals(symbol2.style);
|
|
32
|
+
};
|
|
33
|
+
it("should construct renderer from incomplete drawing info", async () => {
|
|
34
|
+
let provider = new ArcGisSymbologyRenderer("esriGeometryPoint", NewYorkDataset.incompleteDrawingInfo.drawingInfo.renderer);
|
|
35
|
+
comparePointSymbol(provider._symbol, EsriPMS.fromJSON(ArcGisSymbologyRenderer.defaultPMS));
|
|
36
|
+
provider = new ArcGisSymbologyRenderer("esriGeometryMultipoint", NewYorkDataset.incompleteDrawingInfo.drawingInfo.renderer);
|
|
37
|
+
comparePointSymbol(provider._symbol, EsriPMS.fromJSON(ArcGisSymbologyRenderer.defaultPMS));
|
|
38
|
+
provider = new ArcGisSymbologyRenderer("esriGeometryPolyline", NewYorkDataset.incompleteDrawingInfo.drawingInfo.renderer);
|
|
39
|
+
compareLineSymbol(provider._symbol, EsriSLS.fromJSON(ArcGisSymbologyRenderer.defaultSLS));
|
|
40
|
+
provider = new ArcGisSymbologyRenderer("esriGeometryLine", NewYorkDataset.incompleteDrawingInfo.drawingInfo.renderer);
|
|
41
|
+
compareLineSymbol(provider._symbol, EsriSLS.fromJSON(ArcGisSymbologyRenderer.defaultSLS));
|
|
42
|
+
provider = new ArcGisSymbologyRenderer("esriGeometryPolygon", NewYorkDataset.incompleteDrawingInfo.drawingInfo.renderer);
|
|
43
|
+
comparePolySymbol(provider._symbol, EsriSFS.fromJSON(ArcGisSymbologyRenderer.defaultSFS));
|
|
44
|
+
});
|
|
45
|
+
it("should construct renderer from unique value drawing info", async () => {
|
|
46
|
+
const provider = new ArcGisSymbologyRenderer("esriGeometryPoint", NewYorkDataset.uniqueValueDrawingInfo.drawingInfo.renderer);
|
|
47
|
+
comparePointSymbol(provider._symbol, NewYorkDataset.uniqueValueDrawingInfo.drawingInfo.renderer.defaultSymbol);
|
|
48
|
+
});
|
|
49
|
+
it("should construct renderer from point symbology drawing info", async () => {
|
|
50
|
+
let provider = new ArcGisSymbologyRenderer("esriGeometryPoint", PhillyLandmarksDataset.pointDrawingInfo.drawingInfo.renderer);
|
|
51
|
+
comparePointSymbol(provider._symbol, PhillyLandmarksDataset.pointDrawingInfo.drawingInfo.renderer.symbol);
|
|
52
|
+
provider = new ArcGisSymbologyRenderer("esriGeometryPolyline", PhillyLandmarksDataset.lineDrawingInfo.drawingInfo.renderer);
|
|
53
|
+
comparePointSymbol(provider._symbol, PhillyLandmarksDataset.lineDrawingInfo.drawingInfo.renderer.symbol);
|
|
54
|
+
provider = new ArcGisSymbologyRenderer("esriGeometryPolygon", PhillyLandmarksDataset.polygonDrawingInfo.drawingInfo.renderer);
|
|
55
|
+
comparePointSymbol(provider._symbol, PhillyLandmarksDataset.polygonDrawingInfo.drawingInfo.renderer.symbol);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
58
|
//# sourceMappingURL=ArcGisSymbologyRenderer.test.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const fakeContext: CanvasRenderingContext2D;
|
|
2
|
-
export declare const esriFeatureSampleSource: {
|
|
3
|
-
name: string;
|
|
4
|
-
url: string;
|
|
5
|
-
formatId: string;
|
|
6
|
-
};
|
|
1
|
+
export declare const fakeContext: CanvasRenderingContext2D;
|
|
2
|
+
export declare const esriFeatureSampleSource: {
|
|
3
|
+
name: string;
|
|
4
|
+
url: string;
|
|
5
|
+
formatId: string;
|
|
6
|
+
};
|
|
7
7
|
//# sourceMappingURL=Mocks.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
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 { ArcGisFeatureMapLayerFormat } from "../../ArcGisFeature/ArcGisFeatureFormat";
|
|
6
|
-
export const fakeContext = {
|
|
7
|
-
beginPath: () => { },
|
|
8
|
-
closePath: () => { },
|
|
9
|
-
moveTo: (_x, _y) => { },
|
|
10
|
-
lineTo: (_x, _y) => { },
|
|
11
|
-
fill: (_fillRule) => { },
|
|
12
|
-
stroke: () => { },
|
|
13
|
-
drawImage: (_image, _dx, _dy) => { },
|
|
14
|
-
};
|
|
15
|
-
export const esriFeatureSampleSource = { name: "dummyFeatureLayer", url: "https://dummy.com", formatId: ArcGisFeatureMapLayerFormat.formatId };
|
|
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 { ArcGisFeatureMapLayerFormat } from "../../ArcGisFeature/ArcGisFeatureFormat";
|
|
6
|
+
export const fakeContext = {
|
|
7
|
+
beginPath: () => { },
|
|
8
|
+
closePath: () => { },
|
|
9
|
+
moveTo: (_x, _y) => { },
|
|
10
|
+
lineTo: (_x, _y) => { },
|
|
11
|
+
fill: (_fillRule) => { },
|
|
12
|
+
stroke: () => { },
|
|
13
|
+
drawImage: (_image, _dx, _dy) => { },
|
|
14
|
+
};
|
|
15
|
+
export const esriFeatureSampleSource = { name: "dummyFeatureLayer", url: "https://dummy.com", formatId: ArcGisFeatureMapLayerFormat.formatId };
|
|
16
16
|
//# sourceMappingURL=Mocks.js.map
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
export declare class NewYorkDataset {
|
|
2
|
-
static serviceCapabilities: any;
|
|
3
|
-
static streetsLayerCapabilities: any;
|
|
4
|
-
static incompleteDrawingInfo: {
|
|
5
|
-
drawingInfo: {
|
|
6
|
-
renderer: {
|
|
7
|
-
type: string;
|
|
8
|
-
field1: string;
|
|
9
|
-
field2: null;
|
|
10
|
-
field3: null;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
static uniqueValueDrawingInfo: {
|
|
15
|
-
drawingInfo: {
|
|
16
|
-
renderer: {
|
|
17
|
-
type: string;
|
|
18
|
-
field1: string;
|
|
19
|
-
field2: null;
|
|
20
|
-
field3: null;
|
|
21
|
-
defaultSymbol: {
|
|
22
|
-
type: string;
|
|
23
|
-
url: string;
|
|
24
|
-
imageData: string;
|
|
25
|
-
contentType: string;
|
|
26
|
-
width: number;
|
|
27
|
-
height: number;
|
|
28
|
-
angle: number;
|
|
29
|
-
xoffset: number;
|
|
30
|
-
yoffset: number;
|
|
31
|
-
};
|
|
32
|
-
defaultLabel: string;
|
|
33
|
-
uniqueValueInfos: {
|
|
34
|
-
symbol: {
|
|
35
|
-
type: string;
|
|
36
|
-
url: string;
|
|
37
|
-
imageData: string;
|
|
38
|
-
contentType: string;
|
|
39
|
-
width: number;
|
|
40
|
-
height: number;
|
|
41
|
-
angle: number;
|
|
42
|
-
xoffset: number;
|
|
43
|
-
yoffset: number;
|
|
44
|
-
};
|
|
45
|
-
value: string;
|
|
46
|
-
label: string;
|
|
47
|
-
description: string;
|
|
48
|
-
}[];
|
|
49
|
-
fieldDelimiter: string;
|
|
50
|
-
};
|
|
51
|
-
transparency: number;
|
|
52
|
-
labelingInfo: null;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}
|
|
1
|
+
export declare class NewYorkDataset {
|
|
2
|
+
static serviceCapabilities: any;
|
|
3
|
+
static streetsLayerCapabilities: any;
|
|
4
|
+
static incompleteDrawingInfo: {
|
|
5
|
+
drawingInfo: {
|
|
6
|
+
renderer: {
|
|
7
|
+
type: string;
|
|
8
|
+
field1: string;
|
|
9
|
+
field2: null;
|
|
10
|
+
field3: null;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
static uniqueValueDrawingInfo: {
|
|
15
|
+
drawingInfo: {
|
|
16
|
+
renderer: {
|
|
17
|
+
type: string;
|
|
18
|
+
field1: string;
|
|
19
|
+
field2: null;
|
|
20
|
+
field3: null;
|
|
21
|
+
defaultSymbol: {
|
|
22
|
+
type: string;
|
|
23
|
+
url: string;
|
|
24
|
+
imageData: string;
|
|
25
|
+
contentType: string;
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
angle: number;
|
|
29
|
+
xoffset: number;
|
|
30
|
+
yoffset: number;
|
|
31
|
+
};
|
|
32
|
+
defaultLabel: string;
|
|
33
|
+
uniqueValueInfos: {
|
|
34
|
+
symbol: {
|
|
35
|
+
type: string;
|
|
36
|
+
url: string;
|
|
37
|
+
imageData: string;
|
|
38
|
+
contentType: string;
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
angle: number;
|
|
42
|
+
xoffset: number;
|
|
43
|
+
yoffset: number;
|
|
44
|
+
};
|
|
45
|
+
value: string;
|
|
46
|
+
label: string;
|
|
47
|
+
description: string;
|
|
48
|
+
}[];
|
|
49
|
+
fieldDelimiter: string;
|
|
50
|
+
};
|
|
51
|
+
transparency: number;
|
|
52
|
+
labelingInfo: null;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
56
|
//# sourceMappingURL=NewYorkDataset.d.ts.map
|