Kaynağa Gözat

Merge branch 'wudi' of gitadmin/tuoheng_pilot_web into develop

pull/63/head
吴迪 1 yıl önce
ebeveyn
işleme
c928c37127
2 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. BIN
      src/assets/red.png
  2. +3
    -2
      src/views/task-manage/components/MapComp.vue

BIN
src/assets/red.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 36  |  Yükseklik: 34  |  Boyut: 1.3KB

+ 3
- 2
src/views/task-manage/components/MapComp.vue Dosyayı Görüntüle

@@ -6,6 +6,7 @@

<script setup name="mapComp">
import GMap from '@/utils/map/GMap'
import redImg from '@/assets/red.png'

const emit = defineEmits(['mapEmit'])
let marker = null
@@ -33,7 +34,7 @@ GMap.then((AMap) => {
if (marker) map.remove(marker)
marker = new AMap.Marker({
title: item.address,
icon: '//vdata.amap.com/icons/b18/1/2.png'
icon: redImg
})

marker.setMap(map)
@@ -48,7 +49,7 @@ GMap.then((AMap) => {
marker = new AMap.Marker({
position: new AMap.LngLat(lnglat.lng, lnglat.lat),
offset: new AMap.Pixel(-10, -10),
icon: '//vdata.amap.com/icons/b18/1/2.png'
icon: redImg
})
map.add(marker)
emit('mapEmit', lnglat)

Yükleniyor…
İptal
Kaydet