gisviewer-vue3-arcgis 1.0.235 → 1.0.237
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/es/src/gis-map/utils/common-utils.d.ts +2 -0
- package/es/src/gis-map/utils/common-utils.mjs +37 -23
- package/es/src/gis-map/utils/detect-gpu.mjs +4 -4
- package/es/src/gis-map/utils/signal-control-area/district-controller.d.ts +2 -0
- package/es/src/gis-map/utils/signal-control-area/district-controller.mjs +42 -26
- package/es/src/gis-map/utils/signal-control-area/district-renderer.d.ts +1 -2
- package/es/src/gis-map/utils/signal-control-area/district-renderer.mjs +19 -24
- package/es/src/gis-map/utils/signal-control-area/layer-symbol.mjs +30 -34
- package/es/src/gis-map/utils/signal-control-area/show-area.d.ts +0 -7
- package/es/src/gis-map/utils/signal-control-area/show-area.mjs +39 -72
- package/es/src/gis-map/utils/signal-control-area/signal-renderer.d.ts +3 -4
- package/es/src/gis-map/utils/signal-control-area/signal-renderer.mjs +36 -37
- package/es/src/gis-map/utils/signal-control-area/sub-district-renderer.d.ts +13 -6
- package/es/src/gis-map/utils/signal-control-area/sub-district-renderer.mjs +95 -107
- package/es/src/types/index.d.ts +6 -0
- package/lib/src/gis-map/utils/common-utils.d.ts +2 -0
- package/lib/src/gis-map/utils/common-utils.js +1 -1
- package/lib/src/gis-map/utils/detect-gpu.js +1 -1
- package/lib/src/gis-map/utils/signal-control-area/district-controller.d.ts +2 -0
- package/lib/src/gis-map/utils/signal-control-area/district-controller.js +1 -1
- package/lib/src/gis-map/utils/signal-control-area/district-renderer.d.ts +1 -2
- package/lib/src/gis-map/utils/signal-control-area/district-renderer.js +1 -1
- package/lib/src/gis-map/utils/signal-control-area/layer-symbol.js +1 -1
- package/lib/src/gis-map/utils/signal-control-area/show-area.d.ts +0 -7
- package/lib/src/gis-map/utils/signal-control-area/show-area.js +1 -1
- package/lib/src/gis-map/utils/signal-control-area/signal-renderer.d.ts +3 -4
- package/lib/src/gis-map/utils/signal-control-area/signal-renderer.js +1 -1
- package/lib/src/gis-map/utils/signal-control-area/sub-district-renderer.d.ts +13 -6
- package/lib/src/gis-map/utils/signal-control-area/sub-district-renderer.js +1 -1
- package/lib/src/types/index.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Point, Polygon, Polyline } from '@arcgis/core/geometry';
|
|
2
|
+
import Graphic from '@arcgis/core/Graphic';
|
|
2
3
|
import * as turf from '@turf/helpers';
|
|
3
4
|
export default class CommonUtils {
|
|
4
5
|
/**
|
|
@@ -89,4 +90,5 @@ export default class CommonUtils {
|
|
|
89
90
|
* @returns
|
|
90
91
|
*/
|
|
91
92
|
static getCenterPointInLine(line: number[][]): number[];
|
|
93
|
+
static viewGoto(view: __esri.MapView | __esri.SceneView, target: Graphic[]): Promise<void>;
|
|
92
94
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Point as L, Polyline as
|
|
2
|
-
import * as
|
|
1
|
+
import { Point as L, Polyline as g } from "@arcgis/core/geometry";
|
|
2
|
+
import * as f from "@arcgis/core/geometry/geometryEngineAsync";
|
|
3
3
|
import * as l from "@arcgis/core/geometry/support/webMercatorUtils";
|
|
4
4
|
import p from "@turf/bearing";
|
|
5
5
|
import u from "@turf/destination";
|
|
6
|
-
import * as
|
|
6
|
+
import * as c from "@turf/helpers";
|
|
7
7
|
import d from "@turf/length";
|
|
8
8
|
import O from "@turf/line-slice-along";
|
|
9
9
|
import w from "pako";
|
|
10
|
-
import
|
|
10
|
+
import h from "proj4";
|
|
11
11
|
class s {
|
|
12
12
|
/**
|
|
13
13
|
* 得到某个点在一定方向、距离之外的另一个点
|
|
@@ -17,7 +17,7 @@ class s {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
static destinationWithPoint(t, e, n) {
|
|
20
|
-
const r =
|
|
20
|
+
const r = c.point([t.x, t.y]), i = u(r, n, e, {
|
|
21
21
|
units: "meters"
|
|
22
22
|
});
|
|
23
23
|
return new L({
|
|
@@ -31,7 +31,7 @@ class s {
|
|
|
31
31
|
* @returns
|
|
32
32
|
*/
|
|
33
33
|
static angleOfLine(t) {
|
|
34
|
-
const e = t.paths[0], n =
|
|
34
|
+
const e = t.paths[0], n = c.point(e[0]), r = c.point(e[e.length - 1]);
|
|
35
35
|
return p(n, r);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
@@ -40,14 +40,14 @@ class s {
|
|
|
40
40
|
* @param distance
|
|
41
41
|
*/
|
|
42
42
|
static extendLineInTowDir(t, e) {
|
|
43
|
-
const n = t.paths[0], r =
|
|
43
|
+
const n = t.paths[0], r = c.point(n[0]), i = c.point(n[1]), o = p(i, r), a = u(r, e, o, {
|
|
44
44
|
units: "meters"
|
|
45
|
-
}),
|
|
45
|
+
}), y = o > 0 ? o - 180 : o + 180, P = u(i, e, y, {
|
|
46
46
|
units: "meters"
|
|
47
47
|
});
|
|
48
|
-
return new
|
|
48
|
+
return new g({
|
|
49
49
|
paths: [
|
|
50
|
-
[
|
|
50
|
+
[a.geometry.coordinates, P.geometry.coordinates]
|
|
51
51
|
]
|
|
52
52
|
});
|
|
53
53
|
}
|
|
@@ -58,7 +58,7 @@ class s {
|
|
|
58
58
|
* @returns
|
|
59
59
|
*/
|
|
60
60
|
static async getIntersectPointOfTwoLines(t, e) {
|
|
61
|
-
const n = await
|
|
61
|
+
const n = await f.intersectLinesToPoints(
|
|
62
62
|
t,
|
|
63
63
|
e
|
|
64
64
|
);
|
|
@@ -84,7 +84,7 @@ class s {
|
|
|
84
84
|
e,
|
|
85
85
|
i
|
|
86
86
|
), await s.pointDistance(r) > 2.5) {
|
|
87
|
-
const o = new
|
|
87
|
+
const o = new g({ paths: [r] });
|
|
88
88
|
return (await s.getOffsetLine(
|
|
89
89
|
o,
|
|
90
90
|
-i
|
|
@@ -102,8 +102,8 @@ class s {
|
|
|
102
102
|
static async pointDistance(t) {
|
|
103
103
|
if (t.length < 2)
|
|
104
104
|
return 0;
|
|
105
|
-
const e = new
|
|
106
|
-
return await
|
|
105
|
+
const e = new g({ paths: [t] });
|
|
106
|
+
return await f.geodesicLength(e, "meters");
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
109
|
* 线按一定距离平移之后,与面相交的两个端点
|
|
@@ -114,10 +114,10 @@ class s {
|
|
|
114
114
|
*/
|
|
115
115
|
static async getIntersectPointOfLineAndPolygon(t, e, n = 0) {
|
|
116
116
|
n !== 0 && (t = await s.getOffsetLine(t, n));
|
|
117
|
-
const r = await
|
|
118
|
-
if (r instanceof
|
|
119
|
-
const i = r.paths[0], o = i[0],
|
|
120
|
-
return [o,
|
|
117
|
+
const r = await f.intersect(t, e);
|
|
118
|
+
if (r instanceof g) {
|
|
119
|
+
const i = r.paths[0], o = i[0], a = i[i.length - 1];
|
|
120
|
+
return [o, a];
|
|
121
121
|
}
|
|
122
122
|
return [];
|
|
123
123
|
}
|
|
@@ -128,7 +128,7 @@ class s {
|
|
|
128
128
|
* @returns 平移后的polyline
|
|
129
129
|
*/
|
|
130
130
|
static async getOffsetLine(t, e) {
|
|
131
|
-
const n = l.geographicToWebMercator(t), r = await
|
|
131
|
+
const n = l.geographicToWebMercator(t), r = await f.offset(
|
|
132
132
|
n,
|
|
133
133
|
e,
|
|
134
134
|
"meters"
|
|
@@ -185,7 +185,7 @@ class s {
|
|
|
185
185
|
static transformLineProjection(t) {
|
|
186
186
|
try {
|
|
187
187
|
return t.map(
|
|
188
|
-
(e) =>
|
|
188
|
+
(e) => h(s.geoReference).inverse([
|
|
189
189
|
e[0] - s.xOffset,
|
|
190
190
|
e[1] - s.yOffset
|
|
191
191
|
])
|
|
@@ -199,7 +199,7 @@ class s {
|
|
|
199
199
|
}
|
|
200
200
|
static transformPointProjection(t) {
|
|
201
201
|
try {
|
|
202
|
-
return
|
|
202
|
+
return h(s.geoReference).inverse([
|
|
203
203
|
t[0] - s.xOffset,
|
|
204
204
|
t[1] - s.yOffset
|
|
205
205
|
]);
|
|
@@ -214,7 +214,7 @@ class s {
|
|
|
214
214
|
return Math.abs(t[0] - e[0]) < Number.EPSILON && Math.abs(t[1] - e[1]) < Number.EPSILON;
|
|
215
215
|
}
|
|
216
216
|
static getExtensionLine(t, e, n) {
|
|
217
|
-
const r =
|
|
217
|
+
const r = c.point(t), i = c.point(e), o = p(r, i);
|
|
218
218
|
return u(i, n, o, { units: "meters" }).geometry.coordinates;
|
|
219
219
|
}
|
|
220
220
|
static isCoordinateValid(t) {
|
|
@@ -226,11 +226,25 @@ class s {
|
|
|
226
226
|
* @returns
|
|
227
227
|
*/
|
|
228
228
|
static getCenterPointInLine(t) {
|
|
229
|
-
const e =
|
|
229
|
+
const e = c.lineString(t), n = d(e, { units: "meters" }) / 2, r = O(e, 0, n, {
|
|
230
230
|
units: "meters"
|
|
231
231
|
});
|
|
232
232
|
return r.geometry.coordinates[r.geometry.coordinates.length - 1];
|
|
233
233
|
}
|
|
234
|
+
static async viewGoto(t, e) {
|
|
235
|
+
var i;
|
|
236
|
+
if (localStorage.getItem("gpu") !== "Unknown")
|
|
237
|
+
await t.goTo(e, {
|
|
238
|
+
duration: 1e3
|
|
239
|
+
});
|
|
240
|
+
else if (e.length > 0) {
|
|
241
|
+
const o = e.map((a) => a.geometry).filter((a) => a);
|
|
242
|
+
if (o.length > 0) {
|
|
243
|
+
const a = (i = await f.union(o)) == null ? void 0 : i.extent;
|
|
244
|
+
a && (t.extent = a);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
234
248
|
}
|
|
235
249
|
export {
|
|
236
250
|
s as default
|
|
@@ -35,10 +35,10 @@ const s = (e) => {
|
|
|
35
35
|
return "Unknown";
|
|
36
36
|
}
|
|
37
37
|
return i(e);
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
return console.log("GPU:", e), localStorage.setItem("gpu", e), e;
|
|
38
|
+
}, a = () => {
|
|
39
|
+
let e = l();
|
|
40
|
+
return console.log("GPU:", e), (!e.toLowerCase().includes("nvidia") && !e.toLowerCase().includes("amd") && !e.toLowerCase().includes("intel") || e.toLowerCase().includes("520") || e.toLowerCase().includes("swiftshader")) && (console.log("GPU is not supported or unknown:", e), e = "Unknown"), localStorage.setItem("gpu", e), e;
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
a as default
|
|
44
44
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IDistrictRoad } from 'packages/components/src/types';
|
|
1
2
|
interface ICross {
|
|
2
3
|
id: string;
|
|
3
4
|
name: string;
|
|
@@ -18,6 +19,7 @@ export default class DistrictController {
|
|
|
18
19
|
areaColor: [number, number, number];
|
|
19
20
|
signalCount: number;
|
|
20
21
|
subDistrictCount: number;
|
|
22
|
+
roadConnections: IDistrictRoad[];
|
|
21
23
|
constructor(params: any, style: string);
|
|
22
24
|
/**
|
|
23
25
|
* 获取区控/子区下的所有信号机
|
|
@@ -1,12 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import h from "pako";
|
|
2
|
+
import c from "../common-utils.mjs";
|
|
3
|
+
class e {
|
|
4
|
+
constructor(o, s) {
|
|
5
|
+
this.parentName = "", this.signals = [], this.subDistricts = [], this.areaColor = this.getDarkNonGrayColor(), this.signalCount = 0, this.subDistrictCount = 0, this.roadConnections = [], this.id = o.name, this.name = o.areaDesc, this.parentId = o.parentId, s === "alarm" && (this.areaColor = [255, 0, 0]);
|
|
6
|
+
for (const t of o.children)
|
|
6
7
|
if (t.children) {
|
|
7
|
-
const i = new
|
|
8
|
-
i.id = t.id, i.name = `SS ${t.name}`, i.parentId = this.id, i.parentName = this.name, i.areaColor = this.getDarkNonGrayColor(t.id), this.subDistricts.push(i), this.subDistrictCount++, this.signalCount += i.signalCount
|
|
9
|
-
|
|
8
|
+
const i = new e(t, s);
|
|
9
|
+
if (i.id = t.id, i.name = `SS ${t.name}`, i.parentId = this.id, i.parentName = this.name, i.areaColor = this.getDarkNonGrayColor(t.id), this.subDistricts.push(i), this.subDistrictCount++, this.signalCount += i.signalCount, t.mapConnectList)
|
|
10
|
+
try {
|
|
11
|
+
const a = t.mapConnectList, n = new Uint8Array(
|
|
12
|
+
window.atob(a).split("").map((r) => r.charCodeAt(0))
|
|
13
|
+
), l = h.inflate(n, { to: "string" }), d = JSON.parse(l);
|
|
14
|
+
i.roadConnections.push(
|
|
15
|
+
...d.map((r) => ({
|
|
16
|
+
id: r.roadsectId,
|
|
17
|
+
coordinates: JSON.parse(r.geomData).coordinates,
|
|
18
|
+
districtId: i.parentId,
|
|
19
|
+
subDistrictId: i.id
|
|
20
|
+
}))
|
|
21
|
+
), console.log(i.roadConnections);
|
|
22
|
+
} catch (a) {
|
|
23
|
+
console.error("解压子区路段连接信息失败:", a);
|
|
24
|
+
}
|
|
25
|
+
} else if (c.isCoordinateValid(t)) {
|
|
10
26
|
const i = {
|
|
11
27
|
id: t.id,
|
|
12
28
|
name: t.name,
|
|
@@ -25,29 +41,29 @@ class r {
|
|
|
25
41
|
* @returns
|
|
26
42
|
*/
|
|
27
43
|
getAllSignalCoordinates() {
|
|
28
|
-
const
|
|
29
|
-
for (const
|
|
30
|
-
|
|
31
|
-
for (const
|
|
32
|
-
|
|
33
|
-
return
|
|
44
|
+
const o = [];
|
|
45
|
+
for (const s of this.signals)
|
|
46
|
+
o.push([s.longitude, s.latitude]);
|
|
47
|
+
for (const s of this.subDistricts)
|
|
48
|
+
o.push(...s.getAllSignalCoordinates());
|
|
49
|
+
return o;
|
|
34
50
|
}
|
|
35
|
-
getDarkNonGrayColor(
|
|
36
|
-
let
|
|
37
|
-
if (
|
|
38
|
-
const a = this.cyrb53(
|
|
39
|
-
|
|
51
|
+
getDarkNonGrayColor(o) {
|
|
52
|
+
let s, t, i;
|
|
53
|
+
if (o) {
|
|
54
|
+
const a = this.cyrb53(o);
|
|
55
|
+
s = ((a & 16711680) >> 16) % 200, t = ((a & 65280) >> 8) % 200, i = (a & 255) % 200;
|
|
40
56
|
} else
|
|
41
|
-
|
|
42
|
-
return [
|
|
57
|
+
s = Math.floor(Math.random() * 256), t = Math.floor(Math.random() * 256), i = Math.floor(Math.random() * 256);
|
|
58
|
+
return [s, t, i];
|
|
43
59
|
}
|
|
44
|
-
cyrb53(
|
|
45
|
-
let t = 3735928559 ^
|
|
46
|
-
for (let a = 0, n; a <
|
|
47
|
-
n =
|
|
60
|
+
cyrb53(o, s = 0) {
|
|
61
|
+
let t = 3735928559 ^ s, i = 1103547991 ^ s;
|
|
62
|
+
for (let a = 0, n; a < o.length; a++)
|
|
63
|
+
n = o.charCodeAt(a), t = Math.imul(t ^ n, 2654435761), i = Math.imul(i ^ n, 1597334677);
|
|
48
64
|
return t = Math.imul(t ^ t >>> 16, 2246822507), t ^= Math.imul(i ^ i >>> 13, 3266489909), i = Math.imul(i ^ i >>> 16, 2246822507), i ^= Math.imul(t ^ t >>> 13, 3266489909), 4294967296 * (2097151 & i) + (t >>> 0);
|
|
49
65
|
}
|
|
50
66
|
}
|
|
51
67
|
export {
|
|
52
|
-
|
|
68
|
+
e as default
|
|
53
69
|
};
|
|
@@ -7,8 +7,7 @@ export default class DistrictRenderer {
|
|
|
7
7
|
/** 区控实线图层,区控符号由半透明实线+不透明虚线组成 */
|
|
8
8
|
private districtControllerSolidLayer;
|
|
9
9
|
style: string;
|
|
10
|
-
|
|
11
|
-
constructor(view: __esri.MapView | __esri.SceneView, hasGpu: boolean);
|
|
10
|
+
constructor(view: __esri.MapView | __esri.SceneView);
|
|
12
11
|
/**
|
|
13
12
|
* 显示区控
|
|
14
13
|
* @param controllers 区控控制器数组
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import u from "@arcgis/core/Graphic";
|
|
2
|
-
import
|
|
2
|
+
import l from "@arcgis/core/layers/FeatureLayer";
|
|
3
3
|
import * as a from "@turf/helpers";
|
|
4
|
-
import { convex as
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
), this.districtControllerDashLayer.spatialReference = t.spatialReference, this.districtControllerSolidLayer = new n(
|
|
4
|
+
import { convex as p, buffer as f } from "@turf/turf";
|
|
5
|
+
import n from "../common-utils.mjs";
|
|
6
|
+
import { districtDashLineLayerOptions as C, districtSolidLineLayerOptions as L } from "./layer-symbol.mjs";
|
|
7
|
+
class x {
|
|
8
|
+
constructor(t) {
|
|
9
|
+
this.style = "", this.view = t, this.districtControllerDashLayer = new l(
|
|
11
10
|
C
|
|
11
|
+
), this.districtControllerDashLayer.spatialReference = t.spatialReference, this.districtControllerSolidLayer = new l(
|
|
12
|
+
L
|
|
12
13
|
), this.districtControllerSolidLayer.spatialReference = t.spatialReference, this.districtControllerSolidLayer.popupEnabled = !0, this.view.map.addMany([
|
|
13
14
|
this.districtControllerDashLayer,
|
|
14
15
|
this.districtControllerSolidLayer
|
|
@@ -29,20 +30,20 @@ class S {
|
|
|
29
30
|
o = a.lineString(s);
|
|
30
31
|
else {
|
|
31
32
|
const h = a.featureCollection(
|
|
32
|
-
s.map((
|
|
33
|
+
s.map((y) => a.point(y))
|
|
33
34
|
);
|
|
34
|
-
o =
|
|
35
|
+
o = p(h), o || (o = a.lineString(s));
|
|
35
36
|
}
|
|
36
37
|
else if (s.length === 1)
|
|
37
38
|
o = a.point(s[0]);
|
|
38
39
|
else
|
|
39
40
|
continue;
|
|
40
|
-
const
|
|
41
|
+
const d = f(o.geometry, 200, {
|
|
41
42
|
units: "meters"
|
|
42
|
-
}),
|
|
43
|
+
}), c = new u({
|
|
43
44
|
geometry: {
|
|
44
45
|
type: "polyline",
|
|
45
|
-
paths:
|
|
46
|
+
paths: d.geometry.coordinates
|
|
46
47
|
},
|
|
47
48
|
attributes: {
|
|
48
49
|
ObjectID: e,
|
|
@@ -56,15 +57,13 @@ class S {
|
|
|
56
57
|
type: "district"
|
|
57
58
|
}
|
|
58
59
|
});
|
|
59
|
-
i.push(
|
|
60
|
+
i.push(c);
|
|
60
61
|
}
|
|
61
62
|
await this.districtControllerDashLayer.applyEdits({
|
|
62
63
|
addFeatures: i
|
|
63
64
|
}), await this.districtControllerSolidLayer.applyEdits({
|
|
64
65
|
addFeatures: i
|
|
65
|
-
}), await this.view
|
|
66
|
-
duration: this.hasGpu ? 1e3 : 0
|
|
67
|
-
});
|
|
66
|
+
}), await n.viewGoto(this.view, i);
|
|
68
67
|
}
|
|
69
68
|
/**
|
|
70
69
|
* 清除区控图层
|
|
@@ -93,9 +92,7 @@ class S {
|
|
|
93
92
|
const i = this.districtControllerDashLayer.createQuery();
|
|
94
93
|
i.where = `id = '${t}'`, i.returnGeometry = !0, i.outFields = ["*"];
|
|
95
94
|
const e = await this.districtControllerDashLayer.queryFeatures(i);
|
|
96
|
-
return e.features.length > 0 ? (await this.view
|
|
97
|
-
duration: this.hasGpu ? 1e3 : 0
|
|
98
|
-
}), { status: 0, message: "ok" }) : { status: 1, message: "未找到区控" };
|
|
95
|
+
return e.features.length > 0 ? (await n.viewGoto(this.view, e.features), { status: 0, message: "ok" }) : { status: 1, message: "未找到区控" };
|
|
99
96
|
}
|
|
100
97
|
/**
|
|
101
98
|
* 高亮区控, 其他区控隐藏
|
|
@@ -106,9 +103,7 @@ class S {
|
|
|
106
103
|
const i = this.districtControllerDashLayer.definitionExpression;
|
|
107
104
|
this.districtControllerDashLayer.definitionExpression = `id = '${t}'`;
|
|
108
105
|
const e = await this.districtControllerDashLayer.queryFeatures(), r = e.features.length;
|
|
109
|
-
return r > 0 ? (this.districtControllerSolidLayer.definitionExpression = `id = '${t}'`, await this.view
|
|
110
|
-
duration: this.hasGpu ? 1e3 : 0
|
|
111
|
-
})) : this.districtControllerDashLayer.definitionExpression = i, r;
|
|
106
|
+
return r > 0 ? (this.districtControllerSolidLayer.definitionExpression = `id = '${t}'`, await n.viewGoto(this.view, e.features)) : this.districtControllerDashLayer.definitionExpression = i, r;
|
|
112
107
|
}
|
|
113
108
|
filter(t) {
|
|
114
109
|
const i = `id = '${t}'`;
|
|
@@ -119,5 +114,5 @@ class S {
|
|
|
119
114
|
}
|
|
120
115
|
}
|
|
121
116
|
export {
|
|
122
|
-
|
|
117
|
+
x as default
|
|
123
118
|
};
|
|
@@ -375,14 +375,10 @@ const e = {
|
|
|
375
375
|
{
|
|
376
376
|
value: "true,true",
|
|
377
377
|
symbol: {
|
|
378
|
-
type: "
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
outline: {
|
|
383
|
-
color: "white",
|
|
384
|
-
width: 0
|
|
385
|
-
}
|
|
378
|
+
type: "picture-marker",
|
|
379
|
+
url: "/GisViewerAssets/Images/icon_star.png",
|
|
380
|
+
width: "20px",
|
|
381
|
+
height: "20px"
|
|
386
382
|
}
|
|
387
383
|
},
|
|
388
384
|
{
|
|
@@ -424,31 +420,31 @@ const e = {
|
|
|
424
420
|
}
|
|
425
421
|
}
|
|
426
422
|
}
|
|
427
|
-
],
|
|
428
|
-
visualVariables: [
|
|
429
|
-
{
|
|
430
|
-
type: "size",
|
|
431
|
-
valueExpression: "$view.scale",
|
|
432
|
-
stops: [
|
|
433
|
-
{
|
|
434
|
-
size: 8,
|
|
435
|
-
value: 9000.954822000003
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
size: 6,
|
|
439
|
-
value: 18055.954822000003
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
size: 3,
|
|
443
|
-
value: 144447.638572
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
size: 2,
|
|
447
|
-
value: 1155581108577e-6
|
|
448
|
-
}
|
|
449
|
-
]
|
|
450
|
-
}
|
|
451
423
|
]
|
|
424
|
+
// visualVariables: [
|
|
425
|
+
// {
|
|
426
|
+
// type: 'size',
|
|
427
|
+
// valueExpression: '$view.scale',
|
|
428
|
+
// stops: [
|
|
429
|
+
// {
|
|
430
|
+
// size: 8,
|
|
431
|
+
// value: 9000.954822000003
|
|
432
|
+
// },
|
|
433
|
+
// {
|
|
434
|
+
// size: 6,
|
|
435
|
+
// value: 18055.954822000003
|
|
436
|
+
// },
|
|
437
|
+
// {
|
|
438
|
+
// size: 3,
|
|
439
|
+
// value: 144447.638572
|
|
440
|
+
// },
|
|
441
|
+
// {
|
|
442
|
+
// size: 2,
|
|
443
|
+
// value: 1155581.108577
|
|
444
|
+
// }
|
|
445
|
+
// ]
|
|
446
|
+
// }
|
|
447
|
+
// ]
|
|
452
448
|
}
|
|
453
449
|
}, s = {
|
|
454
450
|
id: "signalLayer",
|
|
@@ -762,7 +758,7 @@ const e = {
|
|
|
762
758
|
}
|
|
763
759
|
]
|
|
764
760
|
}
|
|
765
|
-
},
|
|
761
|
+
}, n = {
|
|
766
762
|
id: "signalLayer",
|
|
767
763
|
source: [],
|
|
768
764
|
objectIdField: "ObjectID",
|
|
@@ -980,7 +976,7 @@ const e = {
|
|
|
980
976
|
export {
|
|
981
977
|
e as districtDashLineLayerOptions,
|
|
982
978
|
t as districtSolidLineLayerOptions,
|
|
983
|
-
|
|
979
|
+
n as signalClusterLayerOptions,
|
|
984
980
|
l as signalMarkerLayerOptions,
|
|
985
981
|
s as signalPictureLayerOptions,
|
|
986
982
|
r as subDistrictLineLayerOptions,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IFindSignalControlAreaParams, ILayerVisibleParams, IResult, IShowSignalControlAreaParams } from '../../../types';
|
|
2
2
|
export default class SignalControlAreaController1 {
|
|
3
3
|
private view;
|
|
4
|
-
private hasGpu;
|
|
5
4
|
/** 支队图层 */
|
|
6
5
|
private detachmentLayer;
|
|
7
6
|
private detachmentLayerLoaded;
|
|
@@ -9,7 +8,6 @@ export default class SignalControlAreaController1 {
|
|
|
9
8
|
private subDistrictRenderer;
|
|
10
9
|
private signalRenderer;
|
|
11
10
|
private mapConfig;
|
|
12
|
-
private roadLines;
|
|
13
11
|
constructor(view: __esri.MapView | __esri.SceneView);
|
|
14
12
|
/**
|
|
15
13
|
* 显示所有区控、子区、信号机
|
|
@@ -51,11 +49,6 @@ export default class SignalControlAreaController1 {
|
|
|
51
49
|
status: number;
|
|
52
50
|
message: string;
|
|
53
51
|
}>;
|
|
54
|
-
/**
|
|
55
|
-
* 获取道路线
|
|
56
|
-
* @returns
|
|
57
|
-
*/
|
|
58
|
-
private loadRoadLine;
|
|
59
52
|
/**
|
|
60
53
|
* 加载支队图层
|
|
61
54
|
* 现场环境用url创建FeatureLayer有各种问题,
|