功能优化

This commit is contained in:
hayu 2024-12-12 20:31:17 +08:00
parent 238fa360c3
commit 7509262765
1 changed files with 5 additions and 3 deletions

View File

@ -536,8 +536,8 @@ export default {
this.innerVisible = true;
this.$nextTick(() => {
//线 new BMapGL
//线 new window.BMap
//线 new BMapGL
//线 new window.BMap
this_.map = new window.BMap.Map('map-container'); //
let point;
if (this_.form.lon != null && this_.form.lon !== '' && this_.form.lat != null && this_.form.lat !== '') {
@ -549,8 +549,10 @@ export default {
point = new window.BMap.Point(117.13805, 31.8734); //
}
this_.map.centerAndZoom(point, 12); //
this_.map.centerAndZoom(point, 14); //
this_.map.enableScrollWheelZoom(true); //
this_.map.setMinZoom(14) //
this_.map.setMaxZoom(14) //
//
// this_.map.disableDragging(); //