Commit 54a46ba0 authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改

parent 62ed70e4
<template>
<div class="map-btns" :class="{ full: fullScreen }">
<template v-for="btn in btns">
<a-tooltip
v-if="btn.key === 'polyline' && curViewType === 'street'"
:key="btn.key"
placement="right"
>
<a-tooltip v-if="btn.key === 'polyline'" :key="btn.key" placement="right">
<img :key="btn.key" :src="btn.icon" draggable="false" />
<template v-if="options.length > 0" #title>
<div class="btns-tip">
......@@ -87,17 +83,20 @@ export default defineComponent({
: { key: '2D', icon: d2, title: '开启2D地图' }
const list = [
// { key: 'search', icon: btn1 },
{ key: 'dragable', icon: btn8, title: '开启/关闭拖拽功能' },
{ key: 'in', icon: zoomIn, title: '放大地图' },
{ key: 'out', icon: zoomOut, title: '缩小地图' },
{ key: 'full', icon: btn2, title: '全屏' },
{ key: 'points', icon: btn6, title: '显示/隐藏小区点' },
{ key: 'polyline', icon: btn7 },
{ key: 'dragable', icon: btn8, title: '开启/关闭拖拽功能' },
// { key: '', icon: btn4 },
// { key: '', icon: btn5 },
// { key: '', icon: btn6 },
]
return [mapType, ...list]
const polyline = { key: 'polyline', icon: btn7 }
return curViewType.value === 'street'
? [mapType, ...list, polyline]
: [mapType, ...list]
})
const fullScreen = ref(false)
const searchModal = ref(false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment