| | |
| | | res.data.forEach((item, index) => { |
| | | this.markers.push({ |
| | | id: index, |
| | | width: 30, |
| | | width: 40, |
| | | height: 40, |
| | | distance: this.latitude && this.longitude ? distance(this.latitude, this.longitude, item.latitude, item.longitude) : '未知距离', |
| | | latitude: item.latitude, |
| | |
| | | if (item.id === e.markerId) { |
| | | this.rice = item.distance |
| | | item.customCallout.display = 'ALWAYS' |
| | | item.width = 40 |
| | | item.width = 50 |
| | | item.height = 50 |
| | | setTimeout(() => { |
| | | this.info = item |
| | | this.show = true |
| | | }, 300) |
| | | } else { |
| | | item.width = 30 |
| | | item.width = 40 |
| | | item.height = 40 |
| | | item.customCallout.display = 'BYCLICK' |
| | | } |