tongshanglei 2 years ago
parent
commit
be7294556a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/map/routeMap.vue

+ 5 - 1
src/views/map/routeMap.vue

@@ -153,6 +153,10 @@ export default {
     init({ BMap, map }) {
       this.map = map;
       // 初始化地图,设置中心点坐标
+      var  mapStyle ={
+          style : "dark"  //设置地图风格为高端黑
+      }
+      this.map.setMapStyle(mapStyle);
       this.searchControlOffset=new BMap.Size(20, 20)
       this.listControlOffset=new BMap.Size(0, 40)
       // 添加鼠标滚动缩放
@@ -349,7 +353,7 @@ export default {
 .bm-view {
   width: 100%;
   // height: 100vh;
-  height: calc(100vh - 100px);
+  height: calc(100vh - 85px);
 }
 #searchbox {
   border-radius: 2px;