1.根据新疆反馈(12.22),修改相关问题
This commit is contained in:
2025-12-23 16:25:06 +08:00
parent 8c9eafa2fb
commit f2570ef494
7 changed files with 89 additions and 14 deletions
+47
View File
@@ -72,6 +72,14 @@
<div> 未获取到当前求助信息的位置信息 </div>
</div>
</div>
<div class="t-c-d">
<a-button-group style="display: flex; flex-direction: column">
<a-button :class="[nowC === '' ? 'select-button' : '']" @click="tC('')">默认地图</a-button>
<a-button :class="[nowC === 'satellite' ? 'select-button' : '']" @click="tC('satellite')">卫星地图</a-button>
<a-button :class="[nowC === 'roadNet' ? 'select-button' : '']" @click="tC('roadNet')">标准地图</a-button>
</a-button-group>
</div>
</div>
</template>
<script setup lang="ts">
@@ -143,6 +151,28 @@
let placeSearch: any = null;
let sListen: any = null;
let eListen: any = null;
const nowC = ref('');
const mapMapStyle1 = 'amap://styles/darkblue';
const mapMapStyle2 = 'amap://styles/normal';
function tC(type: any) {
if (!nowC.value && type) {
Map.layerData[type].show();
}
if (nowC.value && !type) {
Map.layerData[nowC.value].hide();
}
if (nowC.value && type) {
Map.layerData[nowC.value].hide();
Map.layerData[type].show();
}
if (type === 'roadNet') {
Map.map.setMapStyle(mapMapStyle2);
} else {
Map.map.setMapStyle(mapMapStyle1);
}
nowC.value = type;
}
watch(
() => props.showHospitalList,
(v) => {
@@ -907,6 +937,23 @@
padding: 0 6px;
}
.t-c-d {
position: absolute;
top: 55px;
right: 5px;
button {
background: #082147;
border-color: #082147;
color: #fff;
}
.select-button {
background: #073063 !important;
color: #00ccff !important;
}
}
:deep(.amap-sug-result) {
background: #002e64 !important;
}