Commit ca455121 authored by xxx's avatar xxx

修改

parent 750ae3d4
...@@ -240,7 +240,7 @@ export default { ...@@ -240,7 +240,7 @@ export default {
httpGet(carRealTimeLocationQuery2,{name:equipmentName}).then((res) => { httpGet(carRealTimeLocationQuery2,{name:equipmentName}).then((res) => {
if(res.data){ if(res.data){
graphicLayer4.eachGraphic((graphic) => { graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(res.data.lon, res.data.lat, 1000), 5) graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(res.data.location.y, res.data.location.x, 1000), 5)
}) })
}else{ }else{
graphicLayer4.eachGraphic((graphic) => { graphicLayer4.eachGraphic((graphic) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment