|
|
|
@ -762,7 +762,7 @@ const setItemsId = (e) => {
|
|
|
|
const locationData = ref({})
|
|
|
|
const locationData = ref({})
|
|
|
|
const currentPosition = ref({})
|
|
|
|
const currentPosition = ref({})
|
|
|
|
|
|
|
|
|
|
|
|
function calcRectangleFromPoints(points) {
|
|
|
|
function calcRectangleFromPoints1(points) {
|
|
|
|
if (!points || points.length !== 4) throw new Error("必须传入四个点");
|
|
|
|
if (!points || points.length !== 4) throw new Error("必须传入四个点");
|
|
|
|
|
|
|
|
|
|
|
|
const R = 111320;
|
|
|
|
const R = 111320;
|
|
|
|
@ -1109,7 +1109,7 @@ const ad = () => {
|
|
|
|
|
|
|
|
|
|
|
|
// 3. 接收消息
|
|
|
|
// 3. 接收消息
|
|
|
|
socket.addEventListener("message", (event) => {
|
|
|
|
socket.addEventListener("message", (event) => {
|
|
|
|
console.log(JSON.parse(event.data))
|
|
|
|
// console.log(JSON.parse(event.data))
|
|
|
|
processData(JSON.parse(event.data))
|
|
|
|
processData(JSON.parse(event.data))
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|