Commit c3a14e9b authored by ninglx's avatar ninglx

wj-manage-web 历史轨迹播放问题修正

parent 6ff4bafe
...@@ -687,12 +687,12 @@ export default { ...@@ -687,12 +687,12 @@ export default {
else { else {
this.removeLayers("detetorsA"); this.removeLayers("detetorsA");
this.resetHighZoomData(); this.resetHighZoomData();
let features = []; // let features = [];
for (let car of currentFrame) { // for (let car of currentFrame) {
features.push(turf.point([car.longitude, car.latitude], car)); // features.push(turf.point([car.longitude, car.latitude], car));
} // }
let geo = turf.featureCollection(features); // let geo = turf.featureCollection(features);
mapTools.addOrUpdateVehicle(window.map, geo); mapTools.addOrUpdateVehicle(window.map, currentFrame);
} }
dillPath.shift(); dillPath.shift();
if (!dillPath.length) { if (!dillPath.length) {
......
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