| | |
| | | // 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([]); |
| | |
| | | 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 = () => { |