Browse Source

修改地图默认缩放

wangqin
Joe 10 months ago
parent
commit
b33b98aad1
  1. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue

6
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue

@ -46,7 +46,7 @@ export default {
this.aMapIns = new this.AMap.Map(this.$refs.mapContainerRef, {
resizeEnable: true, //
mapStyle: "amap://styles/blue",
zoom: 9,
zoom: 7,
center: [116.629514, 35.794168],
});
@ -105,7 +105,7 @@ export default {
});
//线
function drawingLine(AMap, datas, borderWeight = 1,strokeWeight = 0, olColor = "#00B3CC") {
function drawingLine(AMap, datas, borderWeight = 1, strokeWeight = 0, olColor = "#00B3CC") {
return new AMap.Polyline({
path: datas,
isOutline: true,
@ -126,7 +126,7 @@ export default {
//
// let jhPolyline;
function drawJHPath(AMap, lczPointList,borderWeight = 1,strokeWeight = 60) {
function drawJHPath(AMap, lczPointList, borderWeight = 1, strokeWeight = 60) {
return new AMap.Polyline({
path: lczPointList, // 线
showDir: true,

Loading…
Cancel
Save