bbj-screen-widget 2.4.70 → 2.4.72
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/bundles/bbj-screen-widget.umd.js +17 -6
- 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-lushu/baidu-lushu.component.js +2 -2
- package/esm2015/lib/tianditu/tianditu.component.js +16 -6
- package/fesm2015/bbj-screen-widget.js +16 -6
- package/fesm2015/bbj-screen-widget.js.map +1 -1
- package/lib/tianditu/tianditu.component.d.ts +1 -4
- package/package.json +1 -1
- package/src/assets/js/BMapGL/Lushu.js +5 -2
- package/src/assets/js/BMapGL/Lushu.min.js +2 -1
|
@@ -16662,6 +16662,7 @@
|
|
|
16662
16662
|
this.clear();
|
|
16663
16663
|
};
|
|
16664
16664
|
BaiduLushuComponent.prototype.update = function () {
|
|
16665
|
+
var _this = this;
|
|
16665
16666
|
var _a;
|
|
16666
16667
|
this.clear();
|
|
16667
16668
|
if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
@@ -16673,7 +16674,7 @@
|
|
|
16673
16674
|
landmarkPois.push({
|
|
16674
16675
|
lng: Number(item.lng),
|
|
16675
16676
|
lat: Number(item.lat),
|
|
16676
|
-
html: item.landmark,
|
|
16677
|
+
html: item.landmark || _this.defaultContent,
|
|
16677
16678
|
pauseTime: item.pauseTime ? Number(item.pauseTime) : 0,
|
|
16678
16679
|
});
|
|
16679
16680
|
}
|
|
@@ -20636,8 +20637,14 @@
|
|
|
20636
20637
|
_a.sent();
|
|
20637
20638
|
if (!this.destroyed) {
|
|
20638
20639
|
this.zone.runOutsideAngular(function () {
|
|
20640
|
+
var options = {
|
|
20641
|
+
zoom: _this.zoom,
|
|
20642
|
+
};
|
|
20643
|
+
if (_this.centerLng && _this.centerLat) {
|
|
20644
|
+
options.center = _this.createLngLat(_this.centerLng, _this.centerLat);
|
|
20645
|
+
}
|
|
20639
20646
|
_this.map = new T.Map(_this.container.nativeElement, {
|
|
20640
|
-
center: _this.createLngLat(_this.centerLng, _this.centerLat),
|
|
20647
|
+
center: _this.createLngLat(_this.centerLng || 120.7, _this.centerLat || 28),
|
|
20641
20648
|
zoom: _this.zoom,
|
|
20642
20649
|
});
|
|
20643
20650
|
// this.mapTypeChange(this.mapTypeValue);
|
|
@@ -20684,7 +20691,7 @@
|
|
|
20684
20691
|
});
|
|
20685
20692
|
_this.map.addEventListener('click', function (event) {
|
|
20686
20693
|
console.log(event);
|
|
20687
|
-
_this.mapClick.emit(_this.transferCoordinate(event.
|
|
20694
|
+
_this.mapClick.emit(_this.transferCoordinate(event.lnglat));
|
|
20688
20695
|
});
|
|
20689
20696
|
_this.map.addEventListener('zoomend', function (event) {
|
|
20690
20697
|
_this.zoomChange.emit(_this.map.getZoom());
|
|
@@ -20701,9 +20708,10 @@
|
|
|
20701
20708
|
};
|
|
20702
20709
|
TiandituComponent.prototype.ngOnChanges = function (changes) {
|
|
20703
20710
|
if (changes.data && this.data[0]) {
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20711
|
+
var _a = this.data[0], lng = _a.lng, lat = _a.lat;
|
|
20712
|
+
if (lng && lat) {
|
|
20713
|
+
this.setCenter(+lng, +lat);
|
|
20714
|
+
}
|
|
20707
20715
|
}
|
|
20708
20716
|
};
|
|
20709
20717
|
TiandituComponent.prototype.ngOnDestroy = function () {
|
|
@@ -20723,6 +20731,9 @@
|
|
|
20723
20731
|
};
|
|
20724
20732
|
TiandituComponent.prototype.transferCoordinate = function (latlng) {
|
|
20725
20733
|
var _a, _b;
|
|
20734
|
+
if (!latlng) {
|
|
20735
|
+
return {};
|
|
20736
|
+
}
|
|
20726
20737
|
var lng = latlng.lng, lat = latlng.lat;
|
|
20727
20738
|
if (this.coordinateType === 'BD-09') {
|
|
20728
20739
|
_a = __read(i1.wgs84tobd09(lng, lat), 2), lng = _a[0], lat = _a[1];
|