From 542773255209d32a70a8cf8048799b758957f24f Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Tue, 24 Sep 2024 20:45:41 +0800 Subject: [PATCH] =?UTF-8?q?test(map.test.js):=E8=A1=A5=E5=85=85map?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/map/map.test.js | 2 +- pages/component/map/map.uvue | 298 +++++++++++++++++++++++--------- 2 files changed, 215 insertions(+), 85 deletions(-) diff --git a/pages/component/map/map.test.js b/pages/component/map/map.test.js index d354cf81..adfc8bef 100644 --- a/pages/component/map/map.test.js +++ b/pages/component/map/map.test.js @@ -17,7 +17,7 @@ describe('web-map', () => { }); it('Check MapMethods', async () => { - const mapMethods = ['addControls', 'addMarkers', 'addMarkersLabel','addPolyline', 'addPolygons', 'addCircles','includePoint'] + const mapMethods = ['addControls', 'addMarkers', 'addMarkersLabel','removeMarker','addPolyline','removePolyline', 'addPolygons','removePolygon', 'addCircles','removeCircle','includePoint'] for (var i = 0; i < mapMethods.length; i++) { await page.callMethod(mapMethods[i]) await page.waitFor(500); diff --git a/pages/component/map/map.uvue b/pages/component/map/map.uvue index bb4fcefb..7b2227bc 100644 --- a/pages/component/map/map.uvue +++ b/pages/component/map/map.uvue @@ -16,12 +16,17 @@ @confirm="confirm_scale_input"> + - + - - - + + + + + + + 方法示例 @@ -38,104 +43,104 @@