bbj-screen-widget 2.4.66 → 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.
- package/bbj-screen-widget.d.ts +34 -33
- package/bbj-screen-widget.metadata.json +1 -1
- package/bundles/bbj-screen-widget-core.umd.js +1 -1
- package/bundles/bbj-screen-widget-core.umd.js.map +1 -1
- package/bundles/bbj-screen-widget-core.umd.min.js +1 -1
- package/bundles/bbj-screen-widget-core.umd.min.js.map +1 -1
- package/bundles/bbj-screen-widget.umd.js +730 -353
- package/bundles/bbj-screen-widget.umd.js.map +1 -1
- package/bundles/bbj-screen-widget.umd.min.js +1 -1
- package/bundles/bbj-screen-widget.umd.min.js.map +1 -1
- package/esm2015/bbj-screen-widget.js +35 -34
- package/esm2015/core/service/baidu-map.service.js +2 -2
- package/esm2015/lib/custom-baidu-map/baidu-fence/baidu-fence.component.js +168 -88
- package/esm2015/lib/custom-baidu-map/baidu-lushu/baidu-lushu.component.js +222 -0
- package/esm2015/lib/custom-baidu-map/custom-baidu-map.component.js +2 -1
- package/esm2015/lib/custom-baidu-map/custom-baidu-map.module.js +6 -1
- package/fesm2015/bbj-screen-widget-core.js +1 -1
- package/fesm2015/bbj-screen-widget-core.js.map +1 -1
- package/fesm2015/bbj-screen-widget.js +385 -87
- package/fesm2015/bbj-screen-widget.js.map +1 -1
- package/lib/custom-baidu-map/baidu-fence/baidu-fence.component.d.ts +20 -2
- package/lib/custom-baidu-map/baidu-lushu/baidu-lushu.component.d.ts +31 -0
- package/package.json +1 -1
- package/src/assets/img/screen/car.png +0 -0
- package/src/assets/js/BMapGL/Lushu.js +815 -0
- package/src/assets/js/BMapGL/Lushu.min.js +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bbj-screen-widget-core.js","sources":["../../../projects/screen-widget/core/src/model/screen-widget.config.ts","../../../projects/screen-widget/core/src/service/baidu-map.service.ts","../../../projects/screen-widget/core/src/bbj-screen-widget-core.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nexport interface ScreenWidgetConfig {\r\n baiduMap: { ak: string };\r\n}\r\n\r\nexport const SCREEN_WIDGET_CONFIG = new InjectionToken<ScreenWidgetConfig>('screen-widget.config');\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { LazyService } from '@delon/util';\r\nimport { SCREEN_WIDGET_CONFIG, ScreenWidgetConfig } from '../model/screen-widget.config';\r\n\r\ndeclare const BMap;\r\ndeclare const BMapGL;\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class BaiduMapService {\r\n private loadMapPromise: Promise<any>;\r\n private loadMapGLPromise: Promise<any>;\r\n private loadMarkerClustererPromise: Promise<any>;\r\n private loadMarkerClustererGLPromise: Promise<any>;\r\n private loadMapVGLPromise: Promise<any>;\r\n private ak = '
|
|
1
|
+
{"version":3,"file":"bbj-screen-widget-core.js","sources":["../../../projects/screen-widget/core/src/model/screen-widget.config.ts","../../../projects/screen-widget/core/src/service/baidu-map.service.ts","../../../projects/screen-widget/core/src/bbj-screen-widget-core.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nexport interface ScreenWidgetConfig {\r\n baiduMap: { ak: string };\r\n}\r\n\r\nexport const SCREEN_WIDGET_CONFIG = new InjectionToken<ScreenWidgetConfig>('screen-widget.config');\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { LazyService } from '@delon/util';\r\nimport { SCREEN_WIDGET_CONFIG, ScreenWidgetConfig } from '../model/screen-widget.config';\r\n\r\ndeclare const BMap;\r\ndeclare const BMapGL;\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class BaiduMapService {\r\n private loadMapPromise: Promise<any>;\r\n private loadMapGLPromise: Promise<any>;\r\n private loadMarkerClustererPromise: Promise<any>;\r\n private loadMarkerClustererGLPromise: Promise<any>;\r\n private loadMapVGLPromise: Promise<any>;\r\n private ak = 'pLeoKEjQUcij1is3778ssPLrPfNg1Hjf';\r\n constructor(public lazy: LazyService, @Optional() @Inject(SCREEN_WIDGET_CONFIG) private config: ScreenWidgetConfig) {}\r\n\r\n loadScript(url: string, callback: string) {\r\n return new Promise<void>((resolve) => {\r\n (window as any)[callback] = () => {\r\n resolve();\r\n delete window[callback];\r\n };\r\n var script = document.createElement('script');\r\n script.type = 'text/javascript';\r\n if (this.config && this.config.baiduMap && this.config.baiduMap.ak) {\r\n this.ak = this.config.baiduMap.ak;\r\n }\r\n script.src = url + `&ak=${this.ak}&callback=${callback}`;\r\n document.body.appendChild(script);\r\n });\r\n }\r\n\r\n loadMap(): Promise<any> {\r\n if (typeof BMap !== 'undefined') {\r\n return Promise.resolve();\r\n }\r\n if (!this.loadMapPromise) {\r\n this.loadMapPromise = this.loadScript('https://api.map.baidu.com/api?v=3.0', 'loadBMapCallback');\r\n }\r\n return this.loadMapPromise;\r\n }\r\n\r\n loadMapGL(): Promise<any> {\r\n if (typeof BMapGL !== 'undefined') {\r\n return Promise.resolve();\r\n }\r\n if (!this.loadMapGLPromise) {\r\n this.loadMapGLPromise = this.loadScript(\r\n 'https://api.map.baidu.com/api?type=webgl&v=1.0',\r\n 'loadBMapGLCallback',\r\n ).then(() => {\r\n // 百度地图重写了contains方法,当参数为null时会报错,这里把它重写回来\r\n HTMLElement.prototype.contains = function (e) {\r\n if (e) {\r\n if (e == this) {\r\n return true;\r\n }\r\n while ((e = e.parentNode)) {\r\n if (e == this) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n };\r\n });\r\n }\r\n return this.loadMapGLPromise;\r\n }\r\n\r\n // loadMarkerClusterer() {\r\n // if (!this.loadMarkerClustererPromise) {\r\n // this.loadMarkerClustererPromise = Promise.all([\r\n // this.lazy.loadScript('assets/js/BMap/MarkerClusterer_min.js'),\r\n // this.lazy.loadScript('assets/js/BMap/TextIconOverlay_min.js'),\r\n // ]);\r\n // }\r\n // return this.loadMarkerClustererPromise;\r\n // }\r\n\r\n // loadMarkerClustererGL() {\r\n // if (!this.loadMarkerClustererGLPromise) {\r\n // this.loadMarkerClustererGLPromise = Promise.all([\r\n // this.lazy.loadScript('assets/js/BMapGL/MarkerClusterer_min.js'),\r\n // this.lazy.loadScript('assets/js/BMapGL/TextIconOverlay_min.js'),\r\n // ]);\r\n // }\r\n // return this.loadMarkerClustererGLPromise;\r\n // }\r\n\r\n loadMapVGL() {\r\n if (!this.loadMapVGLPromise) {\r\n this.loadMapVGLPromise = this.lazy.loadScript('assets/js/BMapGL/mapvgl.min.js');\r\n this.loadMapVGLPromise.catch((e) => {\r\n console.error(e);\r\n this.loadMapGLPromise = null;\r\n });\r\n }\r\n return this.loadMapVGLPromise;\r\n }\r\n\r\n async localCity() {\r\n await this.loadMapGL();\r\n return new Promise<any>((resolve) => {\r\n const myCity = new BMapGL.LocalCity();\r\n myCity.get(resolve);\r\n });\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["LazyService"],"mappings":";;;;;MAMa,oBAAoB,GAAG,IAAI,cAAc,CAAqB,sBAAsB;;MCGpF,eAAe;IAO1B,YAAmB,IAAiB,EAAoD,MAA0B;QAA/F,SAAI,GAAJ,IAAI,CAAa;QAAoD,WAAM,GAAN,MAAM,CAAoB;QAD1G,OAAE,GAAG,kCAAkC,CAAC;KACsE;IAEtH,UAAU,CAAC,GAAW,EAAE,QAAgB;QACtC,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO;YAC9B,MAAc,CAAC,QAAQ,CAAC,GAAG;gBAC1B,OAAO,EAAE,CAAC;gBACV,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC;aACzB,CAAC;YACF,IAAI,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAC9C,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAC;YAChC,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE;gBAClE,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;aACnC;YACD,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,OAAO,IAAI,CAAC,EAAE,aAAa,QAAQ,EAAE,CAAC;YACzD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;SACnC,CAAC,CAAC;KACJ;IAED,OAAO;QACL,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;YAC/B,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;SAC1B;QACD,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YACxB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qCAAqC,EAAE,kBAAkB,CAAC,CAAC;SAClG;QACD,OAAO,IAAI,CAAC,cAAc,CAAC;KAC5B;IAED,SAAS;QACP,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YACjC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;SAC1B;QACD,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE;YAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,UAAU,CACrC,gDAAgD,EAChD,oBAAoB,CACrB,CAAC,IAAI,CAAC;;gBAEL,WAAW,CAAC,SAAS,CAAC,QAAQ,GAAG,UAAU,CAAC;oBAC1C,IAAI,CAAC,EAAE;wBACL,IAAI,CAAC,IAAI,IAAI,EAAE;4BACb,OAAO,IAAI,CAAC;yBACb;wBACD,QAAQ,CAAC,GAAG,CAAC,CAAC,UAAU,GAAG;4BACzB,IAAI,CAAC,IAAI,IAAI,EAAE;gCACb,OAAO,IAAI,CAAC;6BACb;yBACF;qBACF;oBACD,OAAO,KAAK,CAAC;iBACd,CAAC;aACH,CAAC,CAAC;SACJ;QACD,OAAO,IAAI,CAAC,gBAAgB,CAAC;KAC9B;;;;;;;;;;;;;;;;;;;IAsBD,UAAU;QACR,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC3B,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAAC;YAChF,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC7B,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACjB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;aAC9B,CAAC,CAAC;SACJ;QACD,OAAO,IAAI,CAAC,iBAAiB,CAAC;KAC/B;IAEK,SAAS;;YACb,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YACvB,OAAO,IAAI,OAAO,CAAM,CAAC,OAAO;gBAC9B,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;gBACtC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;aACrB,CAAC,CAAC;SACJ;KAAA;;;;YArGF,UAAU,SAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;YANzBA,aAAW;4CAcqB,QAAQ,YAAI,MAAM,SAAC,oBAAoB;;;AChBhF;;;;;;"}
|
|
@@ -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(
|
|
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
|
-
|
|
15306
|
+
yield this.parent.init$;
|
|
15307
|
+
this.initSearch();
|
|
15301
15308
|
// this.startDraw();
|
|
15302
15309
|
});
|
|
15303
15310
|
}
|
|
@@ -15327,27 +15334,6 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
|
|
|
15327
15334
|
if (!r.radius || !r.lnglat) {
|
|
15328
15335
|
return;
|
|
15329
15336
|
}
|
|
15330
|
-
// const radius = (r.radius * 180) / EARTH_RADIUS / Math.PI;
|
|
15331
|
-
// // let radius = cradius / 90;
|
|
15332
|
-
// let pointNum = 90;
|
|
15333
|
-
// let startAngle = 0;
|
|
15334
|
-
// let endAngle = Math.PI * 2;
|
|
15335
|
-
// let points = [];
|
|
15336
|
-
// const lnglat = r.lnglat.split(',');
|
|
15337
|
-
// const lng = +lnglat[0];
|
|
15338
|
-
// const lat = +lnglat[1];
|
|
15339
|
-
// for (var i = 0; i <= pointNum; i++) {
|
|
15340
|
-
// const angle = startAngle + ((endAngle - startAngle) * i) / pointNum;
|
|
15341
|
-
// const x = lng + (radius * Math.cos(angle)) / Math.abs(Math.cos((lat * Math.PI) / 180));
|
|
15342
|
-
// const y = lat + radius * Math.sin(angle);
|
|
15343
|
-
// points.push([x, y]);
|
|
15344
|
-
// }
|
|
15345
|
-
// data.push({
|
|
15346
|
-
// geometry: {
|
|
15347
|
-
// type: 'Polygon',
|
|
15348
|
-
// coordinates: [points],
|
|
15349
|
-
// },
|
|
15350
|
-
// });
|
|
15351
15337
|
let pointsCount = 90;
|
|
15352
15338
|
const radius = r.radius;
|
|
15353
15339
|
const lnglat = r.lnglat.split(',');
|
|
@@ -15381,14 +15367,18 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
|
|
|
15381
15367
|
if (!r.lnglat) {
|
|
15382
15368
|
return;
|
|
15383
15369
|
}
|
|
15384
|
-
const coordinates = r.lnglat.split(';').map((r) => {
|
|
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) => {
|
|
15385
15375
|
const lnglat = r.split(',');
|
|
15386
15376
|
return [+lnglat[0], +lnglat[1]];
|
|
15387
|
-
});
|
|
15377
|
+
}));
|
|
15388
15378
|
data.push({
|
|
15389
15379
|
geometry: {
|
|
15390
15380
|
type: 'Polygon',
|
|
15391
|
-
coordinates:
|
|
15381
|
+
coordinates: coordinates,
|
|
15392
15382
|
},
|
|
15393
15383
|
});
|
|
15394
15384
|
}
|
|
@@ -15410,20 +15400,40 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
|
|
|
15410
15400
|
lnglat: `${lnglat.lng},${lnglat.lat}`,
|
|
15411
15401
|
radius: radius,
|
|
15412
15402
|
};
|
|
15403
|
+
// this.tempOverlay.forEach((r) => {
|
|
15404
|
+
// this.parent.map.removeOverlay(r);
|
|
15405
|
+
// });
|
|
15413
15406
|
this.create.emit(data);
|
|
15407
|
+
this.editOverlay = null;
|
|
15414
15408
|
}
|
|
15415
15409
|
else {
|
|
15416
15410
|
const points = e.target.overlay.getPoints();
|
|
15417
15411
|
if (!this.data) {
|
|
15418
15412
|
this.data = [];
|
|
15419
15413
|
}
|
|
15420
|
-
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
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
|
+
}
|
|
15424
15427
|
this.create.emit(data);
|
|
15425
15428
|
}
|
|
15426
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
|
+
});
|
|
15427
15437
|
}
|
|
15428
15438
|
switch (type) {
|
|
15429
15439
|
case 'polygon':
|
|
@@ -15467,52 +15477,15 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
|
|
|
15467
15477
|
this.circle.open();
|
|
15468
15478
|
break;
|
|
15469
15479
|
}
|
|
15470
|
-
// this.stopDraw();
|
|
15471
|
-
// this.editData = [];
|
|
15472
|
-
// this.editLayer = new mapvgl.IconLayer({
|
|
15473
|
-
// width: 20 / 2,
|
|
15474
|
-
// height: 30.6 / 2,
|
|
15475
|
-
// offset: [0, -30.6 / 2 / 2],
|
|
15476
|
-
// icon: 'assets/img/screen/marker.png',
|
|
15477
|
-
// enablePicked: true, // 是否可以拾取
|
|
15478
|
-
// selectedIndex: -1, // 选中项
|
|
15479
|
-
// selectedColor: '#ff0000', // 选中项颜色
|
|
15480
|
-
// autoSelect: true, // 根据鼠标位置来自动设置选中项
|
|
15481
|
-
// onRightClick: (e) => {
|
|
15482
|
-
// console.log('right click', e);
|
|
15483
|
-
// this.editData.splice(e.dataIndex, 1);
|
|
15484
|
-
// this.updateEditData();
|
|
15485
|
-
// },
|
|
15486
|
-
// });
|
|
15487
|
-
// this.parent.addLayer(this.editLayer);
|
|
15488
|
-
// this.editLineLayer = new mapvgl.SimpleLineLayer({
|
|
15489
|
-
// color: 'rgba(50, 50, 200, 1)',
|
|
15490
|
-
// blend: 'lighter',
|
|
15491
|
-
// data: [
|
|
15492
|
-
// {
|
|
15493
|
-
// geometry: {
|
|
15494
|
-
// type: 'LineString',
|
|
15495
|
-
// coordinates: [
|
|
15496
|
-
// [116.394191, 39.91334],
|
|
15497
|
-
// [116.417259, 39.913672],
|
|
15498
|
-
// ],
|
|
15499
|
-
// },
|
|
15500
|
-
// },
|
|
15501
|
-
// ],
|
|
15502
|
-
// });
|
|
15503
|
-
// this.parent.addLayer(this.editLineLayer);
|
|
15504
|
-
// this.parent.mapClick.pipe(takeUntil(this.stopEdit$)).subscribe((point) => {
|
|
15505
|
-
// this.editData.push([point.lng, point.lat]);
|
|
15506
|
-
// // this.editData.push({
|
|
15507
|
-
// // geometry: {
|
|
15508
|
-
// // type: 'Point',
|
|
15509
|
-
// // coordinates: [point.lng, point.lat],
|
|
15510
|
-
// // },
|
|
15511
|
-
// // });
|
|
15512
|
-
// this.updateEditData();
|
|
15513
|
-
// });
|
|
15514
15480
|
});
|
|
15515
15481
|
}
|
|
15482
|
+
getOptions() {
|
|
15483
|
+
return {
|
|
15484
|
+
fillColor: this.fillColor,
|
|
15485
|
+
strokeWeight: this.lineWidth,
|
|
15486
|
+
strokeColor: this.lineColor,
|
|
15487
|
+
};
|
|
15488
|
+
}
|
|
15516
15489
|
updateEditData() {
|
|
15517
15490
|
if (this.editLayer) {
|
|
15518
15491
|
this.editLayer.setData(this.editData.map((r) => ({ geometry: { type: 'Point', coordinates: r } })));
|
|
@@ -15555,24 +15528,120 @@ let BaiduFenceComponent = class BaiduFenceComponent extends BaseLayer {
|
|
|
15555
15528
|
// this.editData = null;
|
|
15556
15529
|
}
|
|
15557
15530
|
search() {
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
|
|
15564
|
-
|
|
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
|
+
}
|
|
15565
15561
|
});
|
|
15566
|
-
|
|
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
|
+
}
|
|
15567
15628
|
}
|
|
15568
15629
|
};
|
|
15569
15630
|
BaiduFenceComponent.decorators = [
|
|
15570
15631
|
{ type: Component, args: [{
|
|
15571
15632
|
selector: 'sc-baidu-fence',
|
|
15572
|
-
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",
|
|
15573
|
-
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}"]
|
|
15574
15635
|
},] }
|
|
15575
15636
|
];
|
|
15637
|
+
BaiduFenceComponent.ctorParameters = () => [
|
|
15638
|
+
{ type: CustomBaiduMapComponent },
|
|
15639
|
+
{ type: NgZone },
|
|
15640
|
+
{ type: NzMessageService }
|
|
15641
|
+
];
|
|
15642
|
+
BaiduFenceComponent.propDecorators = {
|
|
15643
|
+
suggest: [{ type: ViewChild, args: ['suggest',] }]
|
|
15644
|
+
};
|
|
15576
15645
|
__decorate([
|
|
15577
15646
|
Property('线条宽度', {
|
|
15578
15647
|
ui: { widget: 'myRange', min: 1, max: 40, step: 1 },
|
|
@@ -15644,15 +15713,241 @@ __decorate([
|
|
|
15644
15713
|
__metadata("design:paramtypes", []),
|
|
15645
15714
|
__metadata("design:returntype", void 0)
|
|
15646
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);
|
|
15647
15723
|
BaiduFenceComponent = __decorate([
|
|
15648
15724
|
Widget('电子围栏', {
|
|
15649
15725
|
group: 'component',
|
|
15650
15726
|
image: '',
|
|
15651
15727
|
icon: '',
|
|
15652
15728
|
hidden: true,
|
|
15653
|
-
})
|
|
15729
|
+
}),
|
|
15730
|
+
__metadata("design:paramtypes", [CustomBaiduMapComponent,
|
|
15731
|
+
NgZone,
|
|
15732
|
+
NzMessageService])
|
|
15654
15733
|
], BaiduFenceComponent);
|
|
15655
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
|
+
|
|
15656
15951
|
class CustomBaiduMapModule {
|
|
15657
15952
|
constructor(widgetService) {
|
|
15658
15953
|
widgetService.register(CustomBaiduMapComponent, { scaleContent: false });
|
|
@@ -15661,6 +15956,7 @@ class CustomBaiduMapModule {
|
|
|
15661
15956
|
widgetService.register(WindLayerComponent);
|
|
15662
15957
|
widgetService.register(TyphoonAreaLayerComponent);
|
|
15663
15958
|
widgetService.register(BaiduFenceComponent);
|
|
15959
|
+
widgetService.register(BaiduLushuComponent);
|
|
15664
15960
|
}
|
|
15665
15961
|
}
|
|
15666
15962
|
CustomBaiduMapModule.decorators = [
|
|
@@ -15672,6 +15968,7 @@ CustomBaiduMapModule.decorators = [
|
|
|
15672
15968
|
WindLayerComponent,
|
|
15673
15969
|
TyphoonAreaLayerComponent,
|
|
15674
15970
|
BaiduFenceComponent,
|
|
15971
|
+
BaiduLushuComponent,
|
|
15675
15972
|
],
|
|
15676
15973
|
imports: [
|
|
15677
15974
|
CommonModule,
|
|
@@ -15682,6 +15979,7 @@ CustomBaiduMapModule.decorators = [
|
|
|
15682
15979
|
NzRadioModule,
|
|
15683
15980
|
FormsModule,
|
|
15684
15981
|
NzButtonModule,
|
|
15982
|
+
NzInputModule,
|
|
15685
15983
|
],
|
|
15686
15984
|
},] }
|
|
15687
15985
|
];
|
|
@@ -21036,5 +21334,5 @@ WorkbenchWidgetModule.ctorParameters = () => [
|
|
|
21036
21334
|
* Generated bundle index. Do not edit.
|
|
21037
21335
|
*/
|
|
21038
21336
|
|
|
21039
|
-
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,
|
|
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 };
|
|
21040
21338
|
//# sourceMappingURL=bbj-screen-widget.js.map
|