图层显示

This commit is contained in:
yyy 2025-02-25 09:23:04 +08:00
parent 9cc9c1f7d1
commit 956e25ef01
2 changed files with 6 additions and 3 deletions

View File

@ -27,7 +27,7 @@ const list = ref([
isShow: true isShow: true
}, },
{ {
type: 5, type: 1,
name: '路径点', name: '路径点',
isShow: true isShow: true
}, },
@ -56,9 +56,11 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
<style lang="scss"> <style lang="scss">
.layer-select { .layer-select {
z-index: 999;
background-color: #fff; background-color: #fff;
position: fixed; position: absolute;
bottom: 20px; bottom: 22px;
left: 18px;
width: 144px; width: 144px;
cursor: pointer; cursor: pointer;

View File

@ -2063,6 +2063,7 @@ const saveMapRoute = async () => {
} }
// //
const layerSelectionSuccess = (typeList) => { const layerSelectionSuccess = (typeList) => {
console.log(typeList)
state.allMapPointInfo.forEach((item) => { state.allMapPointInfo.forEach((item) => {
// type layerSelectionShow false // type layerSelectionShow false
if (typeList.includes(item.type)) { if (typeList.includes(item.type)) {