| | |
| | | <public-box class="campus-nav-box"> |
| | | <template slot="public-box-header"> |
| | | <div class="title"> |
| | | <img class="icon deblurring" src="/zhxy/img/icon/xndh.png" alt /> |
| | | <img class="icon deblurring" src="/zhjg/img/icon/xndh.png" alt /> |
| | | <span>校区内导航</span> |
| | | </div> |
| | | <img class="close deblurring" src="/zhxy/img/navicon/close.png" alt @click="closeModel" /> |
| | | <img class="close deblurring" src="/zhjg/img/navicon/close.png" alt @click="closeModel" /> |
| | | </template> |
| | | <template slot="public-box-content"> |
| | | <div class="tab"> |
| | |
| | | </ul> |
| | | <v-else> |
| | | <ul> |
| | | <li>智慧校园欢迎您!</li> |
| | | <li>江西经济管理干部学院欢迎您!</li> |
| | | </ul> |
| | | </v-else> |
| | | </div> |
| | |
| | | Number(this.terminus[1]), |
| | | Number(this.terminus[2]) |
| | | ), |
| | | '/zhxy/img/navicon/end.png' |
| | | '/zhjg/img/navicon/end.png' |
| | | ) |
| | | CamPusNavLayer.campusEndLayer.addOverlay(endEntity) |
| | | } else if (val == 'end') { |
| | |
| | | Number(this.startingPoint[1]), |
| | | Number(this.startingPoint[2]) |
| | | ), |
| | | '/zhxy/img/navicon/start.png' |
| | | '/zhjg/img/navicon/start.png' |
| | | ) |
| | | CamPusNavLayer.campusStartLayer.addOverlay(startEntity) |
| | | } |
| | |
| | | Number(lnglat[1]), |
| | | Number(0) |
| | | ), |
| | | '/zhxy/img/navicon/start.png' |
| | | '/zhjg/img/navicon/start.png' |
| | | ) |
| | | CamPusNavLayer.campusStartLayer.addOverlay(startEntity) |
| | | } else if (that.butChouse == 'end') { |
| | |
| | | Number(lnglat[1]), |
| | | Number(0) |
| | | ), |
| | | '/zhxy/img/navicon/end.png' |
| | | '/zhjg/img/navicon/end.png' |
| | | ) |
| | | CamPusNavLayer.campusEndLayer.addOverlay(endEntity) |
| | | } |
| | |
| | | Number(this.startingPoint[1]), |
| | | Number(this.startingPoint[2]) |
| | | ), |
| | | '/zhxy/img/navicon/start.png' |
| | | '/zhjg/img/navicon/start.png' |
| | | ) |
| | | CamPusNavLayer.campusRouteLayer.addOverlay(startEntity) |
| | | // var end = global.DC.Transform.transformWGS84ToCartesian() |
| | |
| | | Number(this.terminus[1]), |
| | | Number(this.terminus[2]) |
| | | ), |
| | | '/zhxy/img/navicon/end.png' |
| | | '/zhjg/img/navicon/end.png' |
| | | ) |
| | | CamPusNavLayer.campusRouteLayer.addOverlay(endEntity) |
| | | |
| | |
| | | polyline.setStyle({ |
| | | width: 6, |
| | | arcType: true, |
| | | material: new global.DC.PolylineImageTrailMaterialProperty({ |
| | | color: global.DC.Namespace.Cesium.Color.fromBytes(10, 255, 10), |
| | | speed: 60, |
| | | image: '/zhxy/img/icon/right.png', |
| | | repeat: { x: 320, y: 1 } |
| | | }), |
| | | material: global.DC.Color.RED, |
| | | clampToGround: true |
| | | }) |
| | | |
| | |
| | | polyline.setStyle({ |
| | | width: 6, |
| | | arcType: true, |
| | | material: new global.DC.PolylineImageTrailMaterialProperty({ |
| | | color: global.DC.Namespace.Cesium.Color.fromBytes(10, 255, 10), |
| | | speed: 60, |
| | | image: '/zhxy/img/icon/right.png', |
| | | repeat: { x: 320, y: 1 } |
| | | }), |
| | | material: global.DC.Color.RED, |
| | | clampToGround: true |
| | | }) |
| | | |
| | |
| | | } else { |
| | | if (this.navigationWay == '步行') { |
| | | axios |
| | | .get('https://dev.jxpskj.com:8023/arcgis/rest/services/shidalw1103/NAServer/%E8%B7%AF%E5%BE%84/solve', { |
| | | .get('https://dev.jxpskj.com:8023/arcgis/rest/services/jglw/NAServer/%E8%B7%AF%E5%BE%84/solve', { |
| | | params: { |
| | | stops: { features: [{ geometry: { x: startLog, y: startLat } }, { geometry: { x: endLog, y: endLat } }] }, |
| | | returnDirections: false, |
| | | returnRoutes: true, |
| | | f: 'json' |
| | | } |
| | |
| | | polyline.setStyle({ |
| | | width: 6, |
| | | arcType: true, |
| | | material: new global.DC.PolylineImageTrailMaterialProperty({ |
| | | color: global.DC.Namespace.Cesium.Color.fromBytes(10, 255, 10), |
| | | speed: 60, |
| | | image: '/zhxy/img/icon/right.png', |
| | | repeat: { x: 320, y: 1 } |
| | | }), |
| | | material: global.DC.Color.RED, |
| | | clampToGround: true |
| | | }) |
| | | |
| | |
| | | }) |
| | | } else { |
| | | axios |
| | | .get('https://dev.jxpskj.com:8023/arcgis/rest/services/shidalw1103/NAServer/%E8%B7%AF%E5%BE%84/solve', { |
| | | .get('https://dev.jxpskj.com:8023/arcgis/rest/services/jglw/NAServer/%E8%B7%AF%E5%BE%84/solve', { |
| | | params: { |
| | | // stops: {features:[{geometry:{x:116.026051,y:28.686474}},{geometry:{x:116.024876,y:28.678025}}]}, |
| | | stops: { features: [{ geometry: { x: startLog, y: startLat } }, { geometry: { x: endLog, y: endLat } }] }, |
| | | returnDirections: false, |
| | | returnRoutes: true, |
| | | f: 'json' |
| | | } |
| | |
| | | polyline.setStyle({ |
| | | width: 6, |
| | | arcType: true, |
| | | material: new global.DC.PolylineImageTrailMaterialProperty({ |
| | | color: global.DC.Namespace.Cesium.Color.fromBytes(10, 255, 10), |
| | | speed: 60, |
| | | image: '/zhxy/img/icon/right.png', |
| | | repeat: { x: 320, y: 1 } |
| | | }), |
| | | material: global.DC.Color.RED, |
| | | clampToGround: true |
| | | }) |
| | | |