bbj-screen-widget 2.4.65 → 2.4.67

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.
@@ -13748,6 +13748,7 @@ CustomBaiduMapComponent = __decorate([
13748
13748
  'sc-wind-layer',
13749
13749
  'sc-typhoon-area-layer',
13750
13750
  'sc-baidu-fence',
13751
+ 'sc-baidu-lushu',
13751
13752
  ],
13752
13753
  description: 'hasChildItem',
13753
13754
  }),
@@ -15259,8 +15260,11 @@ TyphoonAreaLayerComponent = __decorate([
15259
15260
  const EARTH_RADIUS$1 = 6371393;
15260
15261
  const ɵ0$c = { type: 'string', title: 'ID' };
15261
15262
  let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
15262
- constructor() {
15263
- super(...arguments);
15263
+ constructor(parent, zone, message) {
15264
+ super(parent, zone);
15265
+ this.parent = parent;
15266
+ this.zone = zone;
15267
+ this.message = message;
15264
15268
  // @Property('标签字体', { ui: { widget: 'myFont', visibleIf: { showLabel: [true] } } })
15265
15269
  // textFont: any = {
15266
15270
  // family: '',
@@ -15277,11 +15281,13 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
15277
15281
  this.data = [
15278
15282
  {
15279
15283
  // name: '多边形',
15284
+ id: '1',
15280
15285
  type: 'polygon',
15281
15286
  lnglat: '120.7,28;120.8,28;120.8,27.9;120.7,27.9',
15282
15287
  },
15283
15288
  {
15284
15289
  // name: '圆形',
15290
+ id: '2',
15285
15291
  type: 'circle',
15286
15292
  lnglat: '120.6,27.9',
15287
15293
  radius: 5000,
@@ -15297,7 +15303,8 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
15297
15303
  });
15298
15304
  return __awaiter(this, void 0, void 0, function* () {
15299
15305
  _super.ngOnInit.call(this);
15300
- // await this.parent.init$;
15306
+ yield this.parent.init$;
15307
+ this.initSearch();
15301
15308
  // this.startDraw();
15302
15309
  });
15303
15310
  }
@@ -15324,27 +15331,9 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
15324
15331
  const data = [];
15325
15332
  this.data.forEach((r) => {
15326
15333
  if (r.type === 'circle') {
15327
- // const radius = (r.radius * 180) / EARTH_RADIUS / Math.PI;
15328
- // // let radius = cradius / 90;
15329
- // let pointNum = 90;
15330
- // let startAngle = 0;
15331
- // let endAngle = Math.PI * 2;
15332
- // let points = [];
15333
- // const lnglat = r.lnglat.split(',');
15334
- // const lng = +lnglat[0];
15335
- // const lat = +lnglat[1];
15336
- // for (var i = 0; i <= pointNum; i++) {
15337
- // const angle = startAngle + ((endAngle - startAngle) * i) / pointNum;
15338
- // const x = lng + (radius * Math.cos(angle)) / Math.abs(Math.cos((lat * Math.PI) / 180));
15339
- // const y = lat + radius * Math.sin(angle);
15340
- // points.push([x, y]);
15341
- // }
15342
- // data.push({
15343
- // geometry: {
15344
- // type: 'Polygon',
15345
- // coordinates: [points],
15346
- // },
15347
- // });
15334
+ if (!r.radius || !r.lnglat) {
15335
+ return;
15336
+ }
15348
15337
  let pointsCount = 90;
15349
15338
  const radius = r.radius;
15350
15339
  const lnglat = r.lnglat.split(',');
@@ -15357,7 +15346,7 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
15357
15346
  // 遍历 0~360°,生成等间隔的点
15358
15347
  for (let i = 0; i < pointsCount; i++) {
15359
15348
  // 计算当前点的方位角(弧度):从0°到360°,均分pointsCount份
15360
- const angleRad = (i * 360 / pointsCount) * Math.PI / 180;
15349
+ const angleRad = (((i * 360) / pointsCount) * Math.PI) / 180;
15361
15350
  // 计算当前点相对于中心点的经纬度增量(弧度)
15362
15351
  const deltaLatRad = (radius * Math.cos(angleRad)) / EARTH_RADIUS$1;
15363
15352
  const deltaLngRad = (radius * Math.sin(angleRad)) / (EARTH_RADIUS$1 * Math.cos(centerLatRad));
@@ -15375,14 +15364,21 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
15375
15364
  });
15376
15365
  }
15377
15366
  else {
15378
- const coordinates = r.lnglat.split(';').map((r) => {
15367
+ if (!r.lnglat) {
15368
+ return;
15369
+ }
15370
+ // const coordinates = r.lnglat.split(';').map((r) => {
15371
+ // const lnglat = r.split(',');
15372
+ // return [+lnglat[0], +lnglat[1]];
15373
+ // });
15374
+ const coordinates = r.lnglat.split('\n').map((r) => r.split(';').map((r) => {
15379
15375
  const lnglat = r.split(',');
15380
15376
  return [+lnglat[0], +lnglat[1]];
15381
- });
15377
+ }));
15382
15378
  data.push({
15383
15379
  geometry: {
15384
15380
  type: 'Polygon',
15385
- coordinates: [coordinates],
15381
+ coordinates: coordinates,
15386
15382
  },
15387
15383
  });
15388
15384
  }
@@ -15404,22 +15400,40 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
15404
15400
  lnglat: `${lnglat.lng},${lnglat.lat}`,
15405
15401
  radius: radius,
15406
15402
  };
15407
- this.data.push(data);
15408
- this.updateData();
15403
+ // this.tempOverlay.forEach((r) => {
15404
+ // this.parent.map.removeOverlay(r);
15405
+ // });
15409
15406
  this.create.emit(data);
15407
+ this.editOverlay = null;
15410
15408
  }
15411
15409
  else {
15412
15410
  const points = e.target.overlay.getPoints();
15413
15411
  if (!this.data) {
15414
15412
  this.data = [];
15415
15413
  }
15416
- const data = {
15417
- type: 'polygon',
15418
- lnglat: points.map((p) => `${p.latLng.lng},${p.latLng.lat}`).join(';'),
15419
- };
15414
+ let data;
15415
+ if (points.length && Array.isArray(points[0])) {
15416
+ data = {
15417
+ type: 'polygon',
15418
+ lnglat: points.map((ps) => ps.map((p) => `${p.latLng.lng},${p.latLng.lat}`).join(';')).join('\n'),
15419
+ };
15420
+ }
15421
+ else {
15422
+ data = {
15423
+ type: 'polygon',
15424
+ lnglat: points.map((p) => `${p.latLng.lng},${p.latLng.lat}`).join(';'),
15425
+ };
15426
+ }
15420
15427
  this.create.emit(data);
15421
15428
  }
15422
15429
  });
