Commit 76261ed7 by 前端

优化地图缩放等级

1 parent 6fff9b60
......@@ -295,10 +295,10 @@ export default {
}
console.log(_zoom);
if (_zoom < 13) {
_this.map.setZoom(13);
if (_zoom < 14) {
_this.map.setZoom(14);
}
_this.map.setZooms([13, 30]);
_this.map.setZooms([14, 30]);
var mouseTool = new AMap.MouseTool(_map);
mouseTool.rectangle({
fillColor: "#2C68FF",
......@@ -631,7 +631,7 @@ export default {
});
mass.setMap(_this.map);
this.drawDone = true;
this.map.setFitView();
//this.map.setFitView();
this.mapMass = mass;
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!