@ -13,7 +13,7 @@
</avue-crud>
<!-- 地图定位 -->
<el-dialog v-if="dialogVisible" :visible.sync="dialogVisible" modal="false" append-to-body fullscreen>
<MapView :name="sn" :x="x" :y="y"></MapView>
<MapView :sn="sn" :x="x" :y="y"></MapView>
</el-dialog>
</basic-container>
</template>
@ -94,7 +94,8 @@ export default {
},
data: [],
submitLoading: false,
buildingId: 202861,
// buildingId: 202861,
buildingId: 206885,
//地图定位查看
dialogVisible: false,
sn: '',
@ -53,6 +53,9 @@ export default {
}//位置x,y的偏移量
});
window.map.addControl(floorControl);
console.log('sn ===>',this.sn)
console.log('floorNo ===>',this.floorNo)
console.log('x ====>',this.x,'y ====>',this.y)
if(this.sn && this.floorNo && this.x && this.y) {
window.map._map.focusFloorId = this.floorNo;
coordinateToWGS84({ x:this.x, y:this.y, minX: 13439311, maxY:3667244.25 }).then(res => {