Browse Source

feat: 对接地图新SDK

v1.0.1
jiannibang 3 years ago
parent
commit
29f6ff5ae9
  1. BIN
      public/static/img/model/IDS_H.glb
  2. BIN
      public/static/img/model/IDS_V.glb
  3. BIN
      public/static/img/model/bangongyi.glb
  4. BIN
      public/static/img/model/chechanglangan.glb
  5. BIN
      public/static/img/model/chongdianzhuang.glb
  6. BIN
      public/static/img/model/lvzhi.glb
  7. BIN
      public/static/img/model/qiche2.glb
  8. BIN
      public/static/img/model/qiche3.glb
  9. BIN
      public/static/img/model/qiche4.glb
  10. BIN
      public/static/img/model/qiche8.glb
  11. BIN
      public/static/img/model/qiche9.glb
  12. BIN
      public/static/img/model/ren1.glb
  13. BIN
      public/static/img/model/ren2.glb
  14. BIN
      public/static/img/model/ren3.glb
  15. BIN
      public/static/img/model/ren4.glb
  16. BIN
      public/static/img/model/ren5.glb
  17. BIN
      public/static/img/model/ren6.glb
  18. BIN
      public/static/img/model/tingchechang.glb
  19. BIN
      public/static/img/model/xiaofangshuan.glb
  20. 4840
      public/static/qm/MainMap_QM.js
  21. 58200
      public/static/qm/three.js
  22. 14
      src/composables/useInitMap.js
  23. 2
      src/views/Billboard/Billboard.vue

BIN
public/static/img/model/IDS_H.glb

Binary file not shown.

BIN
public/static/img/model/IDS_V.glb

Binary file not shown.

BIN
public/static/img/model/bangongyi.glb

Binary file not shown.

BIN
public/static/img/model/chechanglangan.glb

Binary file not shown.

BIN
public/static/img/model/chongdianzhuang.glb

Binary file not shown.

BIN
public/static/img/model/lvzhi.glb

Binary file not shown.

BIN
public/static/img/model/qiche2.glb

Binary file not shown.

BIN
public/static/img/model/qiche3.glb

Binary file not shown.

BIN
public/static/img/model/qiche4.glb

Binary file not shown.

BIN
public/static/img/model/qiche8.glb

Binary file not shown.

BIN
public/static/img/model/qiche9.glb

Binary file not shown.

BIN
public/static/img/model/ren1.glb

Binary file not shown.

BIN
public/static/img/model/ren2.glb

Binary file not shown.

BIN
public/static/img/model/ren3.glb

Binary file not shown.

BIN
public/static/img/model/ren4.glb

Binary file not shown.

BIN
public/static/img/model/ren5.glb

Binary file not shown.

BIN
public/static/img/model/ren6.glb

Binary file not shown.

BIN
public/static/img/model/tingchechang.glb

Binary file not shown.

BIN
public/static/img/model/xiaofangshuan.glb

Binary file not shown.

4840
public/static/qm/MainMap_QM.js

File diff suppressed because it is too large

58200
public/static/qm/three.js

File diff suppressed because one or more lines are too long

14
src/composables/useInitMap.js

@ -10,7 +10,7 @@ export const useInitMap = function () {
.then(({ data }) => {
store.SET_MAP_DATA(JSON.parse(data.mapData))
//初始化地图
onReady(store.currentFloor, data, { shopList: store.shopList }, () => {
onReady(store.currentFloor, data, store.shopList, () => {
const facilityList = window.Map_QM.getAllIcon().flat(Infinity)
const list = facilityList.map(item => {
@ -81,7 +81,17 @@ export const showFacility = fac => {
//地图初始化
function onReady({ floorOrder, location, angle }, map, shop, callback) {
//设备楼栋, 设备楼层, 点位(机器点位直连主干道而不在主干道上), 方向 84 85
window.Config.getInstance(callback, 0, floorOrder, location, angle, map, shop)
window.MainMap_QM.init(callback, {
build: 0,
floor: floorOrder,
navPoint: location,
angle,
perc_H: '-50%',
pathStyle: '3D',
containerId: 'mapContainer',
mapData: map,
shopData: shop
})
}
//监听地图上下文丢失 刷新页面

2
src/views/Billboard/Billboard.vue

@ -105,7 +105,7 @@ Promise.all([getBrandListByFormat()]).then(([{ data: brandListByFormat }]) => {
try {
window.Map_QM?.showFloor?.(currentFloor.value.floorOrder)
setTimeout(() => {
window.Map_QM?.changeMapTo2D()
window.Map_QM?.changeMapState('2d')
}, 500)
} catch (error) {
console.log('error:', error)

Loading…
Cancel
Save