bbj-screen-widget 2.4.65 → 2.4.66
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.metadata.json +1 -1
- package/bundles/bbj-screen-widget.umd.js +7 -3
- 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/lib/custom-baidu-map/baidu-fence/baidu-fence.component.js +8 -4
- package/fesm2015/bbj-screen-widget.js +7 -3
- package/fesm2015/bbj-screen-widget.js.map +1 -1
- package/package.json +1 -1
|
@@ -16195,6 +16195,9 @@
|
|
|
16195
16195
|
var data = [];
|
|
16196
16196
|
this.data.forEach(function (r) {
|
|
16197
16197
|
if (r.type === 'circle') {
|
|
16198
|
+
if (!r.radius || !r.lnglat) {
|
|
16199
|
+
return;
|
|
16200
|
+
}
|
|
16198
16201
|
// const radius = (r.radius * 180) / EARTH_RADIUS / Math.PI;
|
|
16199
16202
|
// // let radius = cradius / 90;
|
|
16200
16203
|
// let pointNum = 90;
|
|
@@ -16228,7 +16231,7 @@
|
|
|
16228
16231
|
// 遍历 0~360°,生成等间隔的点
|
|
16229
16232
|
for (var i = 0; i < pointsCount; i++) {
|
|
16230
16233
|
// 计算当前点的方位角(弧度):从0°到360°,均分pointsCount份
|
|
16231
|
-
var angleRad = (i * 360 / pointsCount) * Math.PI / 180;
|
|
16234
|
+
var angleRad = (((i * 360) / pointsCount) * Math.PI) / 180;
|
|
16232
16235
|
// 计算当前点相对于中心点的经纬度增量(弧度)
|
|
16233
16236
|
var deltaLatRad = (radius * Math.cos(angleRad)) / EARTH_RADIUS$1;
|
|
16234
16237
|
var deltaLngRad = (radius * Math.sin(angleRad)) / (EARTH_RADIUS$1 * Math.cos(centerLatRad));
|
|
@@ -16246,6 +16249,9 @@
|
|
|
16246
16249
|
});
|
|
16247
16250
|
}
|
|
16248
16251
|
else {
|
|
16252
|
+
if (!r.lnglat) {
|
|
16253
|
+
return;
|
|
16254
|
+
}
|
|
16249
16255
|
var coordinates = r.lnglat.split(';').map(function (r) {
|
|
16250
16256
|
var lnglat = r.split(',');
|
|
16251
16257
|
return [+lnglat[0], +lnglat[1]];
|
|
@@ -16281,8 +16287,6 @@
|
|
|
16281
16287
|
lnglat: lnglat.lng + "," + lnglat.lat,
|
|
16282
16288
|
radius: radius,
|
|
16283
16289
|
};
|
|
16284
|
-
_this.data.push(data);
|
|
16285
|
-
_this.updateData();
|
|
16286
16290
|
_this.create.emit(data);
|
|
16287
16291
|
}
|
|
16288
16292
|
else {
|