| | |
| | | <div class="mapContainer" v-loading="isPageLoading" |
| | | element-loading-background="rgba(0, 0, 0, 0.5)" |
| | | element-loading-text="加载中..."> |
| | | <div class="tool-tip" v-if="layerParams.addNest">点击地图生成测绘区域</div> |
| | | <div class="tool-tip warning" v-show="isShowWaringTip"> |
| | | <span class="icon"> |
| | | <el-icon><WarningFilled /></el-icon> |
| | | </span> |
| | | <span>测区不支持交叉面</span> |
| | | </div> |
| | | <div class="tool-tip" v-if="!isShowWaringTip && layerParams.addNest"> |
| | | {{ showToolTipText }} |
| | | </div> |
| | | <div id="layMap" class="ztzf-cesium"></div> |
| | | <leftList |
| | | v-if=" |
| | |
| | | const store = useStore(); |
| | | const userInfo = computed(() => store.getters.userInfo); |
| | | const areaCode = userInfo.value?.detail?.areaCode || ''; |
| | | const showToolTipText = ref('点击地图生成测绘区域') |
| | | // 红色警告交叉面提示窗 |
| | | const isShowWaringTip = ref(false); |
| | | const activeName = ref('自定义识别区'); |
| | |
| | | isDetailShow: false, |
| | | isSingleLocating:false , //是否是单个定位 |
| | | currentLocationFolderId:null, |
| | | crossSurface:false,//是否交叉面 |
| | | }); |
| | | const resetCheck = ref(false); |
| | | const handleClick = tab => { |
| | |
| | | }; |
| | | // 编辑/绘制 |
| | | const loadPlanarRoute = async (positions = null, save = false) => { |
| | | isShowWaringTip.value = false; |
| | | if (positions) { |
| | | curPolygonPosition = positions.map(item => { |
| | | let cartographic = Cesium.Cartographic.fromCartesian(item); |
| | |
| | | }; |
| | | drawPolygonExample.subscribe('getShowWaringTip', data => { |
| | | isShowWaringTip.value = data; |
| | | layerParams.value.crossSurface = data |
| | | }); |
| | | const throttleLoadPlanarRoute = throttle(loadPlanarRoute, 200); |
| | | drawPolygonExample.subscribe('getPolygonPositions', data => { |
| | |
| | | // 添加loading |
| | | const isPageLoading = ref(false); |
| | | const handleLoadingChange = (status) => { |
| | | isPageLoading.value = status; |
| | | isPageLoading.value = status; |
| | | }; |
| | | provide('layerParams', layerParams); |
| | | onMounted(() => { |
| | |
| | | position: relative; |
| | | width: 100%; |
| | | height: 80vh; |
| | | .warning { |
| | | position: absolute; |
| | | top: 234px; |
| | | color: #fff; |
| | | background: rgba(140, 0, 0, 0.4) !important; |
| | | |
| | | .icon { |
| | | display: flex; |
| | | align-items: center; |
| | | color: #ff1f1f; |
| | | } |
| | | } |
| | | #layMap { |
| | | width: 100%; |
| | | height: 100%; |