月球大数据地理空间分析展示平台-【前端】-月球2期前端
WX
2023-09-14 be3618780ef924115aa63bf40ac56b515025eab7
src/views/search/search.vue
@@ -115,6 +115,7 @@
// import config from "../../../public/config/config.js";
import { dataQuery_selectByPage } from "@/api/api.js";
import { ElMessage } from "element-plus";
import menuTool from "@/assets/js/Map/menuTool";
let searchValue = ref("");
const searchFLag = ref(false);
const tableData = ref([]);
@@ -129,25 +130,26 @@
const NumhandleChange = (value: number) => {};
const handleChange = (val: string[]) => {};
const setPoitCannel = () => {
  if (imageLabel) {
    imageLabel.deleteObject();
    imageLabel = null;
  }
  // if (imageLabel) {
  // imageLabel.deleteObject();
  // imageLabel = null;
  // }
  menuTool.setClearLocation("地名定位");
};
const setPointLocal = (res) => {
  if (imageLabel) {
    setPoitCannel();
  }
  setPoitCannel();
  var position = { X: res.lon, Y: res.lat, Altitude: 10 };
  imageLabel = window.sgworld.Creator.CreateImageLabel(
    position,
    config.StaticFileBaseUrl + "/Workers/image/location.png",
    {},
    0,
    "标签点"
  );
  var id = imageLabel.item.id;
  window.sgworld.Navigate.flyToObj(imageLabel.item);
  menuTool.setLocationPoint([res.lon, res.lat], "地名定位");
  // imageLabel = window.sgworld.Creator.CreateImageLabel(
  //   position,
  //   config.StaticFileBaseUrl + "/Workers/image/location.png",
  //   {},
  //   0,
  //   "标签点"
  // );
  // var id = imageLabel.item.id;
  // window.sgworld.Navigate.flyToObj(imageLabel.item);
  // window.earthCtrl.camera.flyTo(res.log, res.lat, 300, 9.5, -45, 0.0, 5);
};
const setInputCahgne = () => {