feat:对接消息相关接口
This commit is contained in:
@@ -3,10 +3,11 @@ import { ref } from 'vue'
|
||||
export function useMap() {
|
||||
let map = ref(null)
|
||||
// 初始化地图
|
||||
const initMap = (id, lat, lng, scale = 15) => {
|
||||
const initMap = (id, lat, lng, scale = 15, satellite) => {
|
||||
map.value = new BMapGL.Map(id)
|
||||
map.value.centerAndZoom(new BMapGL.Point(lat, lng), scale)
|
||||
map.value.enableScrollWheelZoom(true)
|
||||
if (satellite) map.value.setMapType(BMAP_SATELLITE_MAP)
|
||||
}
|
||||
|
||||
// 添加图标
|
||||
|
||||
Reference in New Issue
Block a user