From fca23e806bb6d4d7c6bdc4b318d8ea559ae1d391 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期五, 17 一月 2025 11:16:47 +0800
Subject: [PATCH] 美化界面

---
 src/model/map/OLMap.ts |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/model/map/OLMap.ts b/src/model/map/OLMap.ts
index 2385085..4d51821 100644
--- a/src/model/map/OLMap.ts
+++ b/src/model/map/OLMap.ts
@@ -258,8 +258,13 @@
 	}
 
 	private addBasicControl() {
-		this.map.addControl(new ZoomSlider());
+		// this.map.addControl(new ZoomSlider());
 		// this.map.addControl(new FullScreen());
+		const container = this.map.getViewport();
+		if (!container) return;
+		const olZoom = container.querySelector('.ol-zoom') as HTMLElement;
+		if (!olZoom) return;
+		olZoom.style.display = 'none';
 	}
 
 	getWMTS = () => {

--
Gitblit v1.9.3