@vtx/map 1.1.20 → 1.1.22
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/lib/VtxMap/AMap/AMap.js +21 -0
- package/lib/VtxMap/AMap/AMap.js.map +1 -1
- package/lib/VtxMap/BMap/Map.js +21 -0
- package/lib/VtxMap/BMap/Map.js.map +1 -1
- package/lib/VtxMap/OlMap/Map.js +192 -51
- package/lib/VtxMap/OlMap/Map.js.map +1 -1
- package/lib/VtxMap/TMap/TMap.js +22 -0
- package/lib/VtxMap/TMap/TMap.js.map +1 -1
- package/lib/VtxSearchMap/VtxSearchMap.js +11 -1
- package/lib/VtxSearchMap/VtxSearchMap.js.map +1 -1
- package/package.json +1 -1
package/lib/VtxMap/BMap/Map.js
CHANGED
|
@@ -2649,6 +2649,22 @@ var BaiduMap = /*#__PURE__*/function (_React$Component) {
|
|
|
2649
2649
|
t.state.gis.addControl(navigation);
|
|
2650
2650
|
t.navigationControl = navigation;
|
|
2651
2651
|
}
|
|
2652
|
+
} // 移除比例尺
|
|
2653
|
+
|
|
2654
|
+
}, {
|
|
2655
|
+
key: "removeControl",
|
|
2656
|
+
value: function removeControl() {
|
|
2657
|
+
var t = this;
|
|
2658
|
+
|
|
2659
|
+
if (t.scaleControl) {
|
|
2660
|
+
t.state.gis.removeControl(t.scaleControl);
|
|
2661
|
+
t.scaleControl = null;
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
if (t.navigationControl) {
|
|
2665
|
+
t.state.gis.removeControl(t.navigationControl);
|
|
2666
|
+
t.navigationControl = null;
|
|
2667
|
+
}
|
|
2652
2668
|
} //展示地图切换控件
|
|
2653
2669
|
|
|
2654
2670
|
}, {
|
|
@@ -3569,6 +3585,11 @@ var BaiduMap = /*#__PURE__*/function (_React$Component) {
|
|
|
3569
3585
|
|
|
3570
3586
|
if (nextProps.showControl && JSON.stringify(nextProps.showControl) != JSON.stringify(t.props.showControl)) {
|
|
3571
3587
|
t.showControl(nextProps);
|
|
3588
|
+
} // 比例尺移除
|
|
3589
|
+
|
|
3590
|
+
|
|
3591
|
+
if (!nextProps.showControl) {
|
|
3592
|
+
t.removeControl();
|
|
3572
3593
|
} // 地图类型控件位置改变
|
|
3573
3594
|
|
|
3574
3595
|
|