15430
+ this.scene.addEventListener(OperateEventType.CANCEL, (e) => {
15431
+ console.log(e);
15432
+ if (this.editOverlay) {
15433
+ this.parent.map.removeOverlay(this.editOverlay);
15434
+ this.editOverlay = null;
15435
+ }
15436
+ });
15423
15437
  }
15424
15438
  switch (type) {
15425
15439
  case 'polygon':
@@ -15463,52 +15477,15 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
15463
15477
  this.circle.open();
15464
15478
  break;
15465
15479
  }
15466
- // this.stopDraw();
15467
- // this.editData = [];
15468
- // this.editLayer = new mapvgl.IconLayer({
15469
- // width: 20 / 2,
15470
- // height: 30.6 / 2,
15471
- // offset: [0, -30.6 / 2 / 2],
15472
- // icon: 'assets/img/screen/marker.png',
15473
- // enablePicked: true, // 是否可以拾取
15474
- // selectedIndex: -1, // 选中项
15475
- // selectedColor: '#ff0000', // 选中项颜色
15476
- // autoSelect: true, // 根据鼠标位置来自动设置选中项
15477
- // onRightClick: (e) => {
15478
- // console.log('right click', e);
15479
- // this.editData.splice(e.dataIndex, 1);
15480
- // this.updateEditData();
15481
- // },
15482
- // });
15483
- // this.parent.addLayer(this.editLayer);
15484
- // this.editLineLayer = new mapvgl.SimpleLineLayer({
15485
- // color: 'rgba(50, 50, 200, 1)',
15486
- // blend: 'lighter',
15487
- // data: [
15488
- // {
15489
- // geometry: {
15490
- // type: 'LineString',
15491
- // coordinates: [
15492
- // [116.394191, 39.91334],
15493
- // [116.417259, 39.913672],
15494
- // ],
15495
- // },
15496
- // },
15497
- // ],
15498
- // });
15499
- // this.parent.addLayer(this.editLineLayer);
15500
- // this.parent.mapClick.pipe(takeUntil(this.stopEdit$)).subscribe((point) => {
15501
- // this.editData.push([point.lng, point.lat]);
15502
- // // this.editData.push({
15503
- // // geometry: {
15504
- // // type: 'Point',
15505
- // // coordinates: [point.lng, point.lat],
15506
- // // },
15507
- // // });
15508
- // this.updateEditData();
15509
- // });
15510
15480
  });
15511
15481
  }
15482
+ getOptions() {
15483
+ return {
15484
+ fillColor: this.fillColor,
15485
+ strokeWeight: this.lineWidth,
15486
+ strokeColor: this.lineColor,
15487
+ };
15488
+ }
15512
15489
  updateEditData() {
15513
15490
  if (this.editLayer) {
15514
15491
  this.editLayer.setData(this.editData.map((r) => ({ geometry: { type: 'Point', coordinates: r } })));
@@ -15551,24 +15528,120 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
15551
15528
  // this.editData = null;
15552
15529
  }
15553
15530
  search() {
15554
- if (!this.searchText) {
15555
- }
15556
- var local = new BMapGL.LocalSearch(this.parent.map, {
15557
- //智能搜索
15558
- onSearchComplete: (res) => {
15559
- console.log(res, local);
15560
- },
15531
+ return __awaiter(this, void 0, void 0, function* () {
15532
+ // 如果正在绘制多边形围栏,获取地名边界并绘制
15533
+ const { PolygonEdit } = yield import('bmap-draw');
15534
+ if (this.areaName) {
15535
+ const boundary = new BMapGL.Boundary();
15536
+ // 百度地图 Geocoder.getLocation 回调签名:(results, status)
15537
+ boundary.get(this.areaName, (results) => {
15538
+ console.log('边界坐标数组:', results);
15539
+ // 检查状态是否成功
15540
+ if (results && results.boundaries && results.boundaries.length) {
15541
+ this.stopDraw();
15542
+ if (!this.polygonEdit) {
15543
+ this.polygonEdit = new PolygonEdit(this.scene);
15544
+ }
15545
+ const points = results.boundaries.map((boundary) => boundary.split(';').map((p) => {
15546
+ const [lng, lat] = p.split(',');
15547
+ return new BMapGL.Point(Number(lng), Number(lat));
15548
+ }));
15549
+ const overlay = new BMapGL.Polygon(points, this.getOptions());
15550
+ console.log(overlay);
15551
+ this.editOverlay = overlay;
15552
+ this.parent.map.addOverlay(overlay);
15553
+ this.parent.map.setViewport([].concat.apply([], points));
15554
+ this.polygonEdit.edit(overlay);
15555
+ }
15556
+ else {
15557
+ this.message.error('行政区域不存在');
15558
+ }
15559
+ });
15560
+ }
15561
15561
  });
15562
- local.search(this.searchText);
15562
+ }
15563
+ initSearch() {
15564
+ return __awaiter(this, void 0, void 0, function* () {
15565
+ const { PolygonEdit, CircleEdit } = yield import('bmap-draw');
15566
+ const ac = new BMapGL.Autocomplete({
15567
+ input: this.suggest.nativeElement,
15568
+ location: this.parent.map,
15569
+ });
15570
+ ac.addEventListener('onconfirm', (e) => {
15571
+ // 鼠标点击下拉列表后的事件
15572
+ const value = e.item.value;
15573
+ console.log(e);
15574
+ // 如果正在绘制圆形围栏
15575
+ if (this.circle) {
15576
+ if (!this.circleEdit) {
15577
+ this.circleEdit = new CircleEdit(this.scene);
15578
+ }
15579
+ const center = new BMapGL.Point(value.location.lng, value.location.lat);
15580
+ this.parent.map.centerAndZoom(center, 16);
15581
+ const overlay = new BMapGL.Circle(center, 300, this.getOptions());
15582
+ this.editOverlay = overlay;
15583
+ this.parent.map.addOverlay(overlay);
15584
+ this.circleEdit.open(overlay);
15585
+ this.searchText = null;
15586
+ }
15587
+ });
15588
+ });
15589
+ }
15590
+ moveToView(id) {
15591
+ if (!this.data || !id) {
15592
+ return;
15593
+ }
15594
+ const data = this.data.find((r) => r.id === id);
15595
+ if (!data) {
15596
+ return;
15597
+ }
15598
+ if (data.type === 'circle') {
15599
+ const [lng, lat] = data.lnglat.split(',');
15600
+ const centerLng = Number(lng);
15601
+ const centerLat = Number(lat);
15602
+ const radius = Number(data.radius);
15603
+ // 转换中心点纬度为弧度
15604
+ const centerLatRad = (centerLat * Math.PI) / 180;
15605
+ // 计算经度方向的偏移(弧度)
15606
+ const deltaLngRad = radius / (EARTH_RADIUS$1 * Math.cos(centerLatRad));
15607
+ // 计算纬度方向的偏移(弧度)
15608
+ const deltaLatRad = radius / EARTH_RADIUS$1;
15609
+ // 转换为角度偏移
15610
+ const deltaLng = (deltaLngRad * 180) / Math.PI;
15611
+ const deltaLat = (deltaLatRad * 180) / Math.PI;
15612
+ // 计算圆形的四个边界点(上、下、左、右)
15613
+ const points = [
15614
+ new BMapGL.Point(centerLng, centerLat + deltaLat),
15615
+ new BMapGL.Point(centerLng, centerLat - deltaLat),
15616
+ new BMapGL.Point(centerLng - deltaLng, centerLat),
15617
+ new BMapGL.Point(centerLng + deltaLng, centerLat),
15618
+ ];
15619
+ // 使用 setViewport 方法调整视图,使整个圆形可见
15620
+ this.parent.map.setViewport(points);
15621
+ }
15622
+ else {
15623
+ this.parent.map.setViewport(data.lnglat.split(/[;\n\r]+/).map((p) => {
15624
+ const [lng, lat] = p.split(',');
15625
+ return new BMapGL.Point(Number(lng), Number(lat));
15626
+ }));
15627
+ }
15563
15628
  }
15564
15629
  };
15565
15630
  BaiduFenceComponent.decorators = [
15566
15631
  { type: Component, args: [{
15567
15632
  selector: 'sc-baidu-fence',
15568
- template: "<ng-container *ngIf=\"showDrawButton\">\n <button nz-button (click)=\"startDraw('polygon')\">\u7ED8\u5236\u591A\u8FB9\u5F62</button>\n <button nz-button (click)=\"startDraw('circle')\">\u7ED8\u5236\u5706\u5F62</button>\n <button nz-button (click)=\"stopDraw()\">\u7ED3\u675F\u7ED8\u5236</button>\n</ng-container>\n\n<!-- <input type=\"text\" placeholder=\"\u8BF7\u8F93\u5165\u5730\u70B9\" [(ngModel)]=\"searchText\" />\n<button nz-button (click)=\"search()\">\u67E5\u8BE2</button> -->\n",
15569
- styles: [":host{position:absolute;display:block;left:0;top:0;z-index:100;padding:12px;pointer-events:auto}button{transition:none}"]
15633
+ template: "<ng-container *ngIf=\"showDrawButton\">\n <button nz-button (click)=\"startDraw('polygon')\">\u7ED8\u5236\u591A\u8FB9\u5F62</button>\n <button nz-button (click)=\"startDraw('circle')\">\u7ED8\u5236\u5706\u5F62</button>\n <button nz-button (click)=\"stopDraw()\">\u7ED3\u675F\u7ED8\u5236</button>\n <button nz-button (click)=\"moveToView('1')\">\u79FB\u52A8\u5230\u4E2D\u5FC31</button>\n <button nz-button (click)=\"moveToView('2')\">\u79FB\u52A8\u5230\u4E2D\u5FC32</button>\n</ng-container>\n<input\n nz-input\n [ngClass]=\"{ hidden: !circle?.isOpen }\"\n #suggest\n type=\"text\"\n [(ngModel)]=\"searchText\"\n placeholder=\"\u8BF7\u8F93\u5165\u4E2D\u5FC3\u70B9\u4F4D\u7F6E\"\n class=\"input\"\n/>\n<ng-container *ngIf=\"polygon?.isOpen\">\n <input nz-input type=\"text\" placeholder=\"\u8BF7\u8F93\u5165\u884C\u653F\u533A\u540D\u79F0\" [(ngModel)]=\"areaName\" class=\"input\" />\n <button nz-button (click)=\"search()\" style=\"margin-left: 12px\">\u786E\u8BA4</button>\n</ng-container>\n<!-- <input type=\"text\" placeholder=\"\u8BF7\u8F93\u5165\u5730\u70B9\" [(ngModel)]=\"searchText\" />\n<button nz-button (click)=\"search()\">\u67E5\u8BE2</button> -->\n",
15634
+ styles: [":host{position:absolute;display:block;left:0;top:0;z-index:100;padding:12px;pointer-events:auto}button{transition:none}.hidden{display:none}.input{width:300px;margin-left:12px}"]
15570
15635
  },] }
15571
15636
  ];
15637
+ BaiduFenceComponent.ctorParameters = () => [
15638
+ { type: CustomBaiduMapComponent },
15639
+ { type: NgZone },
15640
+ { type: NzMessageService }
15641
+ ];
15642
+ BaiduFenceComponent.propDecorators = {
15643
+ suggest: [{ type: ViewChild, args: ['suggest',] }]
15644
+ };
15572
15645
  __decorate([
15573
15646
  Property('线条宽度', {
15574
15647
  ui: { widget: 'myRange', min: 1, max: 40, step: 1 },
@@ -15640,15 +15713,241 @@ __decorate([
15640
15713
  __metadata("design:paramtypes", []),
15641
15714
  __metadata("design:returntype", void 0)
15642
15715
  ], BaiduFenceComponent.prototype, "stopDraw", null);
15716
+ __decorate([
15717
+ Method('移动到中心'),
15718
+ __param(0, Param('id')),
15719
+ __metadata("design:type", Function),
15720
+ __metadata("design:paramtypes", [String]),
15721
+ __metadata("design:returntype", void 0)
15722
+ ], BaiduFenceComponent.prototype, "moveToView", null);
15643
15723
  BaiduFenceComponent = __decorate([
15644
15724
  Widget('电子围栏', {
15645
15725
  group: 'component',
15646
15726
  image: '',
15647
15727
  icon: '',
15648
15728
  hidden: true,
15649
- })
15729
+ }),
15730
+ __metadata("design:paramtypes", [CustomBaiduMapComponent,
15731
+ NgZone,
15732
+ NzMessageService])
15650
15733
  ], BaiduFenceComponent);
15651
15734
 
15735
+ let BaiduLushuComponent = class BaiduLushuComponent {
15736
+ constructor(parent, lazy, zone) {
15737
+ this.parent = parent;
15738
+ this.lazy = lazy;
15739
+ this.zone = zone;
15740
+ this.speed = 500;
15741
+ this.iconWidth = 32;
15742
+ this.iconHeight = 32;
15743
+ this.showPolyline = true;
15744
+ this.polylineColor = '#111';
15745
+ this.autoStart = true;
15746
+ // @Property('自动视野调整', { type: 'boolean' })
15747
+ // autoView = true;
15748
+ this.enableRotation = true;
15749
+ this.defaultContent = '行驶中';
15750
+ this.data = [
15751
+ {
15752
+ lng: '120.7',
15753
+ lat: '28',
15754
+ },
15755
+ {
15756
+ lng: '120.71',
15757
+ lat: '28.01',
15758
+ landmark: '加油站',
15759
+ pauseTime: 2,
15760
+ },
15761
+ {
15762
+ lng: '120.79',
15763
+ lat: '28.1',
15764
+ },
15765
+ ];
15766
+ this.lushu = null;
15767
+ this.inited = false;
15768
+ }
15769
+ ngOnInit() {
15770
+ this.zone.runOutsideAngular(() => __awaiter(this, void 0, void 0, function* () {
15771
+ yield this.parent.init$;
15772
+ yield this.lazy.loadScript('/assets/js/BMapGL/Lushu.js');
15773
+ this.inited = true;
15774
+ this.update();
15775
+ }));
15776
+ }
15777
+ ngOnChanges(changes) {
15778
+ if (this.inited) {
15779
+ this.zone.runOutsideAngular(() => {
15780
+ this.update();
15781
+ });
15782
+ }
15783
+ }
15784
+ ngOnDestroy() {
15785
+ this.clear();
15786
+ }
15787
+ update() {
15788
+ var _a;
15789
+ this.clear();
15790
+ if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.length)) {
15791
+ return;
15792
+ }
15793
+ const landmarkPois = [];
15794
+ const arrPois = this.data.map((item) => {
15795
+ if (item.landmark || item.pauseTime) {
15796
+ landmarkPois.push({
15797
+ lng: Number(item.lng),
15798
+ lat: Number(item.lat),
15799
+ html: item.landmark,
15800
+ pauseTime: item.pauseTime ? Number(item.pauseTime) : 0,
15801
+ });
15802
+ }
15803
+ return new BMapGL.Point(item.lng, item.lat);
15804
+ });
15805
+ if (this.showPolyline) {
15806
+ this.polyline = new BMapGL.Polyline(arrPois, { strokeColor: this.polylineColor });
15807
+ this.parent.map.addOverlay(this.polyline);
15808
+ }
15809
+ this.lushu = new BMapGLLib.LuShu(this.parent.map, arrPois, {
15810
+ defaultContent: this.defaultContent || '',
15811
+ autoView: false,
15812
+ icon: new BMapGL.Icon(this.icon || '/assets/img/screen/car.png', new BMapGL.Size(this.iconWidth, this.iconHeight), {
15813
+ anchor: new BMapGL.Size(10, 10),
15814
+ }),
15815
+ speed: this.speed,
15816
+ enableRotation: this.enableRotation,
15817
+ // defaultContent不为空时才会显示
15818
+ landmarkPois: landmarkPois,
15819
+ });
15820
+ if (this.autoStart) {
15821
+ this.start();
15822
+ }
15823
+ }
15824
+ start() {
15825
+ if (this.lushu) {
15826
+ this.parent.map.setViewport(this.lushu.path);
15827
+ this.lushu.start();
15828
+ }
15829
+ }
15830
+ stop() {
15831
+ if (this.lushu) {
15832
+ this.lushu.stop();
15833
+ }
15834
+ }
15835
+ pause() {
15836
+ if (this.lushu) {
15837
+ this.lushu.pause();
15838
+ }
15839
+ }
15840
+ clear() {
15841
+ if (this.lushu) {
15842
+ this.lushu.clear();
15843
+ this.lushu = null;
15844
+ }
15845
+ if (this.polyline) {
15846
+ this.parent.map.removeOverlay(this.polyline);
15847
+ }
15848
+ }
15849
+ setSpeed(speed) {
15850
+ if (speed) {
15851
+ this.speed = speed;
15852
+ this.update();
15853
+ }
15854
+ }
15855
+ };
15856
+ BaiduLushuComponent.decorators = [
15857
+ { type: Component, args: [{
15858
+ selector: 'sc-baidu-lushu',
15859
+ template: "",
15860
+ styles: [""]
15861
+ },] }
15862
+ ];
15863
+ BaiduLushuComponent.ctorParameters = () => [
15864
+ { type: CustomBaiduMapComponent },
15865
+ { type: LazyService$1 },
15866
+ { type: NgZone }
15867
+ ];
15868
+ __decorate([
15869
+ Property('速度', { type: 'number' }),
15870
+ __metadata("design:type", Object)
15871
+ ], BaiduLushuComponent.prototype, "speed", void 0);
15872
+ __decorate([
15873
+ Property('图标', { type: 'string', ui: { widget: 'myPicture' } }),
15874
+ __metadata("design:type", String)
15875
+ ], BaiduLushuComponent.prototype, "icon", void 0);
15876
+ __decorate([
15877
+ Property('图标宽度', { type: 'number' }),
15878
+ __metadata("design:type", Number)
15879
+ ], BaiduLushuComponent.prototype, "iconWidth", void 0);
15880
+ __decorate([
15881
+ Property('图标高度', { type: 'number' }),
15882
+ __metadata("design:type", Number)
15883
+ ], BaiduLushuComponent.prototype, "iconHeight", void 0);
15884
+ __decorate([
15885
+ Property('显示轨迹', { type: 'boolean' }),
15886
+ __metadata("design:type", Object)
15887
+ ], BaiduLushuComponent.prototype, "showPolyline", void 0);
15888
+ __decorate([
15889
+ Property('轨迹颜色', { type: 'string', ui: { widget: 'myColor', visibleIf: { showPolyline: [true] } } }),
15890
+ __metadata("design:type", String)
15891
+ ], BaiduLushuComponent.prototype, "polylineColor", void 0);
15892
+ __decorate([
15893
+ Property('自动播放', { type: 'boolean' }),
15894
+ __metadata("design:type", Object)
15895
+ ], BaiduLushuComponent.prototype, "autoStart", void 0);
15896
+ __decorate([
15897
+ Property('自动转向', { type: 'boolean' }),
15898
+ __metadata("design:type", Object)
15899
+ ], BaiduLushuComponent.prototype, "enableRotation", void 0);
15900
+ __decorate([
15901
+ Property('默认内容', { type: 'string' }),
15902
+ __metadata("design:type", Object)
15903
+ ], BaiduLushuComponent.prototype, "defaultContent", void 0);
15904
+ __decorate([
15905
+ Data({
15906
+ properties: {
15907
+ lng: { type: 'number', title: '经度' },
15908
+ lat: { type: 'number', title: '纬度' },
15909
+ landmark: { type: 'string', title: '标记点' },
15910
+ pauseTime: { type: 'number', title: '暂停时间' },
15911
+ },
15912
+ }),
15913
+ __metadata("design:type", Array)
15914
+ ], BaiduLushuComponent.prototype, "data", void 0);
15915
+ __decorate([
15916
+ Method('播放'),
15917
+ __metadata("design:type", Function),
15918
+ __metadata("design:paramtypes", []),
15919
+ __metadata("design:returntype", void 0)
15920
+ ], BaiduLushuComponent.prototype, "start", null);
15921
+ __decorate([
15922
+ Method('停止'),
15923
+ __metadata("design:type", Function),
15924
+ __metadata("design:paramtypes", []),
15925
+ __metadata("design:returntype", void 0)
15926
+ ], BaiduLushuComponent.prototype, "stop", null);
15927
+ __decorate([
15928
+ Method('暂停'),
15929
+ __metadata("design:type", Function),
15930
+ __metadata("design:paramtypes", []),
15931
+ __metadata("design:returntype", void 0)
15932
+ ], BaiduLushuComponent.prototype, "pause", null);
15933
+ __decorate([
15934
+ Method('设置速度'),
15935
+ __metadata("design:type", Function),
15936
+ __metadata("design:paramtypes", [Number]),
15937
+ __metadata("design:returntype", void 0)
15938
+ ], BaiduLushuComponent.prototype, "setSpeed", null);
15939
+ BaiduLushuComponent = __decorate([
15940
+ Widget('轨迹', {
15941
+ group: 'component',
15942
+ image: '',
15943
+ icon: '',
15944
+ hidden: true,
15945
+ }),
15946
+ __metadata("design:paramtypes", [CustomBaiduMapComponent,
15947
+ LazyService$1,
15948
+ NgZone])
15949
+ ], BaiduLushuComponent);
15950
+
15652
15951
  class CustomBaiduMapModule {
15653
15952
  constructor(widgetService) {
15654
15953
  widgetService.register(CustomBaiduMapComponent, { scaleContent: false });
@@ -15657,6 +15956,7 @@ class CustomBaiduMapModule {
15657
15956
  widgetService.register(WindLayerComponent);
15658
15957
  widgetService.register(TyphoonAreaLayerComponent);
15659
15958
  widgetService.register(BaiduFenceComponent);
15959
+ widgetService.register(BaiduLushuComponent);
15660
15960
  }
15661
15961
  }
15662
15962
  CustomBaiduMapModule.decorators = [
@@ -15668,6 +15968,7 @@ CustomBaiduMapModule.decorators = [
15668
15968
  WindLayerComponent,
15669
15969
  TyphoonAreaLayerComponent,
15670
15970
  BaiduFenceComponent,
15971
+ BaiduLushuComponent,
15671
15972
  ],
15672
15973
  imports: [
15673
15974
  CommonModule,
@@ -15678,6 +15979,7 @@ CustomBaiduMapModule.decorators = [
15678
15979
  NzRadioModule,
15679
15980
  FormsModule,
15680
15981
  NzButtonModule,
15982
+ NzInputModule,
15681
15983
  ],
15682
15984
  },] }
15683
15985
  ];
@@ -21032,5 +21334,5 @@ WorkbenchWidgetModule.ctorParameters = () => [
21032
21334
  * Generated bundle index. Do not edit.
21033
21335
  */
21034
21336
 
21035
- export { AudioModule, BarChartThreeDModule, BasicBarChartComponent, BasicBarChartModule, BasicLineChartModule, BasicPieChartModule, BasicPlanimetricMapModule, BubbleChartModule, CheckboxModule, CommonService, CrossTableModule, CustomBaiduMapModule, DatePickerModule, FileUrlService, FunnelChartModule, GaodeMapService, GaugeModule, IframeModule, LiquidFillModule, MarqueeModule, PercentPieChartModule, PlanimetricMap2dModule, PlanimetricMap3dModule, RadarChartModule, Scatter3dModule, ScreenWidgetModule, SelectModule, TableModule, TreeControlModule, TreeRingChartModule, VideoGridModule, VideoPlayerModule, VisualMapChartModule, WorkbenchWidgetModule, ɵ0$2 as ɵ0, ɵ1$2 as ɵ1, ɵ2$2 as ɵ2, ɵ3$2 as ɵ3, ImageModule as ɵa, ImageComponent as ɵb, WeatherModule as ɵba, WeatherComponent as ɵbb, RadioModule as ɵbc, RadioComponent as ɵbd, CheckboxComponent as ɵbe, RateModule as ɵbf, RateComponent as ɵbg, GeneralTextModule as ɵbh, GeneralTextComponent as ɵbi, MarqueeComponent as ɵbj, WordartModule as ɵbk, WordartComponent as ɵbl, IconfontModule as ɵbm, IconfontComponent as ɵbn, TableComponent as ɵbo, AudioComponent as ɵbp, VideoPlayerComponent as ɵbq, ShapeModule as ɵbr, ShapeComponent as ɵbs, BackgroundModule as ɵbt, BackgroundComponent as ɵbu, ShufflingListModule as ɵbv, ShufflingListComponent as ɵbw, ColorPipe as ɵbx, BasicPlanimetricMapComponent as ɵby, ParentContainerComponent as ɵbz, BasicLineChartComponent as ɵc, BreathingBubbleLayerModule as ɵca, BreathingBubbleLayerComponent as ɵcb, PlanimetricMap2dComponent as ɵcc, FlyLineLayerModule as ɵcd, FlyLineLayerComponent as ɵce, Map2dPolylineLayerModule as ɵcf, Map2dPolylineLayerComponent as ɵcg, Map2dMarkLayerModule as ɵch, Map2dMarkLayerComponent as ɵci, Map2dVisualLayerModule as ɵcj, Map2dVisualLayerComponent as ɵck, ParentContainerModule as ɵcl, PlanimetricMap3dComponent as ɵcm, Map3dMarkLayerModule as ɵcn, Map3dMarkLayerComponent as ɵco, Map3dLineLayerModule as ɵcp, Map3dLineLayerComponent as ɵcq, MipAnimModule as ɵcr, MipAnimComponent as ɵcs, TreeControlComponent as ɵct, VisualMapChartComponent as ɵcu, DatePickerComponent as ɵcv, TimePickerModule as ɵcw, TimePickerComponent as ɵcx, CustomBaiduMapComponent as ɵcy, BaiduMarkerLayerComponent as ɵcz, BasicPieChartComponent as ɵd, BaseLayer as ɵda, BaiduPolylineLayerComponent as ɵdb, WindLayerComponent as ɵdc, TyphoonAreaLayerComponent as ɵdd, BaiduFenceComponent as ɵde, UploadModule as ɵdf, UploadComponent as ɵdg, CrossTableComponent as ɵdh, Pie3dChartModule as ɵdi, Pie3dChartComponent as ɵdj, HighChartsService as ɵdk, MultiTitleGaugeModule as ɵdl, MultiTitleGaugeComponent as ɵdm, GaugeProgressModule as ɵdn, GaugeProgressComponent as ɵdo, ItemSwiperModule as ɵdp, ItemSwiperComponent as ɵdq, BulletinBoardModule as ɵdr, BulletinBoardComponent as ɵds, TemporaryDataModule as ɵdt, TemporaryDataComponent as ɵdu, LineLightFlowModule as ɵdv, LineLightFlowComponent as ɵdw, IframeComponent as ɵdx, VideoGridComponent as ɵdy, Scatter3dComponent as ɵdz, LineBarChartModule as ɵe, AnnouncementModule as ɵea, AnnouncementComponent as ɵeb, TabsModule as ɵec, TabsComponent as ɵed, TabComponent as ɵee, CalendarModule as ɵef, CalendarComponent as ɵeg, BackgroundEventsComponent as ɵeh, CalendarEventsChild as ɵei, EventsComponent as ɵej, GanttModule as ɵek, GanttComponent as ɵel, LineBarChartComponent as ɵf, BarChartThreeDComponent as ɵg, BubbleChartComponent as ɵh, RadarChartComponent as ɵi, FunnelChartComponent as ɵj, PercentPieChartComponent as ɵk, TreeRingChartComponent as ɵl, GaugeComponent as ɵm, LiquidFillComponent as ɵn, ButtonModule as ɵo, ButtonComponent as ɵp, HttpService as ɵq, TimerModule as ɵr, TimerComponent as ɵs, NumberFlopModule as ɵt, NumberFlopComponent as ɵu, VoteModule as ɵv, VoteComponent as ɵw, SelectComponent as ɵx, SearchModule as ɵy, SearchComponent as ɵz };
21337
+ export { AudioModule, BarChartThreeDModule, BasicBarChartComponent, BasicBarChartModule, BasicLineChartModule, BasicPieChartModule, BasicPlanimetricMapModule, BubbleChartModule, CheckboxModule, CommonService, CrossTableModule, CustomBaiduMapModule, DatePickerModule, FileUrlService, FunnelChartModule, GaodeMapService, GaugeModule, IframeModule, LiquidFillModule, MarqueeModule, PercentPieChartModule, PlanimetricMap2dModule, PlanimetricMap3dModule, RadarChartModule, Scatter3dModule, ScreenWidgetModule, SelectModule, TableModule, TreeControlModule, TreeRingChartModule, VideoGridModule, VideoPlayerModule, VisualMapChartModule, WorkbenchWidgetModule, ɵ0$2 as ɵ0, ɵ1$2 as ɵ1, ɵ2$2 as ɵ2, ɵ3$2 as ɵ3, ImageModule as ɵa, ImageComponent as ɵb, WeatherModule as ɵba, WeatherComponent as ɵbb, RadioModule as ɵbc, RadioComponent as ɵbd, CheckboxComponent as ɵbe, RateModule as ɵbf, RateComponent as ɵbg, GeneralTextModule as ɵbh, GeneralTextComponent as ɵbi, MarqueeComponent as ɵbj, WordartModule as ɵbk, WordartComponent as ɵbl, IconfontModule as ɵbm, IconfontComponent as ɵbn, TableComponent as ɵbo, AudioComponent as ɵbp, VideoPlayerComponent as ɵbq, ShapeModule as ɵbr, ShapeComponent as ɵbs, BackgroundModule as ɵbt, BackgroundComponent as ɵbu, ShufflingListModule as ɵbv, ShufflingListComponent as ɵbw, ColorPipe as ɵbx, BasicPlanimetricMapComponent as ɵby, ParentContainerComponent as ɵbz, BasicLineChartComponent as ɵc, BreathingBubbleLayerModule as ɵca, BreathingBubbleLayerComponent as ɵcb, PlanimetricMap2dComponent as ɵcc, FlyLineLayerModule as ɵcd, FlyLineLayerComponent as ɵce, Map2dPolylineLayerModule as ɵcf, Map2dPolylineLayerComponent as ɵcg, Map2dMarkLayerModule as ɵch, Map2dMarkLayerComponent as ɵci, Map2dVisualLayerModule as ɵcj, Map2dVisualLayerComponent as ɵck, ParentContainerModule as ɵcl, PlanimetricMap3dComponent as ɵcm, Map3dMarkLayerModule as ɵcn, Map3dMarkLayerComponent as ɵco, Map3dLineLayerModule as ɵcp, Map3dLineLayerComponent as ɵcq, MipAnimModule as ɵcr, MipAnimComponent as ɵcs, TreeControlComponent as ɵct, VisualMapChartComponent as ɵcu, DatePickerComponent as ɵcv, TimePickerModule as ɵcw, TimePickerComponent as ɵcx, CustomBaiduMapComponent as ɵcy, BaiduMarkerLayerComponent as ɵcz, BasicPieChartComponent as ɵd, BaseLayer as ɵda, BaiduPolylineLayerComponent as ɵdb, WindLayerComponent as ɵdc, TyphoonAreaLayerComponent as ɵdd, BaiduFenceComponent as ɵde, BaiduLushuComponent as ɵdf, UploadModule as ɵdg, UploadComponent as ɵdh, CrossTableComponent as ɵdi, Pie3dChartModule as ɵdj, Pie3dChartComponent as ɵdk, HighChartsService as ɵdl, MultiTitleGaugeModule as ɵdm, MultiTitleGaugeComponent as ɵdn, GaugeProgressModule as ɵdo, GaugeProgressComponent as ɵdp, ItemSwiperModule as ɵdq, ItemSwiperComponent as ɵdr, BulletinBoardModule as ɵds, BulletinBoardComponent as ɵdt, TemporaryDataModule as ɵdu, TemporaryDataComponent as ɵdv, LineLightFlowModule as ɵdw, LineLightFlowComponent as ɵdx, IframeComponent as ɵdy, VideoGridComponent as ɵdz, LineBarChartModule as ɵe, Scatter3dComponent as ɵea, AnnouncementModule as ɵeb, AnnouncementComponent as ɵec, TabsModule as ɵed, TabsComponent as ɵee, TabComponent as ɵef, CalendarModule as ɵeg, CalendarComponent as ɵeh, BackgroundEventsComponent as ɵei, CalendarEventsChild as ɵej, EventsComponent as ɵek, GanttModule as ɵel, GanttComponent as ɵem, LineBarChartComponent as ɵf, BarChartThreeDComponent as ɵg, BubbleChartComponent as ɵh, RadarChartComponent as ɵi, FunnelChartComponent as ɵj, PercentPieChartComponent as ɵk, TreeRingChartComponent as ɵl, GaugeComponent as ɵm, LiquidFillComponent as ɵn, ButtonModule as ɵo, ButtonComponent as ɵp, HttpService as ɵq, TimerModule as ɵr, TimerComponent as ɵs, NumberFlopModule as ɵt, NumberFlopComponent as ɵu, VoteModule as ɵv, VoteComponent as ɵw, SelectComponent as ɵx, SearchModule as ɵy, SearchComponent as ɵz };
21036
21338
  //# sourceMappingURL=bbj-screen-widget.js.map