소스 검색

Merge branch 'master' of http://gogs.renlianiot.com:4000/zmcoding/smart-tool-ui

likang 2 년 전
부모
커밋
01c67d2a32
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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;