This commit is contained in:
parent
ec928c2024
commit
4f48891923
|
|
@ -49,13 +49,10 @@ const getMapDataList = async () => {
|
|||
} catch (res: any) {
|
||||
console.log('🚀 ~ getMapDataList ~ res:', res)
|
||||
if (res) {
|
||||
let { longitude, latitude } = wgs84ToGcj02ToBd09Public(res.longitude, res.latitude)
|
||||
mapData.value = res
|
||||
let { longitude, latitude } = wgs84ToGcj02ToBd09Public(
|
||||
Number(mapData.value.longitude),
|
||||
Number(mapData.value.latitude),
|
||||
)
|
||||
mapData.value.longitude = longitude
|
||||
mapData.value.latitude = latitude
|
||||
// mapData.value.longitude = longitude
|
||||
// mapData.value.latitude = latitude
|
||||
console.log('🚀 ~ getMapDataList ~ longitude:', longitude, latitude)
|
||||
points.value = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue