优化地图标记,首次标记时展示小区边界

This commit is contained in:
cloud 2021-01-02 06:27:05 +08:00
parent 59fcc51a17
commit 001eb16193
2 changed files with 0 additions and 2 deletions

View File

@ -157,7 +157,6 @@ var APPMAP;
};
initialMap.prototype.initMap = function (domId, level) {
var map = new BMapGL.Map(domId, { enableMapClick: false });
console.log(this.level());
map.centerAndZoom(this.mapPoints, level || this.level());
map.enableScrollWheelZoom(true);
map.setDisplayOptions({

View File

@ -202,7 +202,6 @@ namespace APPMAP {
initMap(domId: string, level?: any) {
const map = new BMapGL.Map(domId, {enableMapClick: false});
// 初始化地图,设置中心点坐标和地图级别
console.log(this.level())
map.centerAndZoom(this.mapPoints, level || this.level());
// 开启鼠标滚轮缩放
map.enableScrollWheelZoom(true);