bbj-screen-widget 2.4.60 → 2.4.61
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 +17 -2
- 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-marker-layer/baidu-marker-layer.component.js +18 -3
- package/fesm2015/bbj-screen-widget.js +17 -2
- package/fesm2015/bbj-screen-widget.js.map +1 -1
- package/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -15014,6 +15014,7 @@
|
|
|
15014
15014
|
lineHeight: 0,
|
|
15015
15015
|
};
|
|
15016
15016
|
_this.shadow = { color: '', X: 0, Y: 0, Z: 0 };
|
|
15017
|
+
_this.selectedSize = 1.5;
|
|
15017
15018
|
_this.unselectOnClickBlank = true;
|
|
15018
15019
|
_this.groups = [];
|
|
15019
15020
|
_this._data = [
|
|
@@ -15364,6 +15365,7 @@
|
|
|
15364
15365
|
BaiduMarkerLayerComponent.prototype.select = function (id, options) {
|
|
15365
15366
|
var _this = this;
|
|
15366
15367
|
if (options === void 0) { options = {}; }
|
|
15368
|
+
var _a;
|
|
15367
15369
|
if (id != this.currentSelectedId || options.force) {
|
|
15368
15370
|
var item = void 0;
|
|
15369
15371
|
if (id != null && id !== '') {
|
|
@@ -15384,13 +15386,18 @@
|
|
|
15384
15386
|
}
|
|
15385
15387
|
if (item) {
|
|
15386
15388
|
currentSelectGroup = item.properties.group;
|
|
15387
|
-
this.updateSize(item, 1.5);
|
|
15389
|
+
this.updateSize(item, (_a = this.selectedSize) !== null && _a !== void 0 ? _a : 1.5);
|
|
15388
15390
|
this.lastSelect = item;
|
|
15389
15391
|
selectedData_1 = item.properties.raw;
|
|
15390
15392
|
if (options.move) {
|
|
15391
15393
|
var layer = this.layerMap[currentSelectGroup];
|
|
15392
15394
|
var zoom = this.parent.map.getZoom();
|
|
15393
|
-
if (
|
|
15395
|
+
if (this.selectedMapZoom) {
|
|
15396
|
+
zoom = this.selectedMapZoom;
|
|
15397
|
+
}
|
|
15398
|
+
else if (layer instanceof mapvgl.ClusterLayer &&
|
|
15399
|
+
this.clusterMaxZoom != null &&
|
|
15400
|
+
Math.floor(zoom) <= this.clusterMaxZoom) {
|
|
15394
15401
|
zoom = this.clusterMaxZoom + 2;
|
|
15395
15402
|
}
|
|
15396
15403
|
this.parent.setCenterAndZoom(selectedData_1.lng, selectedData_1.lat, zoom);
|
|
@@ -15558,6 +15565,14 @@
|
|
|
15558
15565
|
bbjWidgetBase.Property('选中放大'),
|
|
15559
15566
|
__metadata("design:type", Boolean)
|
|
15560
15567
|
], exports.ɵcz.prototype, "enlargeOnSelect", void 0);
|
|
15568
|
+
__decorate([
|
|
15569
|
+
bbjWidgetBase.Property('选中时放大倍数', { type: 'number' }),
|
|
15570
|
+
__metadata("design:type", Object)
|
|
15571
|
+
], exports.ɵcz.prototype, "selectedSize", void 0);
|
|
15572
|
+
__decorate([
|
|
15573
|
+
bbjWidgetBase.Property('选中时地图缩放', { type: 'number' }),
|
|
15574
|
+
__metadata("design:type", Number)
|
|
15575
|
+
], exports.ɵcz.prototype, "selectedMapZoom", void 0);
|
|
15561
15576
|
__decorate([
|
|
15562
15577
|
bbjWidgetBase.Property('点击空白取消选中', { type: 'boolean', default: true }),
|
|
15563
15578
|
__metadata("design:type", Object)
|