| | |
| | | ></export-map> |
| | | <menus></menus> |
| | | <bottom-btn></bottom-btn> |
| | | <mouse-move></mouse-move> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import bottomBtn from "@/components/bottomBtn.vue"; |
| | | import exportMap from "./export/exportMap.vue"; |
| | | import InitMap from "@/assets/js/Map/index.js"; |
| | | //经纬度显示 |
| | | import mouseMove from "@/components/mouseMove.vue"; |
| | | // import * as SmartEarth from "../../public/CIMSDK/index.js"; |
| | | // import * as SmartEarth from "../assets/js/CIMSDK/index.js"; |
| | | |
| | | let map; |
| | | var viewer; |
| | | const layerExportshow = ref(false); |
| | | |
| | | const init = () => { |
| | | viewer = InitMap.Viewer; |
| | | map = InitMap.sgworld; |
| | | window.setMouseMove(true); |
| | | }; |
| | | //关闭状态 |
| | | const SETexportMap = (res) => { |
| | |
| | | switch (res.type) { |
| | | case "exportMap": |
| | | layerExportshow.value = res.value; |
| | | |
| | | break; |
| | | } |
| | | }; |
| | |
| | | // console.log(SmartEarth); |
| | | InitMap.init3DMap(); |
| | | init(); |
| | | |
| | | window.functionForJs = functionForJs; |
| | | }); |
| | | </script> |