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));