From 89da62649161571834d3f8df7ce36f9967e6ba04 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期二, 07 九月 2021 14:04:31 +0800
Subject: [PATCH] change cesium version
---
widgets/toolButton/zoom.js | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/widgets/toolButton/zoom.js b/widgets/toolButton/zoom.js
index 91a7d33..f190c8f 100644
--- a/widgets/toolButton/zoom.js
+++ b/widgets/toolButton/zoom.js
@@ -1,27 +1,27 @@
-'use script' //寮�鍙戠幆澧冨缓璁紑鍚弗鏍兼ā寮�
-;(function (window, mars3d) {
+"use script"; //寮�鍙戠幆澧冨缓璁紑鍚弗鏍兼ā寮�
+(function (window, mars3d) {
//鍒涘缓widget绫伙紝闇�瑕佺户鎵緽aseWidget
class MyWidget extends mars3d.widget.BaseWidget {
//鍒濆鍖朳浠呮墽琛�1娆
create() {
this.zommControl = new mars3d.control.Zoom({
insertIndex: 1, //鎻掑叆鐨勪綅缃『搴�, 1鏄痟ome鎸夐挳鍚庨潰
- zoomInClass: 'fa fa-plus',
- zoomOutClass: 'fa fa-minus',
- })
+ zoomInClass: "fa fa-plus",
+ zoomOutClass: "fa fa-minus",
+ });
}
//婵�娲绘彃浠�
activate() {
- this.map.addControl(this.zommControl)
+ this.map.addControl(this.zommControl);
}
//閲婃斁鎻掍欢
disable() {
- this.map.removeControl(this.zommControl)
+ this.map.removeControl(this.zommControl);
}
}
//娉ㄥ唽鍒皐idget绠$悊鍣ㄤ腑銆�
- mars3d.widget.bindClass(MyWidget)
+ mars3d.widget.bindClass(MyWidget);
//姣忎釜widet涔嬮棿閮芥槸鐩存帴寮曞叆鍒癷ndex.html涓紝浼氬瓨鍦ㄥ郊姝ゅ懡鍚嶅啿绐侊紝鎵�浠ラ棴鍖呭鐞嗕笅銆�
-})(window, mars3d)
+})(window, mars3d);
--
Gitblit v1.9.1