@ -51,7 +51,7 @@ class MapDrawing extends EventEmitter {
pointChild: [],
levels: {
// nowLevel: localStorage.getItem('level').slice(6, 7)
nowLevel: localStorage.getItem('level').slice(6, 7)
nowLevel:localStorage.getItem('level')?localStorage.getItem('level').slice(6, 7) : 'level-1'
}
},
textures: [],
@ -239,7 +239,7 @@ var arrRe=[
rodeYLength: 100, // 通道
standardZLength: 75, // 点位标准高度,用于控制占位, 二维暂时用不到
leftOffset: 500, // 整体向右偏移量
topOffset: 0, // 整体向下偏移量0
topOffset: 2200, // 整体向下偏移量0
// leftOffsetCell: -9, // 整体向右偏移单元格个数
// topOffsetCell: -8, // 整体向下偏移单元格个数
leftOffsetCell: 0, // 整体向右偏移单元格个数
@ -390,6 +390,9 @@ export default {
mounted() {
// this.startMap()
this.init('fourwayCar')
if (!localStorage.getItem('level')) {
localStorage.setItem('level', 'level-1')
var layerId1 = localStorage.getItem('level') || 'level-1'
this.mapControl.layerControl(layerId1, this.layer[layerId1], layerId1.slice(6, 7))
// this.init('piler')