| | |
| | | </div> |
| | | <!-- 分层分户按钮 --> |
| | | <div class="fcfhBox" v-if="isShowFCFH"> |
| | | <button |
| | | <FCFH /> |
| | | <!-- <button |
| | | id="btn1" |
| | | class="layui-btn" |
| | | :class="{ fcfhactive: fcfhopen }" |
| | |
| | | > |
| | | 关闭拾取 |
| | | </button> |
| | | <span class="closeBtn" @click="closefcfhBox">×</span> |
| | | <span class="closeBtn" @click="closefcfhBox">×</span> --> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | import { mapState, mapMutations } from "vuex"; |
| | | import Bus from "../tools/Bus"; |
| | | import { queryBySquare } from "@/utils/request"; |
| | | import FCFH from "@/components/right/FCFH"; |
| | | |
| | | //交通图层 |
| | | let trafficLayer, panoramaLayer; |
| | | |
| | | let flyPoint; |
| | | export default { |
| | | components: { |
| | | location, |
| | |
| | | leftztfx, |
| | | lefttx, |
| | | Layer, |
| | | FCFH, |
| | | }, |
| | | name: "right-top", |
| | | data() { |
| | |
| | | this.kuangxuan(); |
| | | }); |
| | | Bus.$on("ShowFCFH", (data) => { |
| | | if (data) { |
| | | this.isShowFCFH = true; |
| | | if (this.isShowFCFH == data) { |
| | | return; |
| | | } |
| | | this.isShowFCFH = data; |
| | | }); |
| | | }, |
| | | destroyed() { |
| | |
| | | }, |
| | | methods: { |
| | | ...mapMutations(["setViewer1Show", "setYqfk"]), |
| | | /*分层分户*/ |
| | | fcfhpick(open) { |
| | | if (open) { |
| | | this.fcfhopen = true; |
| | |
| | | } |
| | | }, |
| | | closePOIbox() { |
| | | flyPoint && Viewer.entities.remove(flyPoint); |
| | | flyPoint = undefined; |
| | | |
| | | this.isShowDetail = false; |
| | | this.showRangeBox = false; |
| | | this.pointInfo = {}; |
| | |
| | | this.isShowDetail = false; |
| | | }, |
| | | flyToPOI(item) { |
| | | flyPoint && Viewer.entities.remove(flyPoint); |
| | | sgworld.Navigate.flyToPointsInterest({ |
| | | destination: Cesium.Cartesian3.fromDegrees( |
| | | item.geometry.coordinates[0], |
| | |
| | | }, |
| | | duration: 3, |
| | | }); |
| | | flyPoint = Viewer.entities.add({ |
| | | position: Cesium.Cartesian3.fromDegrees( |
| | | parseFloat(item.geometry.coordinates[0]), |
| | | parseFloat(item.geometry.coordinates[1]) |
| | | ), |
| | | billboard: { |
| | | verticalOrigin: Cesium.VerticalOrigin.BOTTOM, |
| | | scale: 1, |
| | | image: window.SmartEarthRootUrl + "Workers/image/mark.png", |
| | | heightReference: 1, |
| | | disableDepthTestDistance: Number.POSITIVE_INFINITY, |
| | | }, |
| | | }); |
| | | }, |
| | | }, |
| | | watch: { |