Commit 2deea105718622016c90a3d16efa0f1084af12e5
1 parent
933fcbe6
update...
Showing
1 changed file
with
13 additions
and
1 deletions
src/main/resources/static/real_control_v2/alone_page/map/alone_wrap.html
| ... | ... | @@ -42,13 +42,23 @@ |
| 42 | 42 | <link rel="stylesheet" href="/real_control_v2/assets/plugins/flatpickr/themes/airbnb.css" merge="plugins"/> |
| 43 | 43 | |
| 44 | 44 | <link rel="stylesheet" href="/real_control_v2/css/ct_table.css" merge="custom_style"/> |
| 45 | + | |
| 46 | + <style> | |
| 47 | + .main-container .map-panel{ | |
| 48 | + position: absolute; | |
| 49 | + top:0; | |
| 50 | + left: 0; | |
| 51 | + width: 20px; | |
| 52 | + z-index: 999; | |
| 53 | + height: 20px; | |
| 54 | + } | |
| 55 | + </style> | |
| 45 | 56 | </head> |
| 46 | 57 | |
| 47 | 58 | <body> |
| 48 | 59 | <div class="main-container" style="height: 100%;"> |
| 49 | 60 | <span style="position: absolute;left: calc(50% - 35px);top: calc(45% - 35px);">加载中...</span> |
| 50 | 61 | </div> |
| 51 | - | |
| 52 | 62 | <!-- 地图相关 --> |
| 53 | 63 | <script src="http://api.map.baidu.com/api?v=2.0&ak=IGGrr4UjwIYzatoCRFKEL8sT"></script> |
| 54 | 64 | <script src="http://api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.js"></script> |
| ... | ... | @@ -108,6 +118,8 @@ |
| 108 | 118 | //嵌入地图页面 |
| 109 | 119 | $('.main-container').load('/real_control_v2/mapmonitor/real.html', function () { |
| 110 | 120 | $('.map-system-msg.flex-left').remove(); |
| 121 | + | |
| 122 | + $(this).append('<span class="map-panel"></span>');//判断里有JS判定这个容器是否显示 | |
| 111 | 123 | }); |
| 112 | 124 | }); |
| 113 | 125 | ... | ... |