Explorar el Código

首页人员定位 地图标记 海图center与缩放大小配置修改

chenxr3 %!s(int64=4) %!d(string=hace) años
padre
commit
bc72850a67

+ 1 - 1
ebc-middle-platform/src/assets/styles/_layout.scss

@ -449,4 +449,4 @@ $layout-sider-collapse-width: 64px;
449 449
}
450 450
.modal-footer{
451 451
  justify-content: center
452
}
452
}

+ 2 - 0
ebc-middle-platform/src/constants.js

@ -13,3 +13,5 @@ export const RESPONSE_BOUNDARY_PHONE = 600 // 响应式布局手机宽度边界
13 13
export const LANG_CN = 'zh-CN' // 简体中文
14 14
export const LANG_US = 'en-US' // 美式英文
15 15
export const GIS_SEA_URL = 'http://192.168.74.189:9999/tdtvector' // 海图地址
16
export const GIS_CENTER = [21.621303, 112.113038] // 海图中心点
17
export const GIS_ZOOM = 11 // 海图默认缩放

+ 6 - 1
ebc-middle-platform/src/modules/orientation/orientation.vue

@ -166,6 +166,10 @@ import { forEach, filter, find } from 'lodash'
166 166
import services from '../../conf/services'
167 167
import IpuStomp from '../../ipu-stomp'
168 168
import EventBus from '../../bus'
169
import {
170
  GIS_CENTER,
171
  GIS_ZOOM
172
} from '@/constants'
169 173
export default {
170 174
  filters: {
171 175
    dateFormat(value) {
@ -362,7 +366,8 @@ export default {
362 366
      }
363 367
      this.map = new Ai.Map('div1', {
364 368
        ak: this.$store.getters.getGisToken,
365
        center: [39.915599, 122.406568]
369
        center: GIS_CENTER,
370
        zoom: GIS_ZOOM
366 371
      })
367 372
      var maplayer
368 373
      maplayer = Ai.TileLayer('http://192.168.74.189:9999/tdtvector')

+ 6 - 2
ebc-middle-platform/src/modules/system-management/map-mark.vue

@ -186,6 +186,10 @@
186 186
<script>
187 187
import './map-mark.scss'
188 188
import services from '../../conf/services'
189
import {
190
  GIS_CENTER,
191
  GIS_ZOOM
192
} from '@/constants'
189 193
export default {
190 194
  data() {
191 195
    return {
@ -237,8 +241,8 @@ export default {
237 241
    // 请求成功处理...
238 242
    this.map = new Ai.Map('modalMap', {
239 243
      ak: this.$store.getters.getGisToken,
240
      center: [39.915599, 116.406568],
241
      zoom: 5
244
      center: GIS_CENTER,
245
      zoom: GIS_ZOOM
242 246
    })
243 247
    var maplayer = null
244 248
    maplayer = Ai.TileLayer('http://192.168.74.189:9999/tdtvector')

+ 1 - 1
ebc-middle-platform/static/css/themeColor.css

@ -351,4 +351,4 @@
351 351
    background-color: #147BD10f !important;
352 352
}
353 353
354
/* light color end*/
354
/* light color end*/