gisviewer-vue3-arcgis 1.0.205 → 1.0.207

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.
@@ -16,6 +16,8 @@ export default class SignalControlAreaController1 {
16
16
  private subDistrictControllerOid;
17
17
  private signalOid;
18
18
  constructor(view: __esri.MapView | __esri.SceneView);
19
+ /** 暂存等待绘制的区控graphic */
20
+ private districtGraphics;
19
21
  /** 暂存等待绘制的子区graphic */
20
22
  private subDistrictGraphics;
21
23
  /**
@@ -1,17 +1,17 @@
1
1
  import y from "@arcgis/core/Graphic";
2
- import a from "@arcgis/core/layers/FeatureLayer";
2
+ import o from "@arcgis/core/layers/FeatureLayer";
3
3
  import c from "@turf/buffer";
4
4
  import p from "@turf/convex";
5
5
  import * as n from "@turf/helpers";
6
- import m from "concaveman";
7
- import h from "../../stores/index.mjs";
6
+ import h from "concaveman";
7
+ import m from "../../stores/index.mjs";
8
8
  import g from "./district-controller.mjs";
9
9
  class S {
10
10
  constructor(e) {
11
- var r;
12
- this.districtControllerOid = 0, this.subDistrictControllerOid = 0, this.signalOid = 0, this.subDistrictGraphics = [], this.view = e, this.hasGpu = localStorage.getItem("gpu") !== "Unknown";
13
- const s = h.useAppDataStore.mapConfig;
14
- this.openDriveServer = (r = s.openDriveServer) == null ? void 0 : r.url, this.districtControllerDashLayer = new a({
11
+ var i;
12
+ this.districtControllerOid = 0, this.subDistrictControllerOid = 0, this.signalOid = 0, this.districtGraphics = [], this.subDistrictGraphics = [], this.view = e, this.hasGpu = localStorage.getItem("gpu") !== "Unknown";
13
+ const t = m.useAppDataStore.mapConfig;
14
+ this.openDriveServer = (i = t.openDriveServer) == null ? void 0 : i.url, this.districtControllerDashLayer = new o({
15
15
  id: "districtController",
16
16
  spatialReference: e.spatialReference,
17
17
  source: [],
@@ -49,7 +49,7 @@ class S {
49
49
  width: 3
50
50
  }
51
51
  }
52
- }), this.districtControllerSolidLayer = new a({
52
+ }), this.districtControllerSolidLayer = new o({
53
53
  id: "districtController",
54
54
  spatialReference: e.spatialReference,
55
55
  source: [],
@@ -109,7 +109,7 @@ class S {
109
109
  width: 3
110
110
  }
111
111
  }
112
- }), this.subDistrictControllerLayer = new a({
112
+ }), this.subDistrictControllerLayer = new o({
113
113
  id: "subDistrictController",
114
114
  spatialReference: e.spatialReference,
115
115
  source: [],
@@ -173,7 +173,7 @@ class S {
173
173
  width: 3
174
174
  }
175
175
  }
176
- }), this.signalMarkerLayer = new a({
176
+ }), this.signalMarkerLayer = new o({
177
177
  id: "signalLayer",
178
178
  spatialReference: e.spatialReference,
179
179
  source: [],
@@ -291,7 +291,7 @@ class S {
291
291
  }
292
292
  ]
293
293
  }
294
- }), this.signalPictureLayer = new a({
294
+ }), this.signalPictureLayer = new o({
295
295
  id: "signalLayer",
296
296
  spatialReference: e.spatialReference,
297
297
  source: [],
@@ -576,17 +576,20 @@ class S {
576
576
  */
577
577
  async showSignalControlArea(e) {
578
578
  await this.clearSignalControlArea(), this.districtControllerDashLayer.visible = !0, this.districtControllerSolidLayer.visible = !0, this.subDistrictControllerLayer.visible = !1, this.signalMarkerLayer.visible = !1, this.signalPictureLayer.visible = !1;
579
- for (const s of e.areaList) {
580
- const r = new g(
581
- s,
579
+ for (const r of e.areaList) {
580
+ const t = new g(
581
+ r,
582
582
  e.style || ""
583
583
  );
584
- await this.drawArea(r, !0), await this.subDistrictControllerLayer.applyEdits({
584
+ await this.drawArea(t, !0), await this.subDistrictControllerLayer.applyEdits({
585
585
  addFeatures: this.subDistrictGraphics
586
586
  }), this.subDistrictGraphics = [];
587
587
  }
588
- const t = await this.districtControllerDashLayer.queryFeatures();
589
- return this.view.goTo(t.features), { status: 0, message: "ok" };
588
+ return await this.districtControllerDashLayer.applyEdits({
589
+ addFeatures: this.districtGraphics
590
+ }), await this.districtControllerSolidLayer.applyEdits({
591
+ addFeatures: this.districtGraphics
592
+ }), this.view.goTo(this.districtGraphics), this.districtGraphics = [], { status: 0, message: "ok" };
590
593
  }
591
594
  /**
592
595
  * 清空区控、子区、信号机
@@ -634,30 +637,30 @@ class S {
634
637
  async locateSignalControlArea(e) {
635
638
  switch (e.type) {
636
639
  case "district": {
637
- const r = this.districtControllerDashLayer.createQuery();
638
- r.where = `id = '${e.id}'`, r.returnGeometry = !0, r.outFields = ["*"];
639
- const i = await this.districtControllerDashLayer.queryFeatures(
640
- r
640
+ const i = this.districtControllerDashLayer.createQuery();
641
+ i.where = `id = '${e.id}'`, i.returnGeometry = !0, i.outFields = ["*"];
642
+ const a = await this.districtControllerDashLayer.queryFeatures(
643
+ i
641
644
  );
642
- return i.features.length > 0 ? (await this.view.goTo(i.features, {
645
+ return a.features.length > 0 ? (await this.view.goTo(a.features, {
643
646
  duration: this.hasGpu ? 1e3 : 0
644
647
  }), { status: 0, message: "ok" }) : { status: 1, message: "未找到区控" };
645
648
  }
646
649
  case "subDistrict":
647
- const t = this.subDistrictControllerLayer.createQuery();
648
- t.where = `id = '${e.id}'`, t.returnGeometry = !0, t.outFields = ["*"];
649
- const s = await this.subDistrictControllerLayer.queryFeatures(
650
- t
650
+ const r = this.subDistrictControllerLayer.createQuery();
651
+ r.where = `id = '${e.id}'`, r.returnGeometry = !0, r.outFields = ["*"];
652
+ const t = await this.subDistrictControllerLayer.queryFeatures(
653
+ r
651
654
  );
652
- return s.features.length > 0 ? (await this.view.goTo(s.features, {
655
+ return t.features.length > 0 ? (await this.view.goTo(t.features, {
653
656
  duration: this.hasGpu ? 1e3 : 0
654
657
  }), { status: 0, message: "ok" }) : { status: 1, message: "未找到子区" };
655
658
  case "signal": {
656
- const r = this.signalMarkerLayer.createQuery();
657
- r.where = `id = '${e.id}'`, r.returnGeometry = !0, r.outFields = ["*"];
658
- const i = await this.signalMarkerLayer.queryFeatures(r);
659
- return i.features.length > 0 ? (await this.view.goTo(
660
- { target: i.features[0], scale: 2500 },
659
+ const i = this.signalMarkerLayer.createQuery();
660
+ i.where = `id = '${e.id}'`, i.returnGeometry = !0, i.outFields = ["*"];
661
+ const a = await this.signalMarkerLayer.queryFeatures(i);
662
+ return a.features.length > 0 ? (await this.view.goTo(
663
+ { target: a.features[0], scale: 2500 },
661
664
  {
662
665
  duration: this.hasGpu ? 1e3 : 0
663
666
  }
@@ -675,38 +678,41 @@ class S {
675
678
  async highlightSignalControlArea(e) {
676
679
  switch (e.type) {
677
680
  case "district": {
681
+ const r = this.districtControllerDashLayer.definitionExpression;
678
682
  this.districtControllerDashLayer.definitionExpression = `id = '${e.id}'`;
679
683
  const t = await this.districtControllerDashLayer.queryFeatures();
680
684
  return t.features.length > 0 ? (this.districtControllerSolidLayer.definitionExpression = `id = '${e.id}'`, this.subDistrictControllerLayer.definitionExpression = `parentId = '${e.id}'`, this.signalMarkerLayer.definitionExpression = `districtId = '${e.id}'`, this.signalPictureLayer.definitionExpression = `districtId = '${e.id}'`, await this.view.goTo(t.features, {
681
685
  duration: this.hasGpu ? 1e3 : 0
682
- }), { status: 0, message: "ok" }) : (this.districtControllerDashLayer.definitionExpression = "1=1", { status: 1, message: "未找到区控" });
686
+ }), { status: 0, message: "ok" }) : (this.districtControllerDashLayer.definitionExpression = r, { status: 1, message: "未找到区控" });
683
687
  }
684
688
  case "subDistrict": {
689
+ const r = this.subDistrictControllerLayer.definitionExpression;
685
690
  this.subDistrictControllerLayer.definitionExpression = `id = '${e.id}'`;
686
691
  const t = await this.subDistrictControllerLayer.queryFeatures();
687
692
  if (t.features.length > 0) {
688
693
  this.signalMarkerLayer.definitionExpression = `subDistrictId = '${e.id}'`, this.signalPictureLayer.definitionExpression = `subDistrictId = '${e.id}'`;
689
- const r = t.features[0].attributes.parentId;
690
- return this.districtControllerDashLayer.definitionExpression = `id = '${r}'`, this.districtControllerSolidLayer.definitionExpression = `id = '${r}'`, await this.view.goTo(t.features, {
694
+ const a = t.features[0].attributes.parentId;
695
+ return this.districtControllerDashLayer.definitionExpression = `id = '${a}'`, this.districtControllerSolidLayer.definitionExpression = `id = '${a}'`, await this.view.goTo(t.features, {
691
696
  duration: this.hasGpu ? 1e3 : 0
692
697
  }), { status: 0, message: "ok" };
693
698
  } else
694
- return this.subDistrictControllerLayer.definitionExpression = "1=1", { status: 1, message: "未找到子区" };
699
+ return this.subDistrictControllerLayer.definitionExpression = r, { status: 1, message: "未找到子区" };
695
700
  }
696
701
  case "signal": {
702
+ const r = this.signalMarkerLayer.definitionExpression;
697
703
  this.signalMarkerLayer.definitionExpression = `id = '${e.id}'`;
698
704
  const t = await this.signalMarkerLayer.queryFeatures();
699
705
  if (t.features.length > 0) {
700
706
  this.signalPictureLayer.definitionExpression = `id = '${e.id}'`;
701
- const s = t.features[0], { districtId: r, subDistrictId: i } = s.attributes;
702
- return this.districtControllerDashLayer.definitionExpression = `id = '${r}'`, this.districtControllerSolidLayer.definitionExpression = `id = '${r}'`, this.subDistrictControllerLayer.definitionExpression = `id = '${i}'`, await this.view.goTo(
707
+ const i = t.features[0], { districtId: a, subDistrictId: l } = i.attributes;
708
+ return this.districtControllerDashLayer.definitionExpression = `id = '${a}'`, this.districtControllerSolidLayer.definitionExpression = `id = '${a}'`, this.subDistrictControllerLayer.definitionExpression = `id = '${l}'`, await this.view.goTo(
703
709
  { target: t.features, zoom: 2500 },
704
710
  {
705
711
  duration: this.hasGpu ? 1e3 : 0
706
712
  }
707
713
  ), { status: 0, message: "ok" };
708
714
  } else
709
- return this.signalMarkerLayer.definitionExpression = "1=1", { status: 1, message: "未找到信号机" };
715
+ return this.signalMarkerLayer.definitionExpression = r, { status: 1, message: "未找到信号机" };
710
716
  }
711
717
  default:
712
718
  return { status: 1, message: "未知类型" };
@@ -729,77 +735,76 @@ class S {
729
735
  * @param isDistrict 是否是区控
730
736
  * @returns
731
737
  */
732
- async drawArea(e, t) {
733
- const s = e.getAllSignalCoordinates();
734
- if (s.length >= 2) {
735
- let i = null;
736
- if (s.length === 2)
737
- i = n.lineString(s);
738
+ async drawArea(e, r) {
739
+ const t = e.getAllSignalCoordinates();
740
+ let i;
741
+ if (t.length >= 2)
742
+ if (t.length === 2)
743
+ i = n.lineString(t);
738
744
  else {
739
- if (t) {
740
- const l = n.featureCollection(
741
- s.map((d) => n.point(d))
745
+ if (r) {
746
+ const s = n.featureCollection(
747
+ t.map((u) => n.point(u))
742
748
  );
743
- i = p(l);
749
+ i = p(s);
744
750
  } else {
745
- const l = m(s, 0.5);
746
- l.length >= 4 && (i = n.polygon([l]));
751
+ const s = h(t, 0.5);
752
+ s.length >= 4 && (i = n.polygon([s]));
747
753
  }
748
- i || (i = n.lineString(s));
754
+ i || (i = n.lineString(t));
749
755
  }
750
- const u = c(
751
- i.geometry,
752
- // 区控面积更大,需要更大的缓冲半径
753
- t ? 200 : 30,
754
- {
755
- units: "meters"
756
- }
757
- ), o = new y({
758
- geometry: {
759
- type: "polyline",
760
- paths: u.geometry.coordinates
761
- },
762
- attributes: {
763
- ObjectID: t ? this.districtControllerOid++ : this.subDistrictControllerOid++,
764
- id: e.id,
765
- name: e.name,
766
- subDistrictCount: e.subDistrictCount,
767
- signalCount: e.signalCount,
768
- parentId: e.parentId,
769
- parentName: e.parentName
770
- }
771
- });
772
- t ? (await this.districtControllerDashLayer.applyEdits({
773
- addFeatures: [o]
774
- }), await this.districtControllerSolidLayer.applyEdits({
775
- addFeatures: [o]
776
- })) : this.subDistrictGraphics.push(o);
777
- }
778
- for (const i of e.subDistricts)
779
- await this.drawArea(i, !1);
780
- const r = e.signals.map((i) => new y({
756
+ else if (t.length === 1)
757
+ i = n.point(t[0]);
758
+ else
759
+ return;
760
+ const a = c(
761
+ i.geometry,
762
+ // 区控面积更大,需要更大的缓冲半径
763
+ r ? 200 : 30,
764
+ {
765
+ units: "meters"
766
+ }
767
+ ), l = new y({
768
+ geometry: {
769
+ type: "polyline",
770
+ paths: a.geometry.coordinates
771
+ },
772
+ attributes: {
773
+ ObjectID: r ? this.districtControllerOid++ : this.subDistrictControllerOid++,
774
+ id: e.id,
775
+ name: e.name,
776
+ subDistrictCount: e.subDistrictCount,
777
+ signalCount: e.signalCount,
778
+ parentId: e.parentId,
779
+ parentName: e.parentName
780
+ }
781
+ });
782
+ r ? this.districtGraphics.push(l) : this.subDistrictGraphics.push(l);
783
+ for (const s of e.subDistricts)
784
+ await this.drawArea(s, !1);
785
+ const d = e.signals.map((s) => new y({
781
786
  geometry: {
782
787
  type: "point",
783
- x: i.longitude,
784
- y: i.latitude
788
+ x: s.longitude,
789
+ y: s.latitude
785
790
  },
786
791
  attributes: {
787
792
  ObjectID: this.signalOid++,
788
- id: i.id,
789
- name: i.name,
790
- signalId: i.signalId,
791
- nodeId: i.nodeId,
792
- isKey: i.isKey,
793
- districtId: t ? e.id : e.parentId,
794
- districtName: t ? e.name : e.parentName,
795
- subDistrictId: t ? "" : e.id,
796
- subDistrictName: t ? "" : e.name
793
+ id: s.id,
794
+ name: s.name,
795
+ signalId: s.signalId,
796
+ nodeId: s.nodeId,
797
+ isKey: s.isKey,
798
+ districtId: r ? e.id : e.parentId,
799
+ districtName: r ? e.name : e.parentName,
800
+ subDistrictId: r ? "" : e.id,
801
+ subDistrictName: r ? "" : e.name
797
802
  }
798
803
  }));
799
804
  await this.signalMarkerLayer.applyEdits({
800
- addFeatures: r
805
+ addFeatures: d
801
806
  }), await this.signalPictureLayer.applyEdits({
802
- addFeatures: r
807
+ addFeatures: d
803
808
  });
804
809
  }
805
810
  }
@@ -16,6 +16,8 @@ export default class SignalControlAreaController1 {
16
16
  private subDistrictControllerOid;
17
17
  private signalOid;
18
18
  constructor(view: __esri.MapView | __esri.SceneView);
19
+ /** 暂存等待绘制的区控graphic */
20
+ private districtGraphics;
19
21
  /** 暂存等待绘制的子区graphic */
20
22
  private subDistrictGraphics;
21
23
  /**
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("@arcgis/core/Graphic"),n=require("@arcgis/core/layers/FeatureLayer"),p=require("@turf/buffer"),h=require("@turf/convex"),m=require("@turf/helpers"),g=require("concaveman"),f=require("../../stores/index.js"),b=require("./district-controller.js");function C(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(e,t,s.get?s:{enumerable:!0,get:()=>a[t]})}}return e.default=a,Object.freeze(e)}const l=C(m);class I{constructor(e){var r;this.districtControllerOid=0,this.subDistrictControllerOid=0,this.signalOid=0,this.subDistrictGraphics=[],this.view=e,this.hasGpu=localStorage.getItem("gpu")!=="Unknown";const s=f.default.useAppDataStore.mapConfig;this.openDriveServer=(r=s.openDriveServer)==null?void 0:r.url,this.districtControllerDashLayer=new n({id:"districtController",spatialReference:e.spatialReference,source:[],objectIdField:"ObjectID",geometryType:"polyline",outFields:["*"],fields:[{name:"ObjectID",type:"oid"},{name:"id",type:"string"},{name:"name",type:"string"},{name:"subDistrictCount",type:"integer"},{name:"signalCount",type:"integer"}],renderer:{type:"simple",symbol:{type:"simple-line",style:"long-dash",color:[111,100,255],width:3}}}),this.districtControllerSolidLayer=new n({id:"districtController",spatialReference:e.spatialReference,source:[],objectIdField:"ObjectID",outFields:["*"],geometryType:"polyline",fields:[{name:"ObjectID",type:"oid"},{name:"id",type:"string"},{name:"name",type:"string"},{name:"subDistrictCount",type:"integer"},{name:"signalCount",type:"integer"}],popupTemplate:{title:"{name}",content:[{type:"fields",fieldInfos:[{fieldName:"id",label:"区控编号"},{fieldName:"subDistrictCount",label:"子区数量"},{fieldName:"signalCount",label:"信号机数量"}]}]},renderer:{type:"simple",symbol:{type:"simple-line",style:"solid",color:[111,100,255,.4],width:3}}}),this.subDistrictControllerLayer=new n({id:"subDistrictController",spatialReference:e.spatialReference,source:[],objectIdField:"ObjectID",outFields:["*"],geometryType:"polyline",fields:[{name:"ObjectID",type:"oid"},{name:"id",type:"string"},{name:"name",type:"string"},{name:"parentId",type:"string"},{name:"parentName",type:"string"},{name:"signalCount",type:"integer"}],popupTemplate:{title:"{name} 子区",content:[{type:"fields",fieldInfos:[{fieldName:"id",label:"区控编号"},{fieldName:"parentName",label:"所属区控"},{fieldName:"signalCount",label:"信号机数量"}]}]},renderer:{type:"simple",symbol:{type:"simple-line",style:"solid",color:[5,196,104],width:3}}}),this.signalMarkerLayer=new n({id:"signalLayer",spatialReference:e.spatialReference,source:[],objectIdField:"ObjectID",outFields:["*"],geometryType:"point",maxScale:5e3,fields:[{name:"ObjectID",type:"oid"},{name:"id",type:"string"},{name:"name",type:"string"},{name:"signalId",type:"string"},{name:"nodeId",type:"string"},{name:"isKey",type:"string"},{name:"districtId",type:"string"},{name:"districtName",type:"string"},{name:"subDistrictId",type:"string"},{name:"subDistrictName",type:"string"}],popupTemplate:{title:"{name}信号机",content:[{type:"fields",fieldInfos:[{fieldName:"districtName",label:"区控名称"},{fieldName:"subDistrictName",label:"子区名称"},{fieldName:"signalId",label:"信号机编号"},{fieldName:"nodeId",label:"路口编号"}]}]},renderer:{type:"unique-value",field:"isKey",defaultSymbol:{type:"simple-marker",style:"circle",color:"gray",size:4,outline:{color:"white",width:1}},uniqueValueInfos:[{value:"true",symbol:{type:"simple-marker",style:"circle",color:[254,172,22],size:12,outline:{color:"white",width:1}}},{value:"false",symbol:{type:"simple-marker",style:"circle",color:[5,116,255],size:8,outline:{color:"white",width:1}}}]}}),this.signalPictureLayer=new n({id:"signalLayer",spatialReference:e.spatialReference,source:[],objectIdField:"ObjectID",outFields:["*"],geometryType:"point",minScale:5e3,fields:[{name:"ObjectID",type:"oid"},{name:"id",type:"string"},{name:"name",type:"string"},{name:"signalId",type:"string"},{name:"nodeId",type:"string"},{name:"isKey",type:"string"},{name:"districtId",type:"string"},{name:"districtName",type:"string"},{name:"subDistrictId",type:"string"},{name:"subDistrictName",type:"string"}],popupTemplate:{title:"{name}信号机",content:[{type:"fields",fieldInfos:[{fieldName:"districtName",label:"区控名称"},{fieldName:"subDistrictName",label:"子区名称"},{fieldName:"signalId",label:"信号机编号"},{fieldName:"nodeId",label:"路口编号"}]}]},renderer:{type:"unique-value",field:"isKey",defaultSymbol:{type:"simple-marker",style:"circle",color:"gray",size:4,outline:{color:"white",width:1}},uniqueValueInfos:[{value:"true",symbol:{type:"cim",data:{type:"CIMSymbolReference",primitiveOverrides:[{type:"CIMPrimitiveOverride",primitiveName:"textGraphic",propertyName:"TextString",valueExpressionInfo:{type:"CIMExpressionInfo",title:"Custom",expression:'Replace($feature.name, "与", "/") + " " + $feature.signalId',returnType:"Default"}}],symbol:{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",size:32,colorLocked:!0,anchorPointUnits:"Relative",frame:{xmin:-16,ymin:-16,xmax:16,ymax:16},markerGraphics:[{type:"CIMMarkerGraphic",primitiveName:"textGraphic",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",height:12,horizontalAlignment:"Center",offsetX:0,offsetY:30,haloSize:1,haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[255,255,255,255]}]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},verticalAlignment:"Center"},textString:""}],scaleSymbolsProportionally:!0,respectFrame:!0},{type:"CIMPictureMarker",enable:!0,anchorPoint:{x:0,y:0},anchorPointUnits:"Relative",size:40,rotateClockwise:!0,textureFilter:"Picture",url:"/GisViewerAssets/Images/cross/gis_gjxklk_orange.png"}]}}}},{value:"false",symbol:{type:"cim",data:{type:"CIMSymbolReference",primitiveOverrides:[{type:"CIMPrimitiveOverride",primitiveName:"textGraphic",propertyName:"TextString",valueExpressionInfo:{type:"CIMExpressionInfo",title:"Custom",expression:'Replace($feature.name, "与", "/") + " " + $feature.signalId',returnType:"Default"}}],symbol:{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",size:32,colorLocked:!0,anchorPointUnits:"Relative",frame:{xmin:-16,ymin:-16,xmax:16,ymax:16},markerGraphics:[{type:"CIMMarkerGraphic",primitiveName:"textGraphic",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",height:12,horizontalAlignment:"Center",offsetX:0,offsetY:15,haloSize:1,haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[255,255,255,255]}]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},verticalAlignment:"Center"},textString:""}],scaleSymbolsProportionally:!0,respectFrame:!0},{type:"CIMPictureMarker",enable:!0,anchorPoint:{x:0,y:0},anchorPointUnits:"Relative",size:20,rotateClockwise:!0,textureFilter:"Picture",url:"/GisViewerAssets/Images/cross/gis_xhj_blue.png"}]}}}}]}}),this.view.map.addMany([this.districtControllerSolidLayer,this.districtControllerDashLayer,this.subDistrictControllerLayer,this.signalMarkerLayer,this.signalPictureLayer])}async showSignalControlArea(e){await this.clearSignalControlArea(),this.districtControllerDashLayer.visible=!0,this.districtControllerSolidLayer.visible=!0,this.subDistrictControllerLayer.visible=!1,this.signalMarkerLayer.visible=!1,this.signalPictureLayer.visible=!1;for(const s of e.areaList){const r=new b.default(s,e.style||"");await this.drawArea(r,!0),await this.subDistrictControllerLayer.applyEdits({addFeatures:this.subDistrictGraphics}),this.subDistrictGraphics=[]}const t=await this.districtControllerDashLayer.queryFeatures();return this.view.goTo(t.features),{status:0,message:"ok"}}async clearSignalControlArea(){this.districtControllerOid=0,this.subDistrictControllerOid=0,this.signalOid=0;let e=await this.districtControllerDashLayer.queryFeatures();return await this.districtControllerDashLayer.applyEdits({deleteFeatures:e.features}),e=await this.districtControllerSolidLayer.queryFeatures(),await this.districtControllerSolidLayer.applyEdits({deleteFeatures:e.features}),e=await this.subDistrictControllerLayer.queryFeatures(),await this.subDistrictControllerLayer.applyEdits({deleteFeatures:e.features}),e=await this.signalMarkerLayer.queryFeatures(),await this.signalMarkerLayer.applyEdits({deleteFeatures:e.features}),e=await this.signalPictureLayer.queryFeatures(),await this.signalPictureLayer.applyEdits({deleteFeatures:e.features}),{status:0,message:"ok"}}setLayerVisibility(e){switch(e.visible===!1&&this.view.closePopup(),e.id){case"district":this.districtControllerDashLayer.visible=e.visible,this.districtControllerSolidLayer.visible=e.visible;break;case"subDistrict":this.subDistrictControllerLayer.visible=e.visible;break;case"signal":this.signalMarkerLayer.visible=e.visible,this.signalPictureLayer.visible=e.visible;break}return{status:0,message:"ok"}}async locateSignalControlArea(e){switch(e.type){case"district":{const r=this.districtControllerDashLayer.createQuery();r.where=`id = '${e.id}'`,r.returnGeometry=!0,r.outFields=["*"];const i=await this.districtControllerDashLayer.queryFeatures(r);return i.features.length>0?(await this.view.goTo(i.features,{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}):{status:1,message:"未找到区控"}}case"subDistrict":const t=this.subDistrictControllerLayer.createQuery();t.where=`id = '${e.id}'`,t.returnGeometry=!0,t.outFields=["*"];const s=await this.subDistrictControllerLayer.queryFeatures(t);return s.features.length>0?(await this.view.goTo(s.features,{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}):{status:1,message:"未找到子区"};case"signal":{const r=this.signalMarkerLayer.createQuery();r.where=`id = '${e.id}'`,r.returnGeometry=!0,r.outFields=["*"];const i=await this.signalMarkerLayer.queryFeatures(r);return i.features.length>0?(await this.view.goTo({target:i.features[0],scale:2500},{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}):{status:1,message:"未找到信号机"}}default:return{status:1,message:"未知类型"}}}async highlightSignalControlArea(e){switch(e.type){case"district":{this.districtControllerDashLayer.definitionExpression=`id = '${e.id}'`;const t=await this.districtControllerDashLayer.queryFeatures();return t.features.length>0?(this.districtControllerSolidLayer.definitionExpression=`id = '${e.id}'`,this.subDistrictControllerLayer.definitionExpression=`parentId = '${e.id}'`,this.signalMarkerLayer.definitionExpression=`districtId = '${e.id}'`,this.signalPictureLayer.definitionExpression=`districtId = '${e.id}'`,await this.view.goTo(t.features,{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}):(this.districtControllerDashLayer.definitionExpression="1=1",{status:1,message:"未找到区控"})}case"subDistrict":{this.subDistrictControllerLayer.definitionExpression=`id = '${e.id}'`;const t=await this.subDistrictControllerLayer.queryFeatures();if(t.features.length>0){this.signalMarkerLayer.definitionExpression=`subDistrictId = '${e.id}'`,this.signalPictureLayer.definitionExpression=`subDistrictId = '${e.id}'`;const r=t.features[0].attributes.parentId;return this.districtControllerDashLayer.definitionExpression=`id = '${r}'`,this.districtControllerSolidLayer.definitionExpression=`id = '${r}'`,await this.view.goTo(t.features,{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}}else return this.subDistrictControllerLayer.definitionExpression="1=1",{status:1,message:"未找到子区"}}case"signal":{this.signalMarkerLayer.definitionExpression=`id = '${e.id}'`;const t=await this.signalMarkerLayer.queryFeatures();if(t.features.length>0){this.signalPictureLayer.definitionExpression=`id = '${e.id}'`;const s=t.features[0],{districtId:r,subDistrictId:i}=s.attributes;return this.districtControllerDashLayer.definitionExpression=`id = '${r}'`,this.districtControllerSolidLayer.definitionExpression=`id = '${r}'`,this.subDistrictControllerLayer.definitionExpression=`id = '${i}'`,await this.view.goTo({target:t.features,zoom:2500},{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}}else return this.signalMarkerLayer.definitionExpression="1=1",{status:1,message:"未找到信号机"}}default:return{status:1,message:"未知类型"}}}async resetHighlight(){this.districtControllerDashLayer.definitionExpression="1=1",this.districtControllerSolidLayer.definitionExpression="1=1",this.subDistrictControllerLayer.definitionExpression="1=1",this.signalMarkerLayer.definitionExpression="1=1";const e=await this.districtControllerDashLayer.queryFeatures();return this.view.goTo(e.features,{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}}async drawArea(e,t){const s=e.getAllSignalCoordinates();if(s.length>=2){let i=null;if(s.length===2)i=l.lineString(s);else{if(t){const o=l.featureCollection(s.map(c=>l.point(c)));i=h(o)}else{const o=g(s,.5);o.length>=4&&(i=l.polygon([o]))}i||(i=l.lineString(s))}const y=p(i.geometry,t?200:30,{units:"meters"}),u=new d({geometry:{type:"polyline",paths:y.geometry.coordinates},attributes:{ObjectID:t?this.districtControllerOid++:this.subDistrictControllerOid++,id:e.id,name:e.name,subDistrictCount:e.subDistrictCount,signalCount:e.signalCount,parentId:e.parentId,parentName:e.parentName}});t?(await this.districtControllerDashLayer.applyEdits({addFeatures:[u]}),await this.districtControllerSolidLayer.applyEdits({addFeatures:[u]})):this.subDistrictGraphics.push(u)}for(const i of e.subDistricts)await this.drawArea(i,!1);const r=e.signals.map(i=>new d({geometry:{type:"point",x:i.longitude,y:i.latitude},attributes:{ObjectID:this.signalOid++,id:i.id,name:i.name,signalId:i.signalId,nodeId:i.nodeId,isKey:i.isKey,districtId:t?e.id:e.parentId,districtName:t?e.name:e.parentName,subDistrictId:t?"":e.id,subDistrictName:t?"":e.name}}));await this.signalMarkerLayer.applyEdits({addFeatures:r}),await this.signalPictureLayer.applyEdits({addFeatures:r})}}exports.default=I;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("@arcgis/core/Graphic"),o=require("@arcgis/core/layers/FeatureLayer"),p=require("@turf/buffer"),h=require("@turf/convex"),m=require("@turf/helpers"),g=require("concaveman"),f=require("../../stores/index.js"),b=require("./district-controller.js");function C(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const i in n)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(e,i,t.get?t:{enumerable:!0,get:()=>n[i]})}}return e.default=n,Object.freeze(e)}const l=C(m);class I{constructor(e){var r;this.districtControllerOid=0,this.subDistrictControllerOid=0,this.signalOid=0,this.districtGraphics=[],this.subDistrictGraphics=[],this.view=e,this.hasGpu=localStorage.getItem("gpu")!=="Unknown";const t=f.default.useAppDataStore.mapConfig;this.openDriveServer=(r=t.openDriveServer)==null?void 0:r.url,this.districtControllerDashLayer=new o({id:"districtController",spatialReference:e.spatialReference,source:[],objectIdField:"ObjectID",geometryType:"polyline",outFields:["*"],fields:[{name:"ObjectID",type:"oid"},{name:"id",type:"string"},{name:"name",type:"string"},{name:"subDistrictCount",type:"integer"},{name:"signalCount",type:"integer"}],renderer:{type:"simple",symbol:{type:"simple-line",style:"long-dash",color:[111,100,255],width:3}}}),this.districtControllerSolidLayer=new o({id:"districtController",spatialReference:e.spatialReference,source:[],objectIdField:"ObjectID",outFields:["*"],geometryType:"polyline",fields:[{name:"ObjectID",type:"oid"},{name:"id",type:"string"},{name:"name",type:"string"},{name:"subDistrictCount",type:"integer"},{name:"signalCount",type:"integer"}],popupTemplate:{title:"{name}",content:[{type:"fields",fieldInfos:[{fieldName:"id",label:"区控编号"},{fieldName:"subDistrictCount",label:"子区数量"},{fieldName:"signalCount",label:"信号机数量"}]}]},renderer:{type:"simple",symbol:{type:"simple-line",style:"solid",color:[111,100,255,.4],width:3}}}),this.subDistrictControllerLayer=new o({id:"subDistrictController",spatialReference:e.spatialReference,source:[],objectIdField:"ObjectID",outFields:["*"],geometryType:"polyline",fields:[{name:"ObjectID",type:"oid"},{name:"id",type:"string"},{name:"name",type:"string"},{name:"parentId",type:"string"},{name:"parentName",type:"string"},{name:"signalCount",type:"integer"}],popupTemplate:{title:"{name} 子区",content:[{type:"fields",fieldInfos:[{fieldName:"id",label:"区控编号"},{fieldName:"parentName",label:"所属区控"},{fieldName:"signalCount",label:"信号机数量"}]}]},renderer:{type:"simple",symbol:{type:"simple-line",style:"solid",color:[5,196,104],width:3}}}),this.signalMarkerLayer=new o({id:"signalLayer",spatialReference:e.spatialReference,source:[],objectIdField:"ObjectID",outFields:["*"],geometryType:"point",maxScale:5e3,fields:[{name:"ObjectID",type:"oid"},{name:"id",type:"string"},{name:"name",type:"string"},{name:"signalId",type:"string"},{name:"nodeId",type:"string"},{name:"isKey",type:"string"},{name:"districtId",type:"string"},{name:"districtName",type:"string"},{name:"subDistrictId",type:"string"},{name:"subDistrictName",type:"string"}],popupTemplate:{title:"{name}信号机",content:[{type:"fields",fieldInfos:[{fieldName:"districtName",label:"区控名称"},{fieldName:"subDistrictName",label:"子区名称"},{fieldName:"signalId",label:"信号机编号"},{fieldName:"nodeId",label:"路口编号"}]}]},renderer:{type:"unique-value",field:"isKey",defaultSymbol:{type:"simple-marker",style:"circle",color:"gray",size:4,outline:{color:"white",width:1}},uniqueValueInfos:[{value:"true",symbol:{type:"simple-marker",style:"circle",color:[254,172,22],size:12,outline:{color:"white",width:1}}},{value:"false",symbol:{type:"simple-marker",style:"circle",color:[5,116,255],size:8,outline:{color:"white",width:1}}}]}}),this.signalPictureLayer=new o({id:"signalLayer",spatialReference:e.spatialReference,source:[],objectIdField:"ObjectID",outFields:["*"],geometryType:"point",minScale:5e3,fields:[{name:"ObjectID",type:"oid"},{name:"id",type:"string"},{name:"name",type:"string"},{name:"signalId",type:"string"},{name:"nodeId",type:"string"},{name:"isKey",type:"string"},{name:"districtId",type:"string"},{name:"districtName",type:"string"},{name:"subDistrictId",type:"string"},{name:"subDistrictName",type:"string"}],popupTemplate:{title:"{name}信号机",content:[{type:"fields",fieldInfos:[{fieldName:"districtName",label:"区控名称"},{fieldName:"subDistrictName",label:"子区名称"},{fieldName:"signalId",label:"信号机编号"},{fieldName:"nodeId",label:"路口编号"}]}]},renderer:{type:"unique-value",field:"isKey",defaultSymbol:{type:"simple-marker",style:"circle",color:"gray",size:4,outline:{color:"white",width:1}},uniqueValueInfos:[{value:"true",symbol:{type:"cim",data:{type:"CIMSymbolReference",primitiveOverrides:[{type:"CIMPrimitiveOverride",primitiveName:"textGraphic",propertyName:"TextString",valueExpressionInfo:{type:"CIMExpressionInfo",title:"Custom",expression:'Replace($feature.name, "与", "/") + " " + $feature.signalId',returnType:"Default"}}],symbol:{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",size:32,colorLocked:!0,anchorPointUnits:"Relative",frame:{xmin:-16,ymin:-16,xmax:16,ymax:16},markerGraphics:[{type:"CIMMarkerGraphic",primitiveName:"textGraphic",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",height:12,horizontalAlignment:"Center",offsetX:0,offsetY:30,haloSize:1,haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[255,255,255,255]}]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},verticalAlignment:"Center"},textString:""}],scaleSymbolsProportionally:!0,respectFrame:!0},{type:"CIMPictureMarker",enable:!0,anchorPoint:{x:0,y:0},anchorPointUnits:"Relative",size:40,rotateClockwise:!0,textureFilter:"Picture",url:"/GisViewerAssets/Images/cross/gis_gjxklk_orange.png"}]}}}},{value:"false",symbol:{type:"cim",data:{type:"CIMSymbolReference",primitiveOverrides:[{type:"CIMPrimitiveOverride",primitiveName:"textGraphic",propertyName:"TextString",valueExpressionInfo:{type:"CIMExpressionInfo",title:"Custom",expression:'Replace($feature.name, "与", "/") + " " + $feature.signalId',returnType:"Default"}}],symbol:{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",size:32,colorLocked:!0,anchorPointUnits:"Relative",frame:{xmin:-16,ymin:-16,xmax:16,ymax:16},markerGraphics:[{type:"CIMMarkerGraphic",primitiveName:"textGraphic",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",height:12,horizontalAlignment:"Center",offsetX:0,offsetY:15,haloSize:1,haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[255,255,255,255]}]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},verticalAlignment:"Center"},textString:""}],scaleSymbolsProportionally:!0,respectFrame:!0},{type:"CIMPictureMarker",enable:!0,anchorPoint:{x:0,y:0},anchorPointUnits:"Relative",size:20,rotateClockwise:!0,textureFilter:"Picture",url:"/GisViewerAssets/Images/cross/gis_xhj_blue.png"}]}}}}]}}),this.view.map.addMany([this.districtControllerSolidLayer,this.districtControllerDashLayer,this.subDistrictControllerLayer,this.signalMarkerLayer,this.signalPictureLayer])}async showSignalControlArea(e){await this.clearSignalControlArea(),this.districtControllerDashLayer.visible=!0,this.districtControllerSolidLayer.visible=!0,this.subDistrictControllerLayer.visible=!1,this.signalMarkerLayer.visible=!1,this.signalPictureLayer.visible=!1;for(const i of e.areaList){const t=new b.default(i,e.style||"");await this.drawArea(t,!0),await this.subDistrictControllerLayer.applyEdits({addFeatures:this.subDistrictGraphics}),this.subDistrictGraphics=[]}return await this.districtControllerDashLayer.applyEdits({addFeatures:this.districtGraphics}),await this.districtControllerSolidLayer.applyEdits({addFeatures:this.districtGraphics}),this.view.goTo(this.districtGraphics),this.districtGraphics=[],{status:0,message:"ok"}}async clearSignalControlArea(){this.districtControllerOid=0,this.subDistrictControllerOid=0,this.signalOid=0;let e=await this.districtControllerDashLayer.queryFeatures();return await this.districtControllerDashLayer.applyEdits({deleteFeatures:e.features}),e=await this.districtControllerSolidLayer.queryFeatures(),await this.districtControllerSolidLayer.applyEdits({deleteFeatures:e.features}),e=await this.subDistrictControllerLayer.queryFeatures(),await this.subDistrictControllerLayer.applyEdits({deleteFeatures:e.features}),e=await this.signalMarkerLayer.queryFeatures(),await this.signalMarkerLayer.applyEdits({deleteFeatures:e.features}),e=await this.signalPictureLayer.queryFeatures(),await this.signalPictureLayer.applyEdits({deleteFeatures:e.features}),{status:0,message:"ok"}}setLayerVisibility(e){switch(e.visible===!1&&this.view.closePopup(),e.id){case"district":this.districtControllerDashLayer.visible=e.visible,this.districtControllerSolidLayer.visible=e.visible;break;case"subDistrict":this.subDistrictControllerLayer.visible=e.visible;break;case"signal":this.signalMarkerLayer.visible=e.visible,this.signalPictureLayer.visible=e.visible;break}return{status:0,message:"ok"}}async locateSignalControlArea(e){switch(e.type){case"district":{const r=this.districtControllerDashLayer.createQuery();r.where=`id = '${e.id}'`,r.returnGeometry=!0,r.outFields=["*"];const a=await this.districtControllerDashLayer.queryFeatures(r);return a.features.length>0?(await this.view.goTo(a.features,{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}):{status:1,message:"未找到区控"}}case"subDistrict":const i=this.subDistrictControllerLayer.createQuery();i.where=`id = '${e.id}'`,i.returnGeometry=!0,i.outFields=["*"];const t=await this.subDistrictControllerLayer.queryFeatures(i);return t.features.length>0?(await this.view.goTo(t.features,{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}):{status:1,message:"未找到子区"};case"signal":{const r=this.signalMarkerLayer.createQuery();r.where=`id = '${e.id}'`,r.returnGeometry=!0,r.outFields=["*"];const a=await this.signalMarkerLayer.queryFeatures(r);return a.features.length>0?(await this.view.goTo({target:a.features[0],scale:2500},{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}):{status:1,message:"未找到信号机"}}default:return{status:1,message:"未知类型"}}}async highlightSignalControlArea(e){switch(e.type){case"district":{const i=this.districtControllerDashLayer.definitionExpression;this.districtControllerDashLayer.definitionExpression=`id = '${e.id}'`;const t=await this.districtControllerDashLayer.queryFeatures();return t.features.length>0?(this.districtControllerSolidLayer.definitionExpression=`id = '${e.id}'`,this.subDistrictControllerLayer.definitionExpression=`parentId = '${e.id}'`,this.signalMarkerLayer.definitionExpression=`districtId = '${e.id}'`,this.signalPictureLayer.definitionExpression=`districtId = '${e.id}'`,await this.view.goTo(t.features,{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}):(this.districtControllerDashLayer.definitionExpression=i,{status:1,message:"未找到区控"})}case"subDistrict":{const i=this.subDistrictControllerLayer.definitionExpression;this.subDistrictControllerLayer.definitionExpression=`id = '${e.id}'`;const t=await this.subDistrictControllerLayer.queryFeatures();if(t.features.length>0){this.signalMarkerLayer.definitionExpression=`subDistrictId = '${e.id}'`,this.signalPictureLayer.definitionExpression=`subDistrictId = '${e.id}'`;const a=t.features[0].attributes.parentId;return this.districtControllerDashLayer.definitionExpression=`id = '${a}'`,this.districtControllerSolidLayer.definitionExpression=`id = '${a}'`,await this.view.goTo(t.features,{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}}else return this.subDistrictControllerLayer.definitionExpression=i,{status:1,message:"未找到子区"}}case"signal":{const i=this.signalMarkerLayer.definitionExpression;this.signalMarkerLayer.definitionExpression=`id = '${e.id}'`;const t=await this.signalMarkerLayer.queryFeatures();if(t.features.length>0){this.signalPictureLayer.definitionExpression=`id = '${e.id}'`;const r=t.features[0],{districtId:a,subDistrictId:u}=r.attributes;return this.districtControllerDashLayer.definitionExpression=`id = '${a}'`,this.districtControllerSolidLayer.definitionExpression=`id = '${a}'`,this.subDistrictControllerLayer.definitionExpression=`id = '${u}'`,await this.view.goTo({target:t.features,zoom:2500},{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}}else return this.signalMarkerLayer.definitionExpression=i,{status:1,message:"未找到信号机"}}default:return{status:1,message:"未知类型"}}}async resetHighlight(){this.districtControllerDashLayer.definitionExpression="1=1",this.districtControllerSolidLayer.definitionExpression="1=1",this.subDistrictControllerLayer.definitionExpression="1=1",this.signalMarkerLayer.definitionExpression="1=1";const e=await this.districtControllerDashLayer.queryFeatures();return this.view.goTo(e.features,{duration:this.hasGpu?1e3:0}),{status:0,message:"ok"}}async drawArea(e,i){const t=e.getAllSignalCoordinates();let r;if(t.length>=2)if(t.length===2)r=l.lineString(t);else{if(i){const s=l.featureCollection(t.map(y=>l.point(y)));r=h(s)}else{const s=g(t,.5);s.length>=4&&(r=l.polygon([s]))}r||(r=l.lineString(t))}else if(t.length===1)r=l.point(t[0]);else return;const a=p(r.geometry,i?200:30,{units:"meters"}),u=new c({geometry:{type:"polyline",paths:a.geometry.coordinates},attributes:{ObjectID:i?this.districtControllerOid++:this.subDistrictControllerOid++,id:e.id,name:e.name,subDistrictCount:e.subDistrictCount,signalCount:e.signalCount,parentId:e.parentId,parentName:e.parentName}});i?this.districtGraphics.push(u):this.subDistrictGraphics.push(u);for(const s of e.subDistricts)await this.drawArea(s,!1);const d=e.signals.map(s=>new c({geometry:{type:"point",x:s.longitude,y:s.latitude},attributes:{ObjectID:this.signalOid++,id:s.id,name:s.name,signalId:s.signalId,nodeId:s.nodeId,isKey:s.isKey,districtId:i?e.id:e.parentId,districtName:i?e.name:e.parentName,subDistrictId:i?"":e.id,subDistrictName:i?"":e.name}}));await this.signalMarkerLayer.applyEdits({addFeatures:d}),await this.signalPictureLayer.applyEdits({addFeatures:d})}}exports.default=I;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gisviewer-vue3-arcgis",
3
- "version": "1.0.205",
3
+ "version": "1.0.207",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "files": [