From 7fbce1ecd95b4e12ceda0a5b874ec8f3951625f7 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期五, 17 一月 2025 17:58:59 +0800
Subject: [PATCH] WI水务智能助理

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

diff --git a/src/model/map/OLMap.ts b/src/model/map/OLMap.ts
index 4d51821..55c97df 100644
--- a/src/model/map/OLMap.ts
+++ b/src/model/map/OLMap.ts
@@ -267,6 +267,24 @@
 		olZoom.style.display = 'none';
 	}
 
+	/**
+	 * 鏀惧ぇ鍦板浘
+	 */
+	zoomIn() {
+		const view = this.map.getView();
+		const zoom = view.getZoom();
+		view.setZoom(zoom + 1);
+	}
+
+	/**
+	 * 缂╁皬鍦板浘
+	 */
+	zoomOut() {
+		const view = this.map.getView();
+		const zoom = view.getZoom();
+		view.setZoom(zoom - 1);
+	}
+
 	getWMTS = () => {
 		const projection = getProjection('EPSG:3857');
 		const projectionExtent = projection.getExtent();

--
Gitblit v1.9.3