From 5e1fb34846a4fa1c582d8f0ec4c7e41fa3931869 Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Tue, 27 Sep 2022 12:02:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/assets/js/baidu-map-0.0.1.min.js | 4 ++-- .../static/assets/js/baidu-map/baidu-map-1.0.0.min.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/static/assets/js/baidu-map-0.0.1.min.js b/src/main/resources/static/assets/js/baidu-map-0.0.1.min.js index 8c30fa3..7cd3bbd 100644 --- a/src/main/resources/static/assets/js/baidu-map-0.0.1.min.js +++ b/src/main/resources/static/assets/js/baidu-map-0.0.1.min.js @@ -353,7 +353,7 @@ BaiduMap.prototype.setDefaultConfig = function () { // 缩放结束 self.map.addEventListener('zoomend', function (event) { var zoom = this.getZoom(); - if (zoom < 15) { + if (zoom < 16) { self.setLabelFontSize(0); } else { self.setLabelFontSize(12); @@ -693,7 +693,7 @@ BaiduMap.prototype.initBackgroundGrid = function (option) { border: 'none', backgroundColor: 'transparent', textShadow: '1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff', - fontSize: self.gridOption.const.LABEL_FONT_SIZE + 'px' + fontSize: '0px' }); label.setOffset(new BMap.Size(-backgroundGrid.label.length * self.gridOption.const.LABEL_FONT_SIZE / 2, -self.gridOption.const.LABEL_FONT_SIZE / 2)); label.setPosition(self.getCenterPoint(backgroundGrid.pointArray)); diff --git a/src/main/resources/static/assets/js/baidu-map/baidu-map-1.0.0.min.js b/src/main/resources/static/assets/js/baidu-map/baidu-map-1.0.0.min.js index ca6d1b4..1750b20 100644 --- a/src/main/resources/static/assets/js/baidu-map/baidu-map-1.0.0.min.js +++ b/src/main/resources/static/assets/js/baidu-map/baidu-map-1.0.0.min.js @@ -359,7 +359,7 @@ BaiduMap.prototype.setDefaultConfig = function () { // 缩放结束 self.map.addEventListener('zoomend', function (event) { var zoom = this.getZoom(); - if (zoom < 15) { + if (zoom < 16) { self.setLabelFontSize(0); } else { self.setLabelFontSize(12); @@ -764,7 +764,7 @@ BaiduMap.prototype.initBackgroundGrid = function (option) { border: 'none', backgroundColor: 'transparent', textShadow: '1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff', - fontSize: self.gridOption.const.LABEL_FONT_SIZE + 'px' + fontSize: fontSize: '0px' }); label.setOffset(new BMap.Size(-backgroundGrid.label.length * self.gridOption.const.LABEL_FONT_SIZE / 2, -self.gridOption.const.LABEL_FONT_SIZE / 2)); label.setPosition(self.getCenterPoint(backgroundGrid.pointArray));