feat:对接消息相关接口

This commit is contained in:
zjc
2025-01-08 18:05:12 +08:00
parent ab1ab210a9
commit 9ee304c8c2
39 changed files with 2081 additions and 1926 deletions

View File

@@ -3,28 +3,11 @@
</template>
<script setup>
onMounted(() => {
var map = new BMapGL.Map('container')
map.centerAndZoom(new BMapGL.Point(109.643452, 31.028006), 15)
map.enableScrollWheelZoom(true)
map.setMapType(BMAP_SATELLITE_MAP)
import { useMap } from '@/hooks/map'
// 绘制线
var polyline = new BMapGL.Polyline(
[
new BMapGL.Point(109.65053, 31.034752),
new BMapGL.Point(109.647332, 31.033104),
new BMapGL.Point(109.646883, 31.031797),
new BMapGL.Point(109.640254, 31.021136)
],
{
strokeStyle: 'solid',
strokeColor: 'red ',
strokeWeight: 4,
strokeOpacity: 0.8
}
)
map.addOverlay(polyline)
onMounted(() => {
const { initMap, addMarker } = useMap()
initMap('car-ship', 109.491961, 31.024285, 13)
})
</script